Tweeter buttonFacebook buttonLinkedin button
  • 28 Aug 2008 /  GNU/Linux

    Para distros basadas en Red Hat tenemos el archivo /etc/redhat-release, para Slackware tenemos /etc/slackware-version, y bueno creí que en Ubuntu sería algo así(/etc/debian-* o tal vez /etc/ubuntu-*), pero no, la manera en que podemos ver que versión se encuentra instalada es con la ayuda del siguiente archivo: /etc/lsb-release

    Así es que con un:

    cat /etc/lsb-release

    Podremos conocer que versión de Ubuntu se encuentra instalada.

  • 25 Jun 2008 /  GNU/Linux

    The file-max file /proc/sys/fs/file-max sets the maximum number of file-handles that the Linux kernel will allocate. We generally tune this file to improve the number of open files by increasing the value of /proc/sys/fs/file-max to something reasonable like 256 for every 4M of RAM we have: i.e. for a machine with 128 MB of RAM, set it to 8192 – 128/4=32 32*256=8192.

    So them if we want to see how many number of file-handles are setting in /proc/sys/fs/file-max we can use any text editor or the famous echo command.

    And if we want see the list of file-handles we can do it with the command “lsof” …
    ~#> lsof | wc -l

  • 23 Jun 2008 /  GNU/Linux, Unix

    When you have CentOS and try to replace files we need confirmation by default. Maybe you are thinking use –force option, but it not works ok because by default CentOS has “cp -i” alias. Now if we won’t it, we need use: “unalias cp” for alias remove.

  • 19 Jun 2008 /  GNU/Linux

    ¿Alguna ves te has preguntado como ejecutar un AGI mientras generas un Dial()? A continuación propongo una manera de hacer eso que a muchos nos es muy útil en muchos de los casos.

    Bien, pues como saben con Dial() podemos generar llamadas al mismo tiempo utilizando & entre cada destino. Haciendo uso de esto podemos marcar a una extensión local de nuestro dialplan, y es aquí donde hacemos llamar a nuestro AGI.

    Ejemplo:

    [contextox]
    exten => 1234,1,Dial(SIP/juan&Local/juanagi@contextox)
    exten => juanagi,1,AGI(cualquieragi)

    De esta manera, al estar llamando al usuario SIP juan estará llamando a la extensión local juanagi en contextox

    Nota: Ten cuidado al hacer uso de Playback, Background y Answer dentro de la AGI porque detendrá el llamado al usuario SIP.

    Saludos.

  • 19 Jun 2008 /  GNU/Linux

    There is an example of how to generate dial from CLI and playback a message when user answer.

    CLI> originate SIP/user application Playback hello-message

  • 24 Dec 2005 /  GNU/Linux, Unix

    sk98lin – Marvell/SysKonnect Gigabit Ethernet driver v6.21

    SYNOPSIS
    insmod sk98lin.o [Speed_A=i,j,...] [Speed_B=i,j,...] [AutoNeg_A=i,j,...] [AutoNeg_B=i,j,...] [DupCap_A=i,j,...] [DupCap_B=i,j,...] [FlowCtrl_A=i,j,...] [FlowCtrl_B=i,j,...] [Role_A=i,j,...] [Role_B=i,j,...] [ConType=i,j,...] [Moderation=i,j,...] [IntsPerSec=i,j,...] [PrefPort=i,j,...] [RlmtMode=i,j,...]

    DESCRIPTION
    sk98lin is the Gigabit Ethernet driver for Marvell and SysKonnect network adapter cards. It supports SysKonnect SK-98xx/SK-95xx compliant Gigabit Ethernet Adapter and any Yukon compliant chipset.

    When loading the driver using insmod, parameters for the network adapter cards might be stated as a sequence of comma separated commands. If for instance two network adapters are installed and AutoNegotiation on Port A of the first adapter should be ON, but on the Port A of the second adapter switched OFF, one must enter: Read the rest of this entry »

  • 20 Nov 2005 /  GNU/Linux

    Como bien es común, que el tiempo, y algunos otros factores nos dan la sorpresa de que el disco duro ya no bootea, y nos ponemos pálidos al recordar que en el teníamos información importante.

    Gracias a estos acontecimiento me he visto en na necesidad de rescatar lo que fuera posible de mi partición, la cual se encuentra dentro del disco duro que ha pasado a mejor vida. Aquí redacto un poco de que manera rescato mi partición.

    Pues bien, como no cuento con un windows me olvide de buscar opciones sobre windows para el rescate. Además de la flojera de instalar un windows, y estando consiente que sobre mi GNU/Linux seria posible el rescate , sin tener que tocar el sistema populacho.

    Mi búsqueda inicio en san google, y me encostre en un principio con partimage, pese en sacarle una imagen a la partición, pero al primer error de lectura se quedo fuera partimage.

    Continuando la búsqueda, ahora en freshmeat, encuentro dd_rescue(http://www.garloff.de/kurt/linux/ddrescue/) el cual no se bloqueo con los errores.

    Este programa permite hacer una copia de datos de un dispositivo a otro o archivo. Por la flojera de crear una partición, rebootear el sistema y eso, me dispuse a hacer la copia en un archivo para posterior mente montarlo (mount -t reiserfs -o loop=/home/lx/utilities/lex.img /mnt/x/).