Installation manual

5. 12. Mozilla 39
#> mv init.d/xprint laptop−net/init.d
#> rmdir init.d
#> cd /usr/local/stow
#> ln −s ../packages/xprint .
#> stow −v −−target=/ xprint
The number in the name of the tar-ball will depend of the exact building date. Touse the Xprint server,wehav e
to add twovariables to the environment:
/etc/environment:
#xprint server
export XPSERVERLIST="‘/etc/laptop−net/init.d/xprint get_xpserverlist‘"
export XPRINTER="lp"
Finally,weset the necessary links in the laptop-net directories:
Creating the new startup/shutdown symlinks (example):
#> cd /etc/laptop−net/profiles
#> mkdir −p work/rc.d home/rc.d xxx−default/rc.d
#> cd work/rc.d
#> ln −s ../../../init.d/xprint S34xprint
#> ln −s ../../../init.d/xprint K04xprint
Integrating Xprint into laptop-net leavesuswith the problem that we must ensure that the twoenvironment vari-
ables are always and under all profiles well defined. Todoso, we set up /dev/null as printing device for profiles
without a real printer and start lprng and Xprint with this empty device. Furthermore, we wrap all Xprint aware
programs (in our case Mozilla) in shell scripts, which set these twovariables explicitly before starting the pro-
gram.
Xprint constructs its font path not by consulting the XFree86 configuration file but by searching for fonts.dir files
belowthe XPROJECTROOTdirectory.This is not quite what we want for tworeasons: First, Xprint misses all
fonts managed by defoma, second, it finds all fonts — eventhose, which we have explicitly exluded in our
XFree86 configuration file. This behaviour can easily be corrected by editing the Xprint boot script.
Adapting /etc/laptop-net/init.d/xprint:
get_system_fontlist()
{
case "$(uname −s)" in
*SunOS*)
;;
Linux)
XF86CONFIG="/etc/X11/XF86Config−4"
xfontpath=‘grep "FontPath" $XF86CONFIG | egrep −v "ˆ#" | sed ’s/FontPath//’ | tr "\"," " "‘
(for xpath in $xfontpath; do
echo $xpath | sed ’s/:unscaled//’
done ) | sort | uniq
;;
*)
;;
esac
}
5. 12. Mozilla
One of the most important programs supporting sub-pixel font-rendering right nowisThe Beast, a.k.a. Mozilla.
Unfortunately the precompiled binaries available at the Mozilla Homepage lack this feature, so we have touse
the source and compile the thing ourselves. Fortunately,this has become quite easy.
First we use the Unix Build Configurator to configure The Beast. Tocompile for sub-pixel font-rendering, we
have toenable Xft support. Depending on the actual configuration of Mozilla, we then have toinstall a fewDe-
bian packages.