Mes: mayo 2006

  • Instalar un modulo de Perl CPAN

    Lite’

  • «cdrdao is not run with root priveleges» … decía k3b

    Pues nada que es uno de los mensajes de que no eres el amo del cdrdao solucionalo rápido así: [shell] chmod 4755 /usr/bin/cdrdao[/shell]

  • Quitar los ^M de fin de linea

    Sacado de por ahi… Los dichosos ^M!. Con demasiada frecuencia ocurre que importamos un texto de MS-DOS a UNIX, y al editarlo con el vi (por ejemplo), sale lleno de «^M» al final de todas las líneas. Lo primero, decir que no hay problema en el vim, porque si pones la opción «autotext» (:set autotext),…

  • Colisiones

    eth1 Link encap:Ethernet HWaddr 00:11:25:57:BC:69 inet addr:62.151.24.74 Bcast:62.151.24.79 Mask:255.255.255.240 inet6 addr: fe80::211:25ff:fe57:bc69/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:174549467 errors:0 dropped:0 overruns:0 frame:0 TX packets:190245054 errors:29876265 dropped:0 overruns:0 carrier:29876265 collisions:32648117 txqueuelen:1000 RX bytes:1089220947 (1.0 GiB) TX bytes:2670160874 (2.4 GiB) Base address:0x4400 Memory:d0340000-d0360000 Las colisiones son _normales_ en redes CSMA/CD como Ethernet con lo…

  • Eaccelator: cache para php

    Instalar eaccelerator Requirements ———— apache >= 1.3, mod_php >= 4.1, autoconf, automake, libtool, m4 apt-get install php4-dev #/usr/src/ wget http://keihanna.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.4-rc2.tar.bz2 tar jxvf eaccelerator-0.9.4-rc2.tar.bz2 cd eaccelerator-0.9.4-rc2 export PHP_PREFIX=»/usr» $PHP_PREFIX/bin/phpize ./configure \ –enable-eaccelerator=shared \ –with-php-config=$PHP_PREFIX/bin/php-config export PHP_PREFIX=»/usr/local» make You must specify the real prefix where PHP is installed in the «export» command. It may be «/usr» «/usr/local»,…

  • Interprestar ApacheTop

    Last hit: 09:17:07 atop runtime: 0 days, 00:58:20 09:17:08 All: 638924 reqs ( 182.65/sec) 3433539K ( 981.6K/sec) ( 5.4K/req) 2xx: 455415 (71.3%) 3xx: 175745 (27.5%) 4xx: 7746 ( 1.2%) 5xx: 10 ( 0.0%) R ( 30s): 5195 reqs ( 173.17/sec) 25405K ( 846.8K/sec) ( 4.9K/req) 2xx: 3447 (66.4%) 3xx: 1715 (33.0%) 4xx: 33 ( 0.6%)…

  • tcpdump

    Para ver si llegan datos de la ip 192.168.1.100 al puerto 80 [shell]tcpdump -i eth0 host 192.168.1.100 and port 80[/shell]

  • copiar un cd/dvd mediante consola

    Para cds: mkisofs -f -J -R -r -V -o micarpeta/ > raw.raw cdrecord dev=ATAPI:/dev/hdc -multi -tao raw.raw Para dvd: growisofs -Z /dev/dvd -> session incial -M /dev/dvd -> añade sesion -dvd-compat -> compatibilidad con dvd players -overburn -speed=N -input-charset=ISO-8859-1 -R Rockride -J Joliet growisofs -speed=4 -R -J -input-charset=ISO-8859-1 -Z /dev/hdc -over-burn -dvd-compat VIDEO_TS no poner…

  • Enseñando el Spamassassin

    tener instalado el paquete readpst copiar la carpeta de outlook Spam.pst [shell] $ readpst -w -o /tmp/ Spam.pst Opening PST file and indexes… About to start processing first record… Processing items… Processing Folder «Elementos eliminados» No items to process in folder «Elementos eliminados», should have been 0Processing Folder «Spam para enviar» «Spam para enviar» –…

  • Subneting

    subneting ip -> xxx.xxx.xxx.xxx -> 4 octetos (0-254) -> 4 x 8 = 32 bits clase a 10.0.0.0 – 10.255.255.255 máscara /8 clase b 172.16.0.0 – 172.31.255.255 máscara /12 clase c 192.168.0.0 – 192.168.255.255 máscara /16 172.30.50.80/255.255.255.240 255.255.255 -> 11111111 111111111 11111111-> 24 bits ahora más el ultimo 240 -> 11110000 -> 4 bits fijos…