lunes, 29 de diciembre de 2014

Linux: teclado no funciona tras suspender (solución)

Conseguí solucionar de que el teclado no responde tras reanudar el equipo suspendido realizando la siguiente modificación
Editar /etc/default/grub
y cambiar la linea GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
por GRUB_CMDLINE_LINUX_DEFAULT="quiet splash atkbd.reset"
ejecutar update-grub y reiniciamos.

Por favor, comenten si lo han probado.

jueves, 11 de diciembre de 2014

Instalar Eagle CAD en Ubuntu de 64 bits

Descargamos el software Eagle si no lo hemos hecho todavía haciendo click en el siguiente enlace y después en "guardar como" en la versión para linux:
http://www.cadsoftusa.com/download-eagle/?language=en

Descargamos las bibliotecas necesarias:
sudo add-apt-repository ppa:colingille/freshlight
sudo sh -c "sed -i 's/trusty/saucy/g' /etc/apt/sources.list.d/colingille-freshlight-trusty.list"
$ sudo apt-get install libssl1.0.0:i386 libcrypto++9:i386 libxrender1:i386 libxrandr2:i386 libxcursor1:i386 libfreetype6:i386 libfontconfig1:i386 libxi6:i386
Hacemos el archivo ejecutable, para ello nos situamos en la carpeta donde lo hemos descargado y ejecutamos el siguiente comando:
sudo add-apt-repository ppa:colingille/freshlight
sudo sh -c "sed -i 's/trusty/saucy/g' /etc/apt/sources.list.d/colingille-freshlight-trusty.list"
$chmod a+x eagle*.run
sudo add-apt-repository ppa:colingille/freshlight
sudo sh -c "sed -i 's/trusty/saucy/g' /etc/apt/sources.list.d/colingille-freshlight-trusty.list"
$ ./eagle*.run
Seguimos las instrucciones del instalador y listo.
Si queréis que se ejecute como cualquier otro programa escribiendo solo su nombre en consola, seguid mi otro tutorial. http://nerolpl.blogspot.com.es/2014/12/crear-un-script-para-ejecutar-programar.html

martes, 9 de diciembre de 2014

Crear un script en Linux para ejecutar programas no descargados de repositorios

Cambiamos a la carpeta adecuada
cd /usr/local/bin

Creamos un archivo con el nombre del comando (nombre del programa) que queramos utilizar
sudo gedit programa

Editamos el archivo con la siguiente información
#!/bin/bash
cd /rutaDelPrograma
./nombrePrograma

Guardamos y le damos permiso de ejecución
chmod +x programa

Ejecutamos el programa
programa

Si todo va bien debería ejecutarse el programa.

sábado, 6 de diciembre de 2014

Configurar panel táctil (touchpad) en Ubuntu (Linux) para HP4520s (y otros)

Para configurar correctamente el panel táctil de vuestro portátil HP4520s o similares solo debéis realizar los siguientes sencillos pasos. Dejo una foto del panel para que veáis si es similar al vuestro.



1: Accedemos al fichero de configuración:

sudo gedit /usr/share/X11/xorg.conf.d/50-synaptics.conf


2: borramos todo y copiamos la siguiente información.

# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
#   Option "OptionName" "value"
#
Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
      MatchDevicePath "/dev/input/event*"
EndSection

Section "InputClass"
        Identifier "touchpad ignore duplicates"
        MatchIsTouchpad "on"
        MatchOS "Linux"
        MatchDevicePath "/dev/input/mouse*"
        Option "Ignore" "on"
EndSection

# This option enables the bottom right corner to be a right button on
# non-synaptics clickpads.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Default clickpad buttons"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
#       To disable the bottom edge area so the buttons only work as buttons,
#       not for movement, set the AreaBottomEdge
#       Option "AreaBottomEdge" "82%"
EndSection

# This option enables touching to be primary button on
Section "InputClass"
        Identifier "Primary touch"
        MatchDriver "synaptics"
        Option "TapButton1" "1"
EndSection


3: Reiniciamos y listo

Espero que os sea útil, tanto si os ha servido como no dejad un comentario ;)

miércoles, 3 de diciembre de 2014

Instalar WinUSB en Ubuntu 14.04

Instalar WinUSB en Ubuntu 14.04

Debemos ejecutar los siguientes comandos en el terminal:
sudo add-apt-repository ppa:colingille/freshlight
sudo sh -c "sed -i 's/trusty/saucy/g' /etc/apt/sources.list.d/colingille-freshlight-trusty.list"
sudo apt-get update
sudo apt-get install winusb
En caso de que se produjera un error:
sudo apt-get -f install
sudo apt-get install winusb