[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lpr faxes ?
Hello Peter
Setting efax as fax print server includes few problems
As I worked it out few times, I decided to collect this wisdom
on a letter.
I describe them here and the solutions, and all the
instruction in short steps:
1. The documentation is missing the : at the end of
the printcap entry.
Solution:
add the following /etc/printcap entry:
fax:\
:lp=/dev/null:\
:sd=/var/spool/fax:\
:if=/usr/bin/faxlpr:
2. use hard link and not symbolic link to the fax command
ln /usr/bin/fax /usr/bin/faxlpr
3. edit the /usr/bin/fax to your preferences:
choose the right Fax Class for your modem
(CLASS=2.0 for my Sportster28.800):
CLASS=2.0
Set the FROM="your international phone number"
NAME="Your Name"
add the line for conversion of international phone number to local
TELCVT='sed -e s/+972/0/ -e s/+/00/' # Israel
There is a problem in the file in line 586, change the
cfile=... with the following two lines:
cfile=`/usr/bin/tail -1 lock`
cfile=`cat $cfile`
at lines 586,587 there shouldn't be '-' signs the lines are:
0) echo "$l" | mail -s "fax to $num succeeded" $user@$host ;;
*) echo "$l" | mail -s "fax to $num failed " $user@$host ;;
4. create the directory /var/spool/fax
mkdir /var/spool/fax
chmod 777 /var/spool/fax
5. The lock file (/var/spool/fax/lock) is being created with
incorrect permissions, use the following command to set it correctly:
touch /var/spool/fax/lock ; chmod 644 /var/spool/fax/lock
6. the efax program is expecting real device file at the /dev/modem
and will not work 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
ls -lL /dev/modem
rm /dev/modem
mknod /dev/modem c Mj Mi
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
7. change the mode at the /var/lock directory
chmod 1777 /var/lock
Try using the lpr now:
lpr -Pfax -J <Fax-Number> [file-names]
I hope it helps you and others.
Erez Strauss
erez@newplaces.com
http://www.newplaces.com/
On Sat, 21 Dec 1996, Peter wrote:
>
> Has anyone tried to get lpd to send faxes directly ? I mean by doing
> magic with the printcap, requeuenig and then hylafax or efax or
> something ? I'm embarking on this now and I'd like to avoid reinventing
> hot water etc.
>
> Peter Lorand Peres
> ------------------
> plp@actcom.co.il 100310.2360 on CIS (please use Internet address for mail)
>
> "The creed of Inland Revenue is simple: 'If we can bring one little smile to one
> little face today - then somebody's screwed up somewhere' - David Frost
>
> (Note: The above stands valid in all countries until proven wrong)
>