Wednesday, August 10, 2011

How to SSH login without password ?

Step 1: Create public and private keys using ssh-key-gen
ssh-keygen

Step 2: Copy the public key to remote-host using ssh-copy-id
ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host


Step 3: Login to remote-host without entering the password
ssh remote-host

Friday, August 5, 2011

Looking for a "spotlight" alternative for ubuntu ?


We all love the time-saver spotlight application in Mac OSX..! So here is an alternative for ubuntu users: Tracker
STEP1: Open your terminal
sudo apt-get install tracker
STEP2: Open the "Tracker" preferences and adjust it according to your needs.
You are done! Now leave it to index your files and Enjoy searching.

Friday, July 15, 2011

How to Mount Windows Partitions (FAT/NTFS) on Ubuntu Linux ?


NOTE:

i used in the following examples my own device names such as "/dev/sda3" and "/dev/sda4", But you should use your own values. To know your device names or IDs : open the terminal and type this command:
 sudo blkid 
Also i used the mount point as "/media/c" and "/media/d", But you can change them to any path you like.

STEP1: Open your Terminal and edit the "fstab" file:

sudo gedit /etc/fstab

STEP2: Add this line at the end of the file:

For a "FAT" partition:
/dev/sda3 /media/c vfat defaults,user,exec,uid=1000,gid=100,umask=000 0 0
For a "NTFS" partition:
/dev/sda4 /media/d  ntfs-3g defaults,locale=en_US.utf8 0 0

STEP3: Finally save/exit the fstab file and restart your PC

For more info consider visiting the Ubuntu Documentation
Blessings.

Saturday, June 25, 2011

How to enable Clean URLs with Apache 2 on Ubuntu?

STEP1: From the Linux command line, enable the rewrite module for apache with this command:
sudo a2enmod rewrite

STEP2: use an editor (such as vim or gedit) to edit the appropriate Apache configuration file:
sudo vim /etc/apache2/sites-available/default

STEP3: Look for the following lines and change "AllowOverride None" to "AllowOverride All"
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
<Directory> 

STEP4: Finally restart Apache 2
sudo /etc/init.d/apache2 restart

Thats all folks! i hope you've enjoyed.