Posts

Showing posts from August, 2012

Useful Fonts for Linux

I'm on a mission here to write personal reminders for linux installations... My latest collection of monospaced (and not only) fonts can be installed from the command line by typing the following: sudo apt-get install ttf-mscorefonts-installer (Note: do not attempt to run this through the software manager - it has to be executed from the command line as it displays a EULA that needs to be accepted) sudo apt-get install fonts-ubuntu-font-family-console sudo apt-get install fonts-inconsolata sudo apt-get install ttf-ubuntu-font-family sudo apt-get install xfonts-terminus Tahoma Tahoma is not included with the mscorefonts. Here's how to add it. Tahoma: cd ~/Downloads wget http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB cabextract -F 'tahoma*ttf' IELPKTH.CAB sudo mv -f tahoma*ttf /usr/share/fonts/truetype/msttcorefonts/ sudo chmod 644 /usr/share/fonts/truetype/msttcorefonts/tahoma* sudo fc-cache -v rm -f IELPKTH.CAB

Ubuntu US Keyboard Layout on UK model

For years and years I have been using the US keyboard layout on UK keyboards. Don't ask me why, many reasons. Now, UK keyboards have a key between the left-shift and Z, which has the backslash ("\") and pipe/bar ("|") symbols on it. On Windows selecting the US layout leaves that key as is, so basically this key works as a backslash and pipe key, but on Ubuntu it doesn't - it works as a "<" ">" key :-/ I seem to remember that on one of my Ubuntu installations (or was it a debian) I managed to find a keyboard layout that was US but worked on UK keyboards as I expected it. On my last install I just couldn't find a solution, until of course Googled it and found this page  which has instructions on how to remap a key. Two minutes playing with xev and xmodmap  and voila, all I needed to do was:  xmodmap -e "keycode 94 = backslash bar" Gotta love a quick solution.