File: /usr/lib/apsfilter/doc/INSTALL

***** Install apsfilter *****

1) login as root

2) unpack the gnu-zipped tar archive

	cd /
	tar xpvzf aps-XY.tgz

3) cd /usr/lib/apsfilter/bin && setup.apsfilter

   The installation script does the following things for you:

	- printer config questions
	- automatic /etc/printcap installation (saves original and old)
	- installation of spooldir's as needed
	- installation of a search database (needed for dvips)
	- installation of crontab entry to update the database regulary

4) Compile and install a utility rewind-stdin and a2ps

   If you have a Linux Slackware 1.2.0 with /lib/libc.so.4.5.24:
   ------------------------------------------------------------

   	you can use the already compiled versions in ../bin

   On other systems: 
   ----------------

	cd /usr/lib/apsfilter/src/a2ps-4.2-akl-new
	make clean
	make install
	cd /usr/lib/apsfilter/src/rewind-stdin
	make clean
	make install

   [ rewind-stdin is needed for dvips to read dvifiles from a pipe.
     Otherwise it's not possible to print dvi files using dvips->gs. ]

   [ a2ps is a special enhanced version for the apsfilter environment ]

5) Check your /etc/magic, see file(1) magic(5)
   maybe you have to add some lines for Postscript and dvi recognition

      # magic.postscript: Magic for postscript files
      0	string		%!		PostScript document
      >2	string	PS-Adobe-		conforming
      >11	string	1.0			at level %s
      >11	string	2.0			at level %s
      # magic.tex: 
      0	short	0173402	DVI File
      >16	string	>\0	(%s)
      0	short	0173531	Packed TeX Font
      >4	string	>\0	(%s)
      2	string	\000\022	Metafont Font Metric
      >34	string	>\0	(%s)

6)	People told me, that some mirosoft network products,
	that are able to communicate with Linux as a printer server
	produce strange postscript files...
	The postscript files start with "Control-D" -> "^D%!"
	So it could be a good idea to append the following
	lines to /etc/magic:

	# magic.postscript: Magic for strange MS postscript files
	1	string		%!		PostScript document
	>3	string	PS-Adobe-		conforming
	>12	string	1.0			at level %s
	>12	string	2.0			at level %s
