Monday, September 5, 2011

How to type Indian Languages Via ibus in Ubuntu


Howto: Lock your folders with Cryptkeeper in Ubuntu Linux


Re-install favourite packages in a fresh Ubuntu system








Easy way to save and install our favourite software packages into a new Ubuntu Linux system.


:~$ dpkg --get-selections > installed-software

The above command will make a file called "installed-software " in home directory.If we want to install this whole packages into a new ubuntu system,just copy this file (installed-software" into home directory of the new system , open a terminal and type this:


:~$ sudo apt-get install dselect


:~$ sudo dpkg --set-selections < installed-software


:~$ sudo dselect


Install software from the new menu........ ( Don't forget to copy all repos and deb files also otherwise you will have to re-download all the softwares again )



How to Fix Grub Error in Ubuntu Linux







Boot with Ubuntu live cd , open a terminal and run:

:~$ sudo fdisk -l

:~$ sudo su

:~$ cd /

mount /dev/sda12 /mnt #(Here my Root system is in sda12 shown from the 1st command)

# next line only if you have a separate boot partition

:~$ mount –bind /path/to/boot-partition /mnt/boot 

# if no separate boot partition, please continue:

:~$ mount --bind /proc /mnt/proc

:~$ mount --bind /sys /mnt/sys

:~$ mount --bind /dev /mnt/dev

:~$ chroot /mnt

# in the chroot session:

:~$ update-grub

# if update-grub fails

:~$ grub-install /dev/sda

# if you get any errors  please use this command :

:~$ grub-install --recheck /dev/sda

# now you can exit the chroot, unmount the system and reboot your box :

:~$ exit

:~$ sudo umount /mnt/dev

:~$ sudo umount /mnt/proc

:~$ sudo umount /mnt

:~$ sudo reboot


Enjoy...






Archives