jeltsch's blog

True Type fonts under Linux

True Type fonts under Linux Font handling under Linux is quite a chaos. Here is how I added true type fonts to my Suse Linux 9. In the Control Center -> System Administration -> Font Installer you have to change into Administration mode -> Advanced Mode (with embedded font selector). Then I just selected the fonts I wanted from the fonts directory of my Windows XP partition and clicked Add. By clicking Apply the fonts become available to the X Windows Server.

Recursive grep

grep (case-insensitive, recursive) grep doesn't offer any possibility to recursively descent down the directory tree. The following command searches e.g. just thru all the files in the current directory:

grep bacteria *

To make the search case-insensitive, one can use the i flag:

grep -i bacteria *

But if you want to do a recursive search you have to use a quite complicated construction of UNIX commands to achieve this goal:

find ~/Mail -type f -exec grep 'bacteria' {} \; -print

Specifying a default working directory (Path) for Acrobat via acroread.desktop file

Acrobat starts always with ~ as the working directory. Because I keep all my pdf files in a seperate directory, I have to do quite some navigation before I can save them. This is especially bad as the Acrobat save as window displays all files including hidden files. Thus I would like Acrobat to use always ~/Documents/pdf as working directory. The .desktop file specification defines for Type=Application the entry Path= which is supposed to define the working directory.

Pages