Tuesday, January 24, 2012

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

1 comment: