Tuesday, January 24, 2012

How to find installed yum packges on centos?

Hi All,

How to find installed yum packges on centos? Its very simple. Just give the following command on you teriminal.

$ yum list installed | grep <package_name> | cut -d' ' -f1

Thanks,
Ramanavel Selvaraj

Getting File Browser with superuser privileges in UBUNTU

Hi All,

How to open a file browser with superuser privileges in UBUNTU?

Its very simple just open a file browser  and press Alt + F2.

And type as  

gksu nautilus

Thats it You got the File Browser now.With superuser privileges ENJOY!!!!.


Thanks,
Ramanavel Selvaraj

Completely Uninstalling the mozilla firefox from ubuntu

Hi All,

To uninstall the mozilla firefox from the ubuntu machine just follow the instructions. Its all just easy to remove.

1. Removing via synaptic package manager

Go to System=>Administration=>Synaptic Package Manager

Search as firefox if that returns any installed packages of firefox just right click and choose completely remove  and the click apply. Then the firefox package will completely get uninstalled.

2.Uninstalling via Teriminal


$ sudo apt-get purge firefox


3. Removing temp files of firefox


After uninstalling firefox you have to remove the temp files of firefox for that just Run


$ sudo rm -rf /home/<user>/.firefox /home/<user>/.macromedia  /home/<user>/.adobe /etc/firefox/ /usr/lib/firefox/


Just restart the system you will get firefox cleared.


To get older versions of firefox just follow the link.


ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases


Thanks,
Ramanavel Selvaraj.

Installing windows fonts (Arial) on CENT-OS,FEDORA and UBUNTU

Hi All,

Installing the windows fonts on CENT-OS,FEDORA and UBUNTU for this you have two main packages they are rpm-build and cabextract you can install these packages via yum. If cabextract is not available on yum packages means we can download the rpm and install. Please follow the instruction to get microsoft fonts.

For CENT-OS/FEDORA

1. Installing Dependencies:

sudo yum install rpm-build cabextract

or download the cabextract from the follwing link,

www.cabextract.org.uk/cabextract-1.4-1.i386.rpm

TO install rpm package:

$ rpm -ivh cabextract-1.4-1.i386.rpm

2. After installing this rpm we can download the  msfonts spec file from the following link.

$ wget http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec

3. Build the RPM

$ rpmbuild -ba msttcorefonts-2.0-1.spec


if any problem occur while build change the mirror url in spec(Line no:63) :

mirror="http://switch.dl.sourceforge.net/sourceforge/corefonts/"

The mirrors will very busy and some times it will not redirect properly so you can try several times untill its get succeeded. Don't loose your confidence. If you very luck you will get in first time itself. Good luck for that.

4. Install the RPM

$ rpm -ivh /usr/src/redhat/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm

For Ubutu:


1. You can get from aptitute install 

sudo aptitude install msttcorefonts

Thats all, now you have installed your new windows fonts on your system, you can start using them immediately in you Open Office, or in any other application, I have tested on Fedora, Ubuntu, Debian with Gnome and KDE.

Thanks,
Ramanavel Selvarj