Sunday, February 27, 2011

Steps to Install profilerpictogram.tff font on OEL5 from command line

I need to install the profilerpictogram.ttf font as I was installed the Method R Profiler 5.2.5.1 on Oracle Enterprise Linux 5. These steps should be fine for almost all types of Linux distros.

Steps to Install profilerpictogram.tff font on OEL5 from command line:

[root@test share]# cd /usr/share/fonts
[root@test fonts]# mkdir ttfonts
[root@test fonts]# cd ttfonts
[root@test ttfonts]# pwd
/usr/share/fonts/ttfonts
[root@test ttfonts]# cd /d01
[root@test d01]# cd profiler/
[root@test profiler]# ls
Method R Profiler 5.2.5.1  Method R Profiler 5.2.5.1.tar
[root@test profiler]# mv "Method R Profiler 5.2.5.1" profiler
[root@test profiler]# ls
Method R Profiler 5.2.5.1.tar  profiler
[root@test profiler]# cd profiler
[root@test profiler]# ls
config.properties  etc  fonts  jlib  P5  p5prof_wrapper  Profiler.sh  vendor
[root@test profiler]# cd fonts
[root@test fonts]# ls
profilerpictogram.ttf
[root@test fonts]# cp profilerpictogram.ttf /usr/share/fonts/ttfonts
[root@test fonts]# cd /usr/share/fonts/ttfonts
[root@test ttfonts]# ls
profilerpictogram.ttf
[root@test ttfonts]# ttmkfdir -o fonts.scale
[root@test ttfonts]# chkfontpath --add /usr/share/fonts/ttfonts/
chkfontpath: error opening /usr/share/fonts/ttfonts/fonts.dir, unwilling to add path
[root@test ttfonts]# mkfontdir
[root@test ttfonts]# chkfontpath --add /usr/share/fonts/ttfonts/
[root@test ttfonts]# /etc/rc.d/init.d/xfs restart
Restarting xfs:
Shutting down xfs:                                         [  OK  ]
Starting xfs:                                              [  OK  ]
[root@test ttfonts]#

That's it.

No comments: