Page 1 of 1

How to install fonts ?

Posted: 8. Oct 2011, 14:47
by hatraor
Hello everyone,

I have installed Salix OS (fluxbox) on my Eee notebook a few days ago and I am quite happy with it so far. I have been using ubuntu on my desktop computer for a few months but I am still a rookie when it comes to doing particuliar things in Linux.

My current problem is that I would like to install fonts (.ttf file). In Ubuntu, all you need to do is click on the file and then click the "install font" button but things do not seem to work this way here. I read somewhere on this forum that all I had to do was to copy the file in /usr/share/fonts so I tried to do it but I just can't : I don't have permission to do it. I then tried to use the "sudo su" command in order to be able to open and "write" the font folder but I couldn't : I got an error message from the terminal "hatraor is not a sudoers file".
I then tried to log in as root (!) from the login screen but it would not work. And anyway I am sure there is an easier way to get things done !

All I want to do is install fonts. I love the lightness of fluxbox and the "spirit" of Salix OS but I have to admit I am beggining to consider switching back to Ubuntu which is more "newbie-friendly". Everything I have been trying to do with Salix seems to require linux skills I don't have yet !

If a patient and experienced Salix user could help me, I would be very grateful ! ;)

Re: How to install fonts ?

Posted: 8. Oct 2011, 16:04
by fredg
You have 2 ways:

1° only for your user
Just copy all the .ttf files in the dir ~/.fonts (a hidden dir in your HOME, if not there, create it)

2° for the system
You have to be root
su (enter password)
copy all .ttf files in /usr/share/fonts/TTF

And, if uou want to update the X fonts index, run (as root):

Code: Select all

mkfontscale usr/share/fonts/TTF
mkfontdir usr/share/fonts/TTF 
usr/bin/fc-cache usr/share/fonts/TTF
++

Re: How to install fonts ?

Posted: 8. Oct 2011, 17:00
by djemos
1) login as usual normal user
2) open a terminal and there type

Code: Select all

su
give the password for root
3) type

Code: Select all

slapt-get -u
slapt-get --upgrade
4) type

Code: Select all

slapt-get -i ubuntu-font-family webcore-fonts liberation-fonts-ttf fslsfonts libertine-ttf
to install the fonts

5) To see all fonts available from salix repos type

Code: Select all

slapt-get --search fonts 

Re: How to install fonts ?

Posted: 8. Oct 2011, 23:54
by hatraor
Thank you for your answers. I managed to do what I wanted thanks to you.

Re: How to install fonts ?

Posted: 14. Oct 2011, 02:17
by Duncan_Idaho
there are more fonts available in sourcery, like the droid family fonts