Se muestran los artículos pertenecientes al tema Linux.
Creación de tunel ssh para por ejemplo conectarse al mldonkey de una máquina
ssh -v -L4001:127.0.0.1:4001 usuario@Mimaquina.no-ip.com
Este es para el VNC
ssh pepe@192.122.111.11 -v -L5900:127.0.0.1:5900
Optimizar Zyxel 660HW-61 con firmware de Telefonica
Modificar en un zyxel 660 mediante telnet para que borre la tabla nat mas rapido, ideal para p2p. Para ello utilizo el programa netcat o nc que le paso la salida del script...
Llamar al script de esta forma: script | netcat 192.168.0.1 23
#!/bin/bash
sleep 1
echo "password"
sleep 1
echo "24"
sleep 1
echo "8"
sleep 1
echo "ip nat timeout tcp 55"
sleep 1
echo "ip nat timeout ge 55"
sleep 1
echo "ip nat timeout tcpo 55"
sleep 1
echo "ip tcp window 4"
sleep 1
echo "ip nat timeout r 1"
sleep 1
echo "exit"
sleep 1
echo "99"
con esto los programas p2p iran finos, si el amsn se te desconecta tendras que cambiar el keepalive de 60000 a 40000
Redireccion con tuberias
ps aux | grep wish
Esto hace un listado de todos los procesos , y buscamos aquellos que se llamen wish
Aqui un ejemplo para redireccionar la salida de errores lo hacemos de esta forma:
gcc hola.c 2>errores.txt
Poner la mac en la tarjeta de red que quiera.
ifconfig eth0 down hw ether 00:00:00:00:00:01
Usar una buena compresion para redes lentas con el tightvncviewer
xtightvncviewer -encodings "tight zlib corre" -compresslevel 4 -quality 4 -bgr233 -depth 16 192.168.0.3:1
type f es tipos de ficheros normales
find /etc -type f
find /etc -type f -exec grep -i broadcast '{}' /;
Pasar de ascii a postcript
man ls | a2ps -o ls.ps
otra forma
man -t ls > ls.ps
Convertir ps a pdf
ps2pdf ls.ps
Requeriments:
First install your favourite linux distribution debian sarge from a CD o DVD, you can obtain it from the debian website.
Second recompile the linux kernel with this configuration file and if you want to have UDMA support you must replace the file drivers/ide/pci/piix.c with this. Now you have enabled cpufreq to manage the frecuency of your cpu as you like.
Third Configure your Xwindow System Xfree86 with XF86Config-4
In order to compile Intel pro Driver you must comment the file compat.h like this..
/* Comment by jose mariscal
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
static inline void *kzalloc(size_t size, unsigned flags)
{
void *ret = kmalloc(size, flags);
if (ret)
memset(ret, 0, size);
return ret;
}
#endif
*/
And you will have ipw2200 support in monitor mode ;)
Para permitir que se pueda continuar subiendo el fichero en caso de corte hay que poner la opcion:
AllowStoreRestart on
Si lo que queremos es limitar el ancho de banda de subida al servidor a 11Kbytes a todos los usuarios menos a pepe:
TransferRate APPE,STOR 11 user !pepe
Para limitar la Descarga del servidor a 15Kbytes menos al usuario pepe.
TransferRate RETR 15 user !pepe
Si quereis preguntar algo no teneis mas que hacerlo
Plantilla basada en http://blogtemplates.noipo.org/