|
vicodin buy Linux simple fax printer server mini-HOWTO (faxsrv-mini- HOWTO) Erez Strauss > v1.0, 8 November 1 vicodin buy 97 No warranties. Comments are always welcome. This document describes in deta vicodin buy ls one of the simplest ways to setup fax server on your Linux system. The fax is vicodin buy available to the users on the local host and to network users. ________________ vicodin buy _____________________________________________________ Table of Contents 1. Intr vicodin buy duction 2. Questions & Answers 2.1 What is a fax printer server ? 2.2 Ho vicodin buy to set it up ? 2.2.1 The efax Software 2.2.2 The printcap entry. vicodin buy 2.2.3 The fax command 2.2.4 The /usr/bin/fax file. 2.2.5 The / vicodin buy ar/spool/fax directory. 2.2.6 The lock file. 2.2.7 The /dev/modem s vicodin buy ecial file. 2.2.8 The 2.3 How do I use it, for the server ? 2.4 Wh vicodin buy re do I specify the target Fax number ? 2.5 How do I use it from other Unixes vicodin buy on the net ? 2.6 Caldera, LPRng users 3. Latest version, Contacting the auth vicodin buy r. ______________________________________________________________________ 1. I vicodin buy troduction To get a working printer/fax on the linux machine you should have som vicodin buy software and fax modem. The Printing software will be using the fax software a vicodin buy a print filter. The efax will find the fax number from the print Job number a vicodin buy d will send the fax. The efax software was written be Ed Casas . vicodin buy he rest of the document is build as Q&A. 2. Questions & Answers 2.1. What is vicodin buy fax printer server ? A fax printer server is a setup of few programs: efax, and vicodin buy the print server, in such a way that sending a fax from the computer is as simp vicodin buy e as sending printout to a printer. 2.2. How to set it up ? Setting efax as fa vicodin buy print server includes few problems As I worked it out few times, I decided to c vicodin buy llect this wisdom in this small mini- HOWTO, comments are welcome at . I describe them here and the solutions, and all the instruction in sh vicodin buy rt steps: 2.2.1. The efax Software make sure you have the efax package. On RP vicodin buy based system use the command 'rpm -qv efax'. You can get the efax sources in ta vicodin buy .gz format from sunsite: ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/fax/efa vicodin buy 08a.tar.gz or binary rpm package: ftp://ftp.redhat.com/pub/redhat/redhat-4.2/i3 vicodin buy 6/RedHat/RPMS/efax-0.8a-3.i386.rpm 2.2.2. The printcap entry. The efax documen vicodin buy ation is missing the : at the end of the printcap entry. Solution: Add the fol vicodin buy owing /etc/printcap entry: fax:\ :lp=/dev/null:\ vicodin buy :sd=/var/spool/fax:\ :if=/usr/bin/faxlpr: 2.2.3. The fax command vicodin buy Use hard link and not symbolic link to the fax command. Run the command: vicodin buy n /usr/bin/fax /usr/bin/faxlpr 2.2.4. The /usr/bin/fax file. Edit the /usr/bin vicodin buy fax to your preferences: choose the right Fax Class for your modem: CLASS= vicodin buy .0 Set the FROM="your international phone number" field NAME="Your Name" vicodin buy dd the line for conversion of international phone number to local for example in vicodin buy Israel you would use: TELCVT='sed -e s/+972/0/ -e s/+/00/' # Israel There vicodin buy is a problem in the file in line 586, change the cfile=... with the following tw vicodin buy lines: cfile=`/usr/bin/tail -1 lock` cfile=`cat $cfile` at lines 58 vicodin buy ,587 there shouldn't be '-' signs the lines are: 0) echo "$l" | mail -s "fa vicodin buy to $num succeeded" $user@$host ;; *) echo "$l" | mail -s "fax to $num fail vicodin buy d " $user@$host ;; 2.2.5. The /var/spool/fax directory. create the directory vicodin buy /var/spool/fax mkdir /var/spool/fax chmod 777 /var/spool/fax 2.2.6. vicodin buy The lock file. The lock file (/var/spool/fax/lock) is being created with incorre vicodin buy t permissions, use the following command to set it correctly: touch /var/s vicodin buy ool/fax/lock ; chmod 644 /var/spool/fax/lock 2.2.7. The /dev/modem special file vicodin buy The efax program is expecting real device file at the /dev/modem and will not vicodin buy ork with symbolic link, so create a device file with the same major and minor number as the /dev/cua? the is connected to the modem. The file should have the rw-rw-rw- mode to enable any user to use the fax software. ls -lL /dev/modem rm /dev/modem mknod /dev/modem c Mj Mi chmod 666 /dev/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
|