|
valium withdrawal Linux simple fax printer server mini-HOWTO (faxsrv-mini- HOWTO) Erez Strauss > v1.0, 8 November 1997 No warr valium withdrawal nties. Comments are always welcome. This document describes in details one of the sim valium withdrawal lest ways to setup fax server on your Linux system. The fax is available to the users valium withdrawal n the local host and to network users. ______________________________________________ valium withdrawal _______________________ Table of Contents 1. Introduction 2. Questions & Answers valium withdrawal 2.1 What is a fax printer server ? 2.2 How to set it up ? 2.2.1 The efax Sof valium withdrawal ware 2.2.2 The printcap entry. 2.2.3 The fax command 2.2.4 The /us valium withdrawal /bin/fax file. 2.2.5 The /var/spool/fax directory. 2.2.6 The lock file. valium withdrawal 2.2.7 The /dev/modem special file. 2.2.8 The 2.3 How do I use it, for t valium withdrawal e server ? 2.4 Where do I specify the target Fax number ? 2.5 How do I use it f valium withdrawal om other Unixes on the net ? 2.6 Caldera, LPRng users 3. Latest version, Contactin valium withdrawal the author. ______________________________________________________________________ 1 valium withdrawal Introduction To get a working printer/fax on the linux machine you should have some valium withdrawal software and fax modem. The Printing software will be using the fax software as a prin valium withdrawal filter. The efax will find the fax number from the print Job number and will send t valium withdrawal e fax. The efax software was written be Ed Casas . The rest of the docu valium withdrawal ent is build as Q&A. 2. Questions & Answers 2.1. What is a fax printer server ? A valium withdrawal ax printer server is a setup of few programs: efax, and the print server, in such a wa valium withdrawal that sending a fax from the computer is as simple as sending printout to a printer. valium withdrawal .2. How to set it up ? Setting efax as fax print server includes few problems As I wo valium withdrawal ked it out few times, I decided to collect this wisdom in this small mini- HOWTO, com valium withdrawal ents are welcome at . I describe them here and the solutions, and valium withdrawal all the instruction in short steps: 2.2.1. The efax Software make sure you have the valium withdrawal fax package. On RPM based system use the command 'rpm -qv efax'. You can get the efax valium withdrawal sources in tar.gz format from sunsite: ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm valium withdrawal fax/efax08a.tar.gz or binary rpm package: ftp://ftp.redhat.com/pub/redhat/redhat-4.2/ valium withdrawal 386/RedHat/RPMS/efax-0.8a-3.i386.rpm 2.2.2. The printcap entry. The efax documentati valium withdrawal n is missing the : at the end of the printcap entry. Solution: Add the following /et valium withdrawal /printcap entry: fax:\ :lp=/dev/null:\ :sd=/var/spool valium withdrawal fax:\ :if=/usr/bin/faxlpr: 2.2.3. The fax command Use hard link and no valium withdrawal symbolic link to the fax command. Run the command: ln /usr/bin/fax /usr/bin/fax valium withdrawal pr 2.2.4. The /usr/bin/fax file. Edit the /usr/bin/fax to your preferences: choose valium withdrawal he right Fax Class for your modem: CLASS=2.0 Set the FROM="your international ph valium withdrawal ne number" field NAME="Your Name" Add the line for conversion of international p valium withdrawal one number to local for example in Israel you would use: TELCVT='sed -e s/+972/0 valium withdrawal -e s/+/00/' # Israel There is a problem in the file in line 586, change the cfile=.. valium withdrawal with the following two lines: cfile=`/usr/bin/tail -1 lock` cfile=`cat $c valium withdrawal ile` at lines 586,587 there shouldn't be '-' signs the lines are: 0) echo "$l" | valium withdrawal mail -s "fax to $num succeeded" $user@$host ;; *) echo "$l" | mail -s "fax to $nu valium withdrawal failed " $user@$host ;; 2.2.5. The /var/spool/fax directory. create the directory valium withdrawal /var/spool/fax mkdir /var/spool/fax chmod 777 /var/spool/fax 2.2.6. The l valium withdrawal ck file. The lock file (/var/spool/fax/lock) is being created with incorrect permissi valium withdrawal ns, use the following command to set it correctly: touch /var/spool/fax/lock ; ch valium withdrawal od 644 /var/spool/fax/lock 2.2.7. The /dev/modem special file. The efax program is e valium withdrawal pecting real device file at the /dev/modem and will not work with symbolic link, so cr valium withdrawal ate a device file with the same major and minor number as the /dev/cua? the is connect valium withdrawal d to the modem. The file should have the rw-rw-rw- mode to enable any user to use the valium withdrawal fax software. ls -lL /dev/modem rm /dev/modem mknod /dev/modem c Mj Mi chmod 666 /d valium withdrawal v/modem Mj is 5, and Mi is 64 for the cua0, 65 for cua1 and so on. For example (for cua1): mknod /dev/modem c 5 65 2.2.8. The /var/lock directory. change the mode at the /var/lock directory chmod 1777 /var/lock 2.3. How do I use it, for the server ? You should use the fax printer using the -P option and the -J option with the fax number. use one of the following lpr commands: lpr -Pfax -J [file-names] any command | lpr -Pfax -J 2.4. Where do I specify the target Fax number ? After the -J option. 2.5. How do I use it from other Unixes on the net ? Add the following entry into the /etc/printcap file and the client Linux systems, create the spool directory, and so on ... fax:\ :sd=/var/spool/fax:\ :mx#0:\ :sh:\ :rm=host.domain:\ :rp=fax: add the name of the client hosts into the /etc/hosts.lpd on the fax server machine. use it as before.
|