• Directorios SEO
  • Zomg wordpress theme
  • Lista de directorios
  •  

    VLC como root.

    March 9th, 2010 by diegomichel 2 comments so far (is that a lot?)

    Vlc no se puede ejecutar como root en debian, gentoo y probablemente otras distribuciones.

    Aqui esta la solucion en el caso de debian.

    1.- Obtener el codigo fuente.

    apt-get source vlc

    2.- Instalar dependencias para compilar

    apt-get build-dep vlc

    3.- Configurar

    ./configure –enable-run-as-root

    4.- Compilar e instalar

    ./compile && make install

    Tags: ,
    Posted in: Uncategorized

    rcconf – desactivar servicios Debian.

    March 9th, 2010 by diegomichel No comments yet

    Esta utilidad permite desactivar servicios que se inician al encender la maquina, por ejemplo apache, gdm, etc.

    Para instalar:

    aptitude install rcconf

    luego ejecuta

    rcconf

    y desactiva los servicios que no quieres que se inicien.


    Free Image Hosting at www.Pictat.com

    Tags:
    Posted in: Uncategorized

    Apache vs Lighttpd

    March 9th, 2010 by diegomichel No comments yet

    Server Software: lighttpd/1.4.26
    Server Hostname: localhost
    Server Port: 80

    Document Path: /index.php
    Document Length: 46193 bytes

    Concurrency Level: 200
    Time taken for tests: 13.733 seconds
    Complete requests: 30000
    Failed requests: 0
    Write errors: 0
    Total transferred: 1390897193 bytes
    HTML transferred: 1385790000 bytes
    Requests per second: 2184.55 [#/sec] (mean)
    Time per request: 91.552 [ms] (mean)
    Time per request: 0.458 [ms] (mean, across all concurrent requests)
    Transfer rate: 98909.05 [Kbytes/sec] received

    Connection Times (ms)
    min mean[+/-sd] median max
    Connect: 0 0 0.3 0 7
    Processing: 62 91 11.8 90 225
    Waiting: 61 91 11.9 89 225
    Total: 62 91 12.0 90 226

    Percentage of the requests served within a certain time (ms)
    50% 90
    66% 95
    75% 97
    80% 98
    90% 104
    95% 109
    98% 112
    99% 116
    100% 226 (longest request)

    Server Software: Apache/2.2.14
    Server Hostname: localhost
    Server Port: 80

    Document Path: /index.php
    Document Length: 45285 bytes

    Concurrency Level: 200
    Time taken for tests: 15.826 seconds
    Complete requests: 30000
    Failed requests: 0
    Write errors: 0
    Total transferred: 1365745513 bytes
    HTML transferred: 1360272955 bytes
    Requests per second: 1895.59 [#/sec] (mean)
    Time per request: 105.508 [ms] (mean)
    Time per request: 0.528 [ms] (mean, across all concurrent requests)
    Transfer rate: 84274.02 [Kbytes/sec] received

    Connection Times (ms)
    min mean[+/-sd] median max
    Connect: 0 19 110.5 18 9030
    Processing: 41 86 274.2 66 6431
    Waiting: 2 60 274.5 54 6420
    Total: 46 105 295.2 97 9112

    Percentage of the requests served within a certain time (ms)
    50% 97
    66% 107
    75% 111
    80% 113
    90% 121
    95% 129
    98% 167
    99% 188
    100% 9112 (longest request)

    uname -a
    Linux desktop 2.6.32-trunk-amd64 #1 SMP Sun Jan 10 22:40:40 UTC 2010 x86_64 GNU/Linux
    root@desktop:~# cat /proc/cpuinfo
    processor : 0
    vendor_id : AuthenticAMD
    cpu family : 16
    model : 4
    model name : AMD Phenom(tm) II X2 550 Processor
    stepping : 2
    cpu MHz : 3114.718
    cache size : 512 KB
    physical id : 0
    siblings : 2
    core id : 0
    cpu cores : 2
    apicid : 0
    initial apicid : 0
    fpu : yes
    fpu_exception : yes
    cpuid level : 5
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
    bogomips : 6229.42
    TLB size : 1024 4K pages
    clflush size : 64
    cache_alignment : 64
    address sizes : 48 bits physical, 48 bits virtual
    power management: ts ttp tm stc 100mhzsteps hwpstate

    processor : 1
    vendor_id : AuthenticAMD
    cpu family : 16
    model : 4
    model name : AMD Phenom(tm) II X2 550 Processor
    stepping : 2
    cpu MHz : 3114.718
    cache size : 512 KB
    physical id : 0
    siblings : 2
    core id : 1
    cpu cores : 2
    apicid : 1
    initial apicid : 1
    fpu : yes
    fpu_exception : yes
    cpuid level : 5
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
    bogomips : 6228.56
    TLB size : 1024 4K pages
    clflush size : 64
    cache_alignment : 64
    address sizes : 48 bits physical, 48 bits virtual
    power management: ts ttp tm stc 100mhzsteps hwpstate

    root@desktop:~# free
    total used free shared buffers cached
    Mem: 3094440 543908 2550532 0 30068 198456
    -/+ buffers/cache: 315384 2779056
    Swap: 1871532 0 1871532
    root@desktop:~#

    Como hice las pruebas:

    1.- Reinicie la maquina.
    2.- Inicie apache
    3.- Corri el test y guarde los resultados.
    4.- Reinicie la maquina
    5.- Inicie lighttpd
    6.- Corri el test y guarde los resultados.

    el archivo index.php solo ejecuta la funcion phpinfo();

    Conclusion: Lighttpd es mas rapido que apache incluso sirviendo PHP.

    Tags:
    Posted in: Uncategorized

    Cambio de gentoo a debian.

    March 8th, 2010 by diegomichel No comments yet

    Razones:

    Solo una, el hecho de que los paquetes en gentoo se ponen en masked y unmasked sin control, hace que al querer actualizar los paquetes se convierta en una pesadilla, por eso me decidi cambiar a debian 64, he seleccionado la version de pruebas y funciona bastante bien.

    La he instalado desde virtualbox a uno de mis disco duros, asi no he tenido que quemar la iso.

    El screenshot obligatorio.

    Free Image Hosting at www.Pictat.com

    Nota para mi: Hacer que pictat soporte miniaturas mas grandes.

    Tags:
    Posted in: Uncategorized