Installation manual

38 5. Debian and other Software Packages
#> dpkg−divert −−remove /usr/include/X11/Xft/Xft.h
#>
#> rm /usr/X11R6/lib/libXrender.so
#> rm /usr/X11R6/lib/libXrender.so.1.1
#> rm /usr/X11R6/lib/libXrender.a
#> rm /usr/include/X11/extensions/Xrender.h
#> rm /usr/include/X11/extensions/extutil.h
#> rm /usr/include/X11/extensions/region.h
#> rm /usr/include/X11/extensions/render.h
#> rm /usr/include/X11/extensions/renderproto.h
#> dpkg−divert −−remove /usr/X11R6/lib/libXrender.a
#> dpkg−divert −−remove /usr/include/X11/extensions/Xrender.h
#> dpkg−divert −−remove /usr/include/X11/extensions/render.h
#> dpkg−divert −−remove /usr/include/X11/extensions/renderproto.h
#> ldconfig
#>
#> rm /usr/X11R6/lib/libXft.so
#> rm /usr/X11R6/lib/libXft.so.1.2
#> ldconfig
Finally,wehav e to marry the newXFree86 font configuration fontconfig with the Debian font manager defoma.
To this end we modify /etc/fonts/fonts.conf.
Modification of /etc/fonts/font.conf:
<!−− Font directory list configured on Sat Nov 16 01:41:41 CET 2002 −−>
<dir>/var/lib/defoma/x−ttcidfont−conf.d/dirs/TrueType</dir>
<dir>/var/lib/defoma/x−ttcidfont−conf.d/dirs/CID</dir>
<dir>/usr/X11R6/lib/X11/fonts</dir>
<dir>˜/.fonts</dir>
5. 11. Xprint — the X11 print system
Setting up and configuring a printer under Linux can be adventuresome. Hooking up a postscript printer can be-
come a nightmarish, especially if we want to print japanese postscript files on said printer.Afew programs are
cleverenough to download japanese postscript fonts into the printer before theyattempt to print. Most programs,
however, assume that the printer has installed japanese postscript fonts — which is usually not the case outside
of Japan.
Aproject which attempts to remedy this situation is XPrint. This is essantially a X11 server,which does send its
output to the printer instead of the screen. Wewant to use the development trunk release 008, since it supports
TrueType fonts.
First we download the source tar-ball, which we extract into a separate directory for compilation. Compiling and
installing is well described by the installation manual and is quite simple.
Downloading and Compiling Xprint:
#> cd /usr/local/packages
#> wget http://puck.informatik.med.uni−giessen.de/download/xprint_mozdev_org_source−2002−12−02−trunk.tar.gz
#> tar xzf xprint_mozdev_org_source−2002−12−02−trunk.tar.gz
#> cd xprint/src/xprint_main/xc/
#> make World 2>&1 | tee −a buildlog.log
#> cd packager/
#> make make_xprint_tarball
#> cd /usr/local/packages
#> rm −rf xprint
#> mkdir −p xprint/usr/local/src/xprint
#> mv /tmp/xprint_server_030118184734.tar.gz xprint/usr/local/src/xprint
#> mv xprint_mozdev_org_source−2002−12−02−trunk.tar.gz xprint/usr/local/src/xprint
#> cd xprint
#> tar xzf usr/local/packages/xxprint/xprint_server_030118184734.tar.gz
#> cd etc
#> mkdir −p laptop−net/init.d