Welcome to Crakomili software



Choose language





Crakomili Software
Tailored For your needs
Please wait..
Chat Offline
free support chat
MGETTY SENDFAX


MGETTY+SENDFAX: (works good on 7.3 -makes problems at 9.0,sendfax -v stuck) install: netpbm-9.24*,netpbm-progs*, mgetty-1.1*,mgetty-sendfax* sending faxes from winstations: get from http://www.boerde.de/~horstf 3 utilities: respond.exe config.exe, printfax-1.0.5.pl mv printfax-1.0.5.pl printfax.pl chmod him 777 cp printfax.pl /usr/bin (in this script u must c that section command line & faxspool program are for mgetty u can change the messages there). at /etc/mgetty+sendfax/mgetty.config (open all the section with your modem) comment out the lines: fax-mode 0666 port ttyS0 debug 3 fax-id speed at /etc/mgetty+sendfax/sendfax.config add the lines: fax-devices ttyS0 fax-id 03-6444864 ignore-carrier y comment out: dial-prefix ATDT ---> gives dial tone ATDP ---> pulse tone than try to send a row fax : sendfax -v 054978325 f1.G3 try also: faxspool 054978325 file1.G3 --> c if it is at the spool : /var/spool/fax/outgoing * faxrunq.config: success-send-mail y --> mails the user who send the fax, fail- send-mail y --> send mail notification to the sender after 5 failure tries (u c an also run a program at that event!) * faxheader put your name and phone number * add a file fax.deny (for persons to deny) * Must add /etc/mgetty+sendfax/fax.allow with names inside: ronen at /usr/bin/faxspool change: umask 000 --> that every user can delete his faxes * chmod -R 777 /var/spool/fax at /etc/samba/smb.conf add: [fax] comment = fax postscript = yes print command = ( /usr/bin/printfax.pl %I %s %U %m; rm %s ) & printable = yes writable = no path = /var/spool/fax #for cups: guest ok = yes browseable = yes use client driver = yes ------------------ windows side: -start program respond.exe (every time the box is started) -check connectivity FROM linux box: telnet 192.168.0.25 5555 --> the respond prog need to jump at windows side. -add a HP postcript printer LaserJet 4/4M PS from the smb FAX share and in the properties, advanced-check the "start print after last page was printed" -info: faxq -o --> c the queued faxes to renew a job that didnt send because of no carier failure:at fax/outgoing directory : mv JOB.suspend JOB logs: /var/spool/messages !,testparm, /var/spool/fax/outgoing/printfax.log /var/log/sendfax.log,/var/spool/fax/acct.log <-- local send faxes log /var/log/mgetty.log.ttyS0 --> for incoming calls and faxes -when u send a file to that printer a popup message should appear "fax spooled" -all the faxes are waiting at /var/spool/fax/outgoing/F00***/f2.g3 -if there is a file JOB.done than this fax was already sent. JOB alone --> waiting to b sent, JOB.suspended --> there where problems with the number. -user must have priviliges to send the fax is the smb user! Finaly: make a cron job to start --> faxrunq whenever u like to start sending the faxes -errors: * ask u for netpbm*.rpm to install- than install all netpbm*.rpms first * printer "prints" but respond doesnt jump and at /var/spool/fax/outgoing there is no log: no respond from the printfax.pl - check if user is allowed to send faxes or u r not loged in to the network! * error prining to the printer restart --> chmod -R 777 /var/spool/fax * dialing from operator u want to use "," but respond get it as 2 numbers..!! * when u send a fax through respond at the user put your mailbox name only, user like:avi kafzan bill terminate in error the there is no user kafzan * dial failed NO CARRIER : there is no line connected to modem recieve: -fill mgetty.config, sendfax.config as above -at end of /etc/inittab add: S0:345:respawn:/sbin/mgetty -n 4 ttyS0 vt100 (S2 for S2 beggining and end!) the "-n 4" difine that the fax answers after 4 rings, without it at all-1 ring -init q to refresh (no need to reboot) -at the end of /etc/aliases put: faxadmin: help --> for recieving notifications on every fax u get, otherwize there will b at /root/dead.letter (login.config: /AUTH PPP.....auth -chap +pap login modem debug crtscts) -ask your customer after haw many rings the fax must answer info: -when /etc/nologin.ttyS0 exists the fax do not answer -when /var/lock/LCK..ttyS0 exsits a fax is being transfered at the moment! -logs: /var/log/mgetty.log.ttyS0 (for external us robotics modem u must take off the "#" before each row at the "port ttyS2" section at /etc/mgetty+sendfax/mgetty.config (6 rows) (even though u have the modem on ttyS0!) errors: -if the there is no answer check that there is not /var/lock/LCK..0 or that the red leds on the modem r blinking while u r calling! -if u put the /etc/nologin.ttyS0 dialed and removed it there might b a problem that u cannot recieve faxes! reboot the windows machine! -at /var/log/messages if u c: A_FAIL --> c if u configured mgetty.config right -the g3topbm script run while getting fax ruins the current page and the pages that follows it. the first pages (before running the script) got ok.the sender gets an error and disconnects:the script checks if there is no proccess running -installing hyla right after mgetty destroys sendfax -v command. the error will b:sendfax [options] [files]..its too complicated -reinstalation of all megttys rpms doesnt fix the problem. VIEW FAXES: at X: viewfax -v raw_file_name u need to change the file from g3 format to a raw pbm format seen by irfanView and delete the old files (mkdir /var/spool/fax/faxes) do it with a script: for i in /var/spool/fax/incoming/* do g3topbm $i > $i.pbm done mv /var/spool/fax/incoming*.pbm /var/spool/fax/faxes rm -rf /var/spool/fax/incoming/* (there is a more complicated script at the scripts section!) from windows use a free program name irfanview 3.51 to c the faxes



Post a Comment
your name:
Write code here  

     © crakomili software, all rights reserved © 2007