Linux
Friday October 10, 2008 at 7:45am
I am using a hosting service, which doesn’t allow me sudo access. Yet I want to install additional fonts.
I don’t recall all the steps I did, but I got it working. First, I installed fontconfig in under my home directory, such that:
| $ which fc-list |
~/bin/fc-list |
|
then when I want to install new fonts I copy the ttf file to the ~/.fonts directory like:
| $ scp Georgia.ttf user@myurl.com:~/.fonts/g.ttf |
Georgia.ttf 100% 146KB 73.1KB/s 00:02 |
|
then in order to reset the font cache I run
| $ fc-cache -v ~/.fonts |
fc-cache: "/home/me/.fonts": skipping, 6 fonts, 0 dirs |
fc-cache: succeeded |
|
then when I run fc-list, I’ll see my new font in the list
| $ fc-list |
Georgia:style=Regular |
|
Reader Discussion
Comment on this post
Related posts
Using /home/* on a mac
I want the path on my Mac dev environment to match the path on my Linux server (I am doing this for ExpressionEngine, where it’s much easier to deploy to different servers if the paths match).
My Linux server path starts with /home/myusername. Unfortunately, in Mac Leopard the /home directory is not editable, so I cannot put my files in the directory I need.
I found a solution buried in an Apple support forum message. The solution is to comment out an entry in the the auto_master file.
Here are the steps:
- edit the file: /etc/auto_master
- comment out this line: # /home auto_home -nobrowse
- save & reboot
After reboot the /home directory acted like I expected and now I have my ExpressionEngine files where I need them.
read more
git: ‘index-pack’ is not a git-command. See ‘git --help’. fatal: index-pack failed
I am using capistrano to deploy to a dedicated server. It has been working fine for days, then last night it stopped working.
I investigated the trace and saw this error:
| git: 'index-pack' is not a git-command. See 'git --help'. |
fatal: index-pack failed |
|
So, I signed in to the server and tried to run a few variations of fetching and cloning my repository and other public repositories and got the same error.
Then I decided to sign in as root and another normal user. Those users were able to do git commands with no problems.
After a bunch of work trying to find the difference I discovered that my failing user had:
| echo $SHELL |
/usr/local/cpanel/bin/jailshell |
|
whereas my other users had:
So, I signed in as root and changed my user’s shell to bash and now everything works just fine:
| ssh root@xxx.xx.xx.xx |
chsh -s /bin/bash username |
|
read more