Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just installed logkeys from Software center. I am finding it hard to run it. Its documentation page doesnt help much either. 1. How do I run it? 2. Can I bind the start up with a key combination? 3. How to see the logs?

Thanks in advance

share|improve this question
add comment

3 Answers

up vote 5 down vote accepted

Add this command to startup application so logkeys will be started automatically during every startup..

Goto-->System-->Preferences-->Startup Applications

alt text

In startup applications preferences click add,it will give you a windows with Name,Command and Comments..

In Name field you can give any name and in Command field type logkeys --start and click save.

Before that you want to specify output location for your log.In terminal type touch test.log and then type this logkeys --start --output test.log to stop logkeys type logkeys --kill in terminal.

share|improve this answer
    
Thanks Karthick.. I am going to try it and post back. –  t3ch Nov 21 '10 at 18:25
    
Post your comments if you have any problem,we will help you –  karthick87 Nov 21 '10 at 18:42
    
Karthick, test.log on my terminal isnt giving me anything. –  t3ch Nov 21 '10 at 19:01
    
Do you want to view your logs?Then type tail test.log in terminal. –  karthick87 Nov 21 '10 at 19:06
    
Karthick, this is what I am getting. ubuntu@ubuntu-XPS-M1330:~$ tail test.log tail: cannot open `test.log' for reading: No such file or directory –  t3ch Nov 21 '10 at 19:08
show 7 more comments

Logkeys quick setup:

  • Get Logkeys from GoogleCode project spot:

    wget http://logkeys.googlecode.com/files/logkeys-0.1.1a.tar.gz
    
  • Unarchive Logkeys:

    gunzip logkeys-0.1.1a.tar.gz 
    tar xvf logkeys-0.1.1a.tar 
    
  • Build up Logkeys:

    cd logkeys-0.1.1a/
    ./configure
    make
    sudo make installl
    

In case of ./configure failure, run:

sudo apt-get install build-essential

Now, it's important to have the current keyboard map file. You can download the keyboard map files at: http://code.google.com/p/logkeys/wiki/Keymaps

  • After downloading the keyboard map file that you need, you can set up logkeys:

    sudo logkeys -s -m /home/XYZ/Downloads/de.map -o /home/XYZ/loggy.log
    

    Where -s starts the logkeys deamon, -m is the path for the keyboard map file and -o the log output file. Logkeys should now begin to dump the capture keystrokes to the defined log file (human readable).

  • To stop logkeys:

    sudo logkeys -k
    
  • For auto start at boot time:

    sudo vim /etc/init.d/rc.local
    

    and add this to the bottom of the file:

    /usr/local/bin/logkeys -s -m /home/XYZ/Downloads/de.map -o /home/XYZ/loggy.log &
    

If desired, reboot your linux box to check the auto start entry at rc.local

sudo reboot now

And you are done! Props.

share|improve this answer
add comment

Sorry, I think the documentation is very understandable; Ask concrete question, if you don't understand something.

The second question, what isn't in the docs, I can anwser with this:

Click System > Options > Hotkeys, New hotkey, then give a name, the command is: logkeys --start --output /path/to/log(don't forget to change /path/to/log to your log location!!!), then click on your new hotkey, and give a key combination. Your thing is ready.

share|improve this answer
1  
Thanks B.Roland. I am going through documentation .. and will edit the question accordingly. –  t3ch Nov 21 '10 at 17:13
    
Ok, I'll check it once more today! –  B. Roland Nov 21 '10 at 17:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.