Tuesday, February 14, 2012
LKL Linux KeyLogger vs. logkeys
Business case is: install a key logging utility on Ubuntu 10.04 (Lucid Lynx).
Solution: Trying to address the business case I stumbled upon two different key logging utilities: LKL Linux KeyLogger and logkeys. Based upon my humble experience first one does not matches expectations, while the second one does it in full.
Scope of the article: share the experience with others which might have a similar business case.
Assumption: the lab system has an italian keyboard layout.
FIRST TRY: LKL Linux KeyLogger
http://blog.theunical.com/ubuntu/lin...ger-in-ubuntu/
- How to install?
http://sourceforge.net/projects/lkl/
./confiure
make
sudo make install
- How to use?
sudo lkl -l -k /home/XYZ/Downloads/lkl/keymaps/it_km -o /home/XYZ/loggy.log
(apparently seems ok)
- now it has to start automatically at any reboot
cd /etc/init.d
sudo vi rc.local
add at the bottom "/usr/local/bin/lkl -l -k /home/XYZ/Downloads/lkl/keymaps/it_km -o /home/XYZ/loggy.log &"
(it starts but in the loggy.log file there is only garbage, I tried to remove the two keyboard mapping it_UP e it_ALT, but no way it does not log anything meaningful)
SECOND TRY: logkeys
http://code.google.com/p/logkeys/
- How to install?
gunzip logkeys-0.1.1a.tar.gz
tar xvf logkeys-0.1.1a.tar
cd logkeys-0.1.1a/
cd build/
../configure
('sudo apt-get install build-essential' if previous command fails)
make
sudo make install
- it is important to have the correct map file so download the it.map file from their website
- How to use?
sudo logkeys -s -m /home/XYZ/Downloads/de.map -o /home/XYZ/loggy.log
sudo logkeys -k
- now it has to start automatically at boot time
cd /etc/init.d
sudo vi rc.local
add at the bottom "/usr/local/bin/logkeys -s -m /home/XYZ/Downloads/de.map -o /home/XYZ/loggy.log &"
(it starts and the loggy.log file is human readable, mission accomplished)
CONCLUSION
IMHO logkeys rules! ;o)
Cheers,
Fabrizio
Saturday, February 4, 2012
Upgrade Ubuntu 9.04 to 9.10 then 10.04
You cannot skip versions between upgrades. The version between Jaunty and Lucid is Karmic. I suggest you do backup important data and do a complete reinstall as many things has changed, including the boot loader.
If you do not like a fresh install, you can upgrade using an Alternate CD.
Preparations:
- Backup the system (if possible a disk image)
- Backup your personal files (the home directory) so you can easily copy the files
- Remove all PPA's and non-standard repositories, including their packages
- Be prepared for failure, have a Live CD available so you can still boot even if the disk is dead
The upgrade using the alternate CD is described below:
- Download
ubuntu-9.10-alternate-i386.iso
from http://releases.ubuntu.com/karmic/ to your home directory (replacei386
withamd64
if you've a 64-bit system andubuntu
withkubuntu
for KDE) Open a terminal and run:
sudo mount -o loop ~/ubuntu-9.10-alternate-i386.iso /media/cdrom
Start the upgrade by executing:
gksu "sh /media/cdrom/cdromupgrade"
If you're using KDE (Kubuntu):
kdesudo "sh /media/cdrom/cdromupgrade"
- Reboot
After this upgrade from 9.04 to 9.10, proceed with the upgrade to 10.04 using:
sudo do-release-upgrade -d
Wednesday, December 28, 2011
How to install webmin on ubuntu using apt-get install webmin
Install webmin on ubuntu 11.04 (Natty) server
We have already discussed how to install ubuntu 11.04 LAMP server now we will install webmin for easy administartion
Edit /etc/apt/sources.list file
sudo vi /etc/apt/sources.list
Add the following lines
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
Save and exit the file
Now you need to import GPG key
wget http://www.webmin.com/jcameron-key.asc
sudo apt-key add jcameron-key.asc
Update the source list
sudo apt-get update
Install webmin
sudo apt-get install webmin
Now you need to access webmin using http://serverip:10000/ once it opens you should see similar to the following screen
You need to enter root username and password to login.Once you logged in you should see similar to the following screen.
Friday, November 11, 2011
Configure Screenlet In 11.10
Add Desktop Widget/Goodies
To add its appearance and performance you can add some Desktop Goodies/Widget on your desktop. There some desktop application which usually fill Linux Desktop that is Screenlets, Conky, Super Karamba, Cairo-Dock, and Docky. All application that i mention above can improve your desktop appearance besides add functionality.
Install Screenlets in Ubuntu 11.10
Here's following command to install Screenlets on your desktop
sudo add-apt-repository ppa:screenlets/ppa
sudo apt-get update
sudo apt-get install screenlets && sudo apt-get install screenlets-pack-all
Thursday, October 27, 2011
Using Virtualbox In Full Screen On The Second Monitor
Actually i run a dual set monitor for my laptop and i want guest OS run full screen on second monitor.
To make it full screen on the second monitor, after entering full screen mode with the guest OS,
hover over the Virtualbox hidden menu at the bottom of the guest OS.
On View > Virtual Screen 1 > Use Host Screen 2
This will make the guest OS shows up in the second monitor when using full screen mode.
I get this tip from : http://tipstank.com/2010/06/04/virtualbox-full-screen-second-monitor/
Monday, October 17, 2011
Upgare My Ubuntu
Upgarding my Ubuntu to 11.10 , but this time i make sure everything in place before it be done. Luckily no bad things happen. I need to be familliar with Unity , no more menu for system and administrator.
Thursday, August 25, 2011
Coppermine Photo Gallery v1.5.14: Ubuntu Prep
1 Preliminary Note
In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.
I'm running all the steps in this tutorial with root privileges, so make sure you're logged in as root:
sudo su
2 Installing MySQL 5
First we install MySQL 5 like this:
aptitude install mysql-server mysql-client
You will be asked to provide a password for the MySQL root user - this password is valid for the user root@localhost as well as root@server1.example.com, so we don't have to specify a MySQL root password manually later on:
New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword
3 Installing Apache2
Apache2 is available as an Ubuntu package, therefore we can install it like this:
aptitude install apache2
Now direct your browser to http://192.168.0.100, and you should see the Apache2 placeholder page (It works!):
Apache's default document root is /var/www on Ubuntu, and the configuration file is /etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the /etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules), /etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf.d.
4 Installing PHP5
We can install PHP5 and the Apache PHP5 module as follows:
aptitude install php5 libapache2-mod-php5
We must restart Apache afterwards:
/etc/init.d/apache2 restart
5 Testing PHP5 / Getting Details About Your PHP5 Installation
The document root of the default web site is /var/www. We will now create a small PHP file (info.php) in that directory and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version.
vi /var/www/info.php