Whether you’re doing so to make sure that you’re keeping logs of what you do on your own computer or even checking up on your children or employees, having a trustworthy key logging program that only you know about has its advantages.
Being able to know someone’s password is just one of the many possibilities that key logging software provides and it’s this reason key logging tools have earned such a bad reputation. While they may carry a bad reputation the value they can bring when using them ethically is undeniable.
Keyloggers, Windows vs Ubuntu.
Many free key logging software that you find for Windows are actually malware and have keyloggers of their own that will happily log your keys without your permission (most free ones). It’s actually nearly impossible to find a good keylogger for free. Most if not all of them only have basic tools and the rest of the features are hidden behind a paywall.
How is a keylogger for Ubuntu different?
Ubuntu users don’t have to bother with all the annoying paywalls that Windows users have to deal with on a regular basis.
It is important to note that you MUST have access to a computer to install a program that is capable of keeping a log of all the pressed keys. For a computer running Ubuntu, as a user, you must have an account with most, if not all privileges.
Now that we have some of the general information out of the way, let’s look at the most commonly used keylogging software. There’s LKL which will come up on many search results and there’s LogKeys which is considered overall to be a better version altogether.
LKL (Linux Key Logger) vs LogKeys
LKL was last updated in early 2013 and LogKey’s last modification was in 2010. But both of them work the same. As far as user friendliness is concerned, it’s relatively hard to configure LKL so we’ll just look at LogKeys for now. However with recent versions of Ubuntu, LogKeys also requires some configuration to get started.
How to install LogKeys Keylogger on Ubuntu 12.04
LogKeys itself can be found here: https://code.google.com/p/logkeys/
But to install it from source you’ll first need to do a minor step to build the installation itself. Simply type the following command to get the essential building tools.
$ sudo apt-get install build-essential
If you’ve ever installed any software from source before, you can skip this step completely.
If you’re downloading it yourself with a GUI (Not recommended)
After downloading the .tar.gz file from the link above and extracting it, you’ll need to open command line and make your way towards the folder you extracted all your data in.
Then simply type: (Each line is a new command)
$ sudo make install
$ sudo locale-gen
Installing LogKeys through command line (Recommended)
You can completely skip most of the trouble with finding the right directory through command line if you’re having trouble and simply complete the following series of commands.
$ wget https://logkeys.googlecode.com/files/logkeys-0.1.1a.tar.gz
$ tar xvzf logkeys-0.1.1a.tar.gz
$ cd logkeys-0.1.1a
$ sudo make install
Note that the “logkeys-0.1.1a.tar.gz” is the latest version available, it can be seen on the download page of the website given earlier.
Skipping everything, doing it the apt-get way
Just run the following command.
$ sudo apt-get install logkeys
And voila, you’ve done it. (Do note that there are some reports of the apt-get package being broken, doing it from the sources (two methods above) is still the preferred method.
So you’ve installed LogKeys, now what?
Do read through the documentation provided by the developer here. If you’re having an empty log file then 9 out of 10 times it’s because the keymap isn’t working correctly and needs to be reconfigured.
To read the LogKeys manual (highly recommended), do:
$ man logkeys
YOU’VE DONE IT!
Now you have successfully installed a keylogger on Ubuntu 12.04. You can now monitor your device discreetly!
If you found our tutorial helpful please share with your friends! Or check out some of our other tutorials for more computer help!