How to Linux Keylogger in Ubuntu

December 29, 2009
Filed under: Featured, Ubuntu 

Here are the simple steps for keylogger in ubuntu

What is Keylogger?

Keystroke logger is the practice of noting (or logging) the keys struck on a keyboard, typically in a covert manner so that the person using the keyboard is unaware that their actions are being monitored. There are numerous keylogging methods, ranging from hardware- and software-based to electromagnetic and acoustic analysis.

keylogger in Linux

We have an opensource software available for Linux called lkl (Linux Key Logger).

LKL is a userspace keylogger that runs under linux–x86/arch. LKL sniffs and logs everything passes trought the hardware keyboard port (0×60).

Download key logger here

How to Install?

Step 1

Unzip or untar the file you have downloaded

Step 2

Change in to directory by typing cd lkl

Step 3

Give the below command


This will check all the required resurces it needs

Step 4

Type `make‘ to compile the package.

Step 5

Optionally, type `make check’ to run any self-tests that come with the package.

Step 6

Type `sudo make install‘ to install the


Now you are done with the installation

How to use?

You can send argument with the command lkl
-h help
-l start to log the 0×60 port (keyboard)
-b debug mode
-k <km_file> set a keymap file
-o <o_file> set an output file
-m <email> send logs to <email>
-t <host> hostname for sendmail. Default is localhost

Example: lkl -l -k us_km -o log.file // use USA kb and put logs in ‘log.file’

Please comment on the same if it doesn’t works for you


5 Comments on How to Linux Keylogger in Ubuntu

  1. rosh on Wed, 17th Feb 2010 5:05 am
  2. i tried this

    bt after installation

    wen i use the commad
    lkl -l -k us_km -o log.file

    it displays like this

    keymap is required!! run lkl with -k

  3. linux keylogger on Thu, 11th Mar 2010 1:25 pm
  4. lkl is, like, 0LD!

    logkeys keylogger is newer, actively worked on, and works much better in all recent environments. 😉

  5. Ori on Mon, 23rd Aug 2010 12:39 pm
  6. where do i type that ?
    in step 2, 3, and so on

  7. Sagar on Wed, 1st Sep 2010 1:27 pm
  8. I have installed this application. But where to see log fles. in my case there is no log file created.

  9. Palash Jhabak on Tue, 5th Oct 2010 3:01 am
  10. @above use keymap/us_km instead of us_km. I think it should work



Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image