About me
For students
XNote
Software notes
Linux
Page content
Bootable USB stick with Ubuntu
Adding true type fonts in Linux
Disable dead keys

Bootable USB stick with Ubuntu

Ubuntu includes a utility to make a bootable USB stick since version 8.10 (usb-creator) — see Menu → System → Administration → Create bootable USB disk. However, I made the experience that while this program copies everything correctly to the USB stick, the stick is not bootable afterward as it does not contain a valid boot sequence in the master boot record. To make the stick bootable, you have to manually copy a syslinux boot image to the master boot record of your USB stick. Assuming, your USB stick is located under /dev/sdb, the required copying can be performed via "dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdb". WARNING: If you copy to the wrong device, especially if it is your harddisk, you may end up with an unbootable system!

Adding true type fonts in Linux

To add TrueType fonts (*.ttf) to KDE or GNOME, you may copy or symlink the desired fonts in the ~/.fonts directory for a per-user install. To install them system wide, start from /etc/fonts/fonts.conf to look for or register a directory where to place/symlink your fonts. In case you want to register a new directory, you should not change the /etc/fonts/fonts.conf file directly, but add another configuration file to the /etc/fonts/conf.d directory.

To add TrueType Fonts (*.ttf) to your X Font-Server (xfs) do the following:

  • Create a directory to contain your fonts, let's call it /usr/local/share/fonts/myNewFonts and copy your TrueType fonts there.
  • Call mkfontscale and mkfontdir with the directory as argument. This creates the files fonts.scale and fonts.dir in this directory.
  • Create a symlink to the directory under the directory /etc/X11/fontpath.d.
  • Restart the XFS server by calling: /etc/init.d/xfs reload
  • The fonts are now registered with X11. You can check it with the xlsfonts command.

These steps have been tested on Fedora 8. Depending on your distribution, the process of how include the directory in your configuration might be different.

Note that it is also possible to use fonts designed for the MS Windows system.

Disable dead keys

If dead keys are enabled, you have to push dead keys, e.g. the tilde character "~", twice in order to enter it in a terminal. To be able to enter dead keys with a single key stroke, you have to disable dead keys. Generally, this is a keyboard configuration issue. So check the keyboard configuration of your Linux distribution. For Cygwin, add "-xkbvariant nodeadkeys" to the defaultserverargs in /usr/X11R6/bin/startx.