|
tramadol hcl Linux simple fax printer server mini-HOWTO (faxsrv-mini- HOWTO) Erez Strauss tramadol hcl > v1.0, 8 November 1997 No warranties. Comments are alw tramadol hcl ys welcome. This document describes in details one of the simplest ways to setup fax server on yo tramadol hcl r Linux system. The fax is available to the users on the local host and to network users. ______ tramadol hcl _______________________________________________________________ Table of Contents 1. Introduction tramadol hcl 2. Questions & Answers 2.1 What is a fax printer server ? 2.2 How to set it up ? 2. tramadol hcl .1 The efax Software 2.2.2 The printcap entry. 2.2.3 The fax command 2.2.4 The tramadol hcl /usr/bin/fax file. 2.2.5 The /var/spool/fax directory. 2.2.6 The lock file. 2. tramadol hcl .7 The /dev/modem special file. 2.2.8 The 2.3 How do I use it, for the server ? 2.4 tramadol hcl here do I specify the target Fax number ? 2.5 How do I use it from other Unixes on the net ? tramadol hcl 2.6 Caldera, LPRng users 3. Latest version, Contacting the author. _____________________________ tramadol hcl ________________________________________ 1. Introduction To get a working printer/fax on the lin tramadol hcl x machine you should have some software and fax modem. The Printing software will be using the fa tramadol hcl software as a print filter. The efax will find the fax number from the print Job number and wil tramadol hcl send the fax. The efax software was written be Ed Casas . The rest of the document tramadol hcl is build as Q&A. 2. Questions & Answers 2.1. What is a fax printer server ? A fax printer serv tramadol hcl r is a setup of few programs: efax, and the print server, in such a way that sending a fax from th tramadol hcl computer is as simple as sending printout to a printer. 2.2. How to set it up ? Setting efax a tramadol hcl fax print server includes few problems As I worked it out few times, I decided to collect this wi tramadol hcl dom in this small mini- HOWTO, comments are welcome at . I describe them her tramadol hcl and the solutions, and all the instruction in short steps: 2.2.1. The efax Software make sure y tramadol hcl u have the efax package. On RPM based system use the command 'rpm -qv efax'. You can get the efax tramadol hcl sources in tar.gz format from sunsite: ftp://sunsite.unc.edu/pub/Linux/apps/serialcomm/fax/efax08a tramadol hcl tar.gz or binary rpm package: ftp://ftp.redhat.com/pub/redhat/redhat-4.2/i386/RedHat/RPMS/efax-0. tramadol hcl a-3.i386.rpm 2.2.2. The printcap entry. The efax documentation is missing the : at the end of t tramadol hcl e printcap entry. Solution: Add the following /etc/printcap entry: fax:\ :lp= tramadol hcl dev/null:\ :sd=/var/spool/fax:\ :if=/usr/bin/faxlpr: 2.2.3. The fax c tramadol hcl mmand Use hard link and not symbolic link to the fax command. Run the command: ln /usr/bin/ tramadol hcl ax /usr/bin/faxlpr 2.2.4. The /usr/bin/fax file. Edit the /usr/bin/fax to your preferences: cho tramadol hcl se the right Fax Class for your modem: CLASS=2.0 Set the FROM="your international phone numb tramadol hcl r" field NAME="Your Name" Add the line for conversion of international phone number to local tramadol hcl for example in Israel you would use: TELCVT='sed -e s/+972/0/ -e s/+/00/' # Israel There i tramadol hcl a problem in the file in line 586, change the cfile=... with the following two lines: cfile tramadol hcl `/usr/bin/tail -1 lock` cfile=`cat $cfile` at lines 586,587 there shouldn't be '-' signs the tramadol hcl lines are: 0) echo "$l" | mail -s "fax to $num succeeded" $user@$host ;; *) echo "$l" | tramadol hcl mail -s "fax to $num failed " $user@$host ;; 2.2.5. The /var/spool/fax directory. create the d tramadol hcl rectory /var/spool/fax mkdir /var/spool/fax chmod 777 /var/spool/fax 2.2.6. The lock tramadol hcl ile. The lock file (/var/spool/fax/lock) is being created with incorrect permissions, use the fol tramadol hcl owing command to set it correctly: touch /var/spool/fax/lock ; chmod 644 /var/spool/fax/lock tramadol hcl 2.2.7. The /dev/modem special file. The efax program is expecting real device file at the /dev/mo tramadol hcl em and will not work with symbolic link, so create a device file with the same major and minor nu tramadol hcl ber as the /dev/cua? the is connected to the modem. The file should have the rw-rw-rw- mode to ena tramadol hcl le any user to use the fax software. ls -lL /dev/modem rm /dev/modem mknod /dev/modem c Mj Mi tramadol hcl hmod 666 /dev/modem Mj is 5, and Mi is 64 for the cua0, 65 for cua1 and so on. For example (for tramadol hcl ua1): mknod /dev/modem c 5 65 2.2.8. The /var/lock directory. change the mode at the /var tramadol hcl lock directory chmod 1777 /var/lock 2.3. How do I use it, for the server ? You should use tramadol hcl he fax printer using the -P option and the -J option with the fax number. use one of the followin tramadol hcl 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 tramadol hcl 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. Note: The header string that efax adds to the fax pages is not effected by the user name that sends the fax. (can be updated). 2.6. Caldera, LPRng users The LPRng printing management software is using a different method to handle the control file. Thanks to Luca Montecchiani , who found the problem and the solution. Here is an update to the
|