Saturday, May 29, 2010

sun java 6 on lucid lynx

To install sun-java6-jre on Ubuntu 10.04 LTS, type the commands below in Terminal:
sudo add-apt-repository "deb lucid partner" 
sudo apt-get update
sudo apt-get install sun-java6-jre

Thursday, May 27, 2010

Installing Skype on ubuntu 10.04

Since ubuntu  10.04 Skype is part of the Canonical partner repository . Hence you can to install Skype  easily.  

    To install Skype in Ubuntu 10.04 Lucid Lynx from the partner repository, go to System > Administration > Software Sources and on the "Other software" tab, enable (check the box next to it) the " lucid partner" repository.
Now open a terminal and type 
$ sudo aptitude update && sudo aptitude install skype
Enjoy skype 

Friday, May 7, 2010

How to protect a password file in linux

A simple way to encrypt a file with a password is to use gpg (GnuPG). Suppose we have a file mysamplefile.txt, to encrypt it type the following on console.

$ gpg -c mysamplefile.txt

You will be asked to enter a paraphrase twice
A new file named mysamplefile.txt.gpg will be created.

To decrypt the file type
$ gpg mysamplefile.txt

Again it will ask the paraphrase and decrypt the file.

Thursday, May 6, 2010

Window control buttons on Ubuntu 10.04

 The window control button layout on new ubuntu 10.04 is very confusing to me. I just wanted to shift them to the right as shown below.
The easiest way is to download and install ubuntu tweaks from here. When installed ubuntu tweaks shows up under Applications ->System tools -> Ubuntu Tweaks. Launch it  and select window  manager setting on the left panel.

   You can rearrange the control button and title bar by dragging them to appropriate positions as shown below.

Some great software you miss on Ubuntu 10.04

Here is a list of software you must install to make your life easier on Ubuntu 10.04

Play back DVDs on Ubuntu Lucid Lynx

 It is pretty simple

  $ sudo apt-get install ubuntu-restricted-extras
  $  sudo /usr/share/doc/libdvdread4/


Managing archives with UNP

Install unp and forget about all worries about archives.

$ sudo apt-get install unp

Extract any archive with
$ unp archive_file

where "archive_file" can be a rar, zip, tar.gz, deb,
tar.gz2, rpm or any other archive.

Tuesday, May 4, 2010

Virtual box truubles on Lucid

Last night I upgraded to lucid. Every thing seemed to work smoothly. Then I tried virtual box. It failed saying that the kernel modules are not loaded. I quikly fixed the problem with
~$ sudo /etc/init.d/vboxdrv  setup
Then virtual box started showing the following error message.

VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).
 The following  commands fixed it.
$ sudo modprobe -r kvm-intel
$ sudo modprobe -r kvm-amd