How to install fonts ?

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
hatraor
Posts: 2
Joined: 8. Oct 2011, 14:29
Location: Chambéry, France

How to install fonts ?

Post 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 ! ;)
User avatar
fredg
Posts: 232
Joined: 3. Oct 2009, 16:50
Location: Lyon, France
Contact:

Re: How to install fonts ?

Post 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
++
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: How to install fonts ?

Post 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 
hatraor
Posts: 2
Joined: 8. Oct 2011, 14:29
Location: Chambéry, France

Re: How to install fonts ?

Post by hatraor »

Thank you for your answers. I managed to do what I wanted thanks to you.
User avatar
Duncan_Idaho
Posts: 216
Joined: 19. Sep 2009, 01:43
Location: Sietch Tabr, Planet Arrakis

Re: How to install fonts ?

Post by Duncan_Idaho »

there are more fonts available in sourcery, like the droid family fonts
Post Reply