INSTALL

Questions: mhinca@hotmail.com

Setting up a local printer to allow faxing via ksendfax from any X application.

If you can read this you have already downloaded and unpacked the tar-ball so
let's begin.

I have a RedHat 5.1 installation, with KDE downloaded and built from source.
I'm using  an internal USR Sportster with voice/fax and 

I assume you have ksendfax installed and you have been able to use it to send
a fax.

The directory structure inside the tar-ball is a mirror of the locations under
/ where I have placed the files.

0. Login as root.

1. cd fax-from-printer/opt/kde/src/klaunchserver

2. Edit the Makefile to set the INSTALLDIR (default is /opt/kde/bin)

3. make install

4. Copy the klaunchserver.kdelnk file to the Autostart folder on your desktop
   -or- add klaunchserver to the startkde script. The first way allows only
   root to use the fax printer, the second allows any user.

5. cp fax-to-printer/usr/lib/rhs/rhs-printfilters /usr/lib/rhs/rhs-printfilters
   check that /usr/lib/rhs/rhs-printfilters/ps-to-fax.fpi is executable.

6. make a backup copy of your /etc/printcap file.

7. Use printtool to make a local printer called "fax",
   the Printer Device is /dev/null
   the Spool Directory is /var/spool/lpd/fax
   Any old Input Filter will do, it's going to get changed.

   Once you have added the printer, check the fax entry in /etc/printcap
   against the contents of fax-to-printer/etc/printcap.fax.
   The entries should be the same. The comment may be different.

   Using printtool, restart lpd.

8. cp fax-to-printer/var/spool/lpd/fax /var/spool/lpd/fax
   check that /var/spool/lpd/fax/filter is executable

9. Log out and login again to KDE. A reboot would be the safest thing to do.

10. Test it with:

         lpr -Pfax /etc/printcap

    You should get a ksendfax window with /tmp/fax_9999.ps file. The printer
    converts files to postscript prior to faxing, hence the name change. You
    can check the file with kghostview (before you spool the fax, the print
    filter removes it after you spool it).


EXTRAS:

If you want to set up StarOffice4.0 to allow faxing then cd to the
directory in which you installed StarOffice edit the file xp3/Xpdefaults.
The comments pretty much explain it all, set up a printer named "Fax" to
execute the command "lpr -Pfax"




