Friday, February 17, 2012

Installation Logkeys

1st need to install g++ if you haven't install it.
sudo apt-get install g++    # to install g++ on a Debian-based OS
or
sudo apt-get install build-essential # if previous command fails

Proceed with

$ tar xvzf logkeys-0.1.1a.tar.gz     # to extract the logkeys archive

$ cd logkeys
-0.1.1a/build # move to build directory to build there
$
../configure # invoke configure from parent directory
$ make
# make compiles what it needs to compile
( become superuser now ) # you need root to install in system dir
$ sudo su
$ make install
# installs binaries, manuals and scripts
How to

Create log file by default log file is /var/log/logkeys.log and is not readable by others.

You can set it anyway you like with the command --outputt

But before that you need to create the log file

$ touch /home/"you home directory"/Documents/test.log

Then run the logkeys :

$ logkeys --start -u --output /home/"you home directory"/Documents/test.log

The "-u" use for keymap to US-keymap

to test

$ tail /home/"your directory"/Documents/test.log

How to stop

$ logkeys --kill

No comments:

Post a Comment