After installing logkeys from synaptic, it does not work, hangs when trying to start, even the output file is not created. Compiling solves this particular problem, but the now the output file is blank. How can i know what may be he problem? And how to solve it?
4 Answers
What command are you using to run it? When I tried to do
sudo logkeys --start
The program stalled for me too. I realized I needed to specify a keymap. If you have a US keyboard, you can type
sudo logkeys --start --us-keymap
For other keyboards type
sudo logkeys --start --keymap=/path/to/my/keymap.map
The fact that logkeys doesn't tell you a keymap isn't specified looks like a bug to me.
-
There are issues with logkeys and newer versions of Ubuntu, so I've written my own keylogger that you can find here: github.com/gsingh93/simple-key-logger– gsgxJul 15, 2014 at 19:39
I had this problem too, so I installed with apt-get
and it worked like a charm. Open terminal (Ctrl+Alt+T) and then type:
sudo apt-get install logkeys
Link to pt_br/uk_table
or another language table: Keymaps
sudo logkeys -s -m /home/user/pt_BR.map -o /home/user/logkeys.log
It can be done simple steps. First open a terminal and do the following
- Step1:
Installing logkeys using sudo
apt-get install logkeys
- Step2:
Start it by
sudo logkeys --start
- Step3: Type anything you need, you can use cntrl, shift, etc. Logfile is stored on the location /var/log/ unless you specified -o option
- Step4:
To view it, type
sudo gedit /var/log/logkeys.log
(Assume gedit installed on your system). Instead you can usesudo nano /var/log/logkeys.log
The apt-get package is broken, looks like since 12.10
It installs fine, but does not output anything to the files.
strace logkeys -s
Clearly shows the errors.
The details and confirmations of this are here https://code.google.com/p/logkeys/issues/detail?id=108
You'll have to install yourself from sources.
See https://code.google.com/p/logkeys/wiki/Documentation
I have messaged the package maintainer.