Captura Tecles
De WikiMar
Ubuntu
Instalar:
sudo apt-get install logkeys
Canviar el device al adequat:
sudo nano /etc/default/logkeys
ENABLED=1 DATE=`date +%Y-%m-%d_%H:%M:%S` #LOGFILE=/var/log/logkeys LOGFILE=/home/PATH TO/$DATE.txt # This should be updated according to your hardware # Check README.Debian for more info DEVICE=/dev/input/event2
Reiniciar o be:
sudo /etc/init.d/logkeys start
Es pot seguir un fitxer com es va modificant amb:
tail --follow test.log