I. Introduction The configuration described below uses HylaFAX 4.0p2.rjc11, which runs on mandrake7.1. In service HylaFAX consists of three daemon: Faxq: main service programs Hfaxd: Manage Network Connections Faxgetty: Manage sessions between Modem The program running on the client is as follows (these programs can also be run on the server ): Sendfax: send a fax Faxstat: check the fax queue Faxrm: deletes a job from the queue. The related configuration files are in the/var/spool/fax/etc/folder. Ii. Installation I strongly recommend that you install the following software packages (both of them are included in Mandrake 7.1 ): Ghostscript ftp://ftp.cs.wisc.edu/pub/ghost/aladdin LibTIFF ftp://rufus.w3.org/linux/redhat You can also obtain these resources from the official website http://www.hylafax.org/links.html. Install HylaFAX, Install the following RPM packages: Rpm-IVH hylafax-common-4.0pl2.rjc11-3mdk Rpm-IVH hylafax-client-4.0pl2.rjc11-3mdk Rpm-IVH hylafax-server-4.0pl2.rjc11-3mdk 3. Configure HylaFAX Run the following command to configure the server: Faxsetup-server (the operation must be performed as root) In addition to the following items, select OK for all other query options, that is, select the default value: · Country Code [1]? Enter 33 for France · Area code []? Enter 1 for Paris · Long distance dialing prefix [1]? Enter 0 · International dialing prefix [011]? Enter 00 · Dial string rules file [ETC/dialrules]? Enter ETC/dialrules. Europe · Serial port that modem is connected to []? Enter ttys0 (for COM1) or Ttys1 (for com2) By default, HylaFAX does not automatically call the daemon faxgetty at startup. Process. 1. Edit the/etc/inittab file and insert the following content at the end of the file: MO: 2345: respawn:/usr/sbin/faxgetty-D ttys0 Then run kill-hup l to restart faxgetty. Or modify the RC. Local file: 2. Add the following lines to the/etc/rc. d/rc. Local file: /Usr/sbin/faxgetty-D/dev/ttys0 Run faxgetty-D/dev/ttys0. Note: You can use the faxaddmodem command to add multiple modems. After these operations, the file/var/spool/fax/etc/config. ttys0 is created for faxgetty. (Serial Port 1), including the configuration of the/dev/ttys0 modem. File/usr/share/fax/hfaxd. conf I have not made any changes to the hfaxd daemon configuration. Possible problems: Use the probemodem command to detect the modem. In addition, there are some typical examples in/var/spool/fax/config. Configuration . My modem is 3Com's US robotics 56 K, So I copy the usr-2.0 file In/var/spool/fax/etc, change the name to config. ttys0 and make the following changes: # Configuration for using the class 2.0 command INTERFACE # With a USR V.34 courier or sporster modem. # # Config: class2.0: usrobotics *-* # Countrycode: 33 Areacode: 1 # Faxnumber: Your number EX (for France): 0134123412 Longdistanceprefix: 0 Internationalprefix: 00 Diadstringrules: ETC/dialrules. Europe (important. Europe !) Servertracing: 1 Sessiontracing: 11 Recvfilemode: 0600 Logfilemode: 0600 Devicemode: 0600 Ringsbeforeanswer: 1 Speakervolume: Off Gettyargs: "-H % l dx _ % s" # Localidentifier: "Your company" (uncomment if wanted on the fax) # Taglinefont: ETC/lutrs18.pcf (idem) # Taglineformat: "de % L | % C | PAGE % P sur % t" (idem) # Maxrecvpages: 25 Modemtype: class2.0 # Use class 2.0 interface Modemrate: 57600 #38400 DCE-DTE Communication Rate Modemflowcontrol: rtscts # Xon/xoff flow control assumed Modemdialcmd: atdt0 % s # I added 0 because I go through a PABX !! # Modemnoflowcmd: AT & H0 & I0 & R1 # setup modem for no Flow Control Modemhardflowcmd: AT & H1 & I0 & R2 # setup modem for hardware Flow Control # Modemsoftflowcmd: AT & H2 & I2 & R1 # setup modem for software flow control # Modemsetupdtrcmd: ats13 = 1 & D2 # setup so DTR drop resets Modem # Modemsetupdcdcmd: AT & C1 # setup so DCD reflects carrier (or not) Modemresultcodescmd: atq0x4 # enable extended result codes # Modemsetupaacmd: At + FAA = 1 # Modemsetvolumecmd: "atm0 atm1 atm1 atm1" Class2bugcmd: At + FBu = 0 Class2cqquerycmd :! (0), (0) # override modem response Class2nrcmd: At + FNR = 1, 1, 0 Next, add the following lines to/var/spool/fax/etc/Host: Localhost 192.168.0.1 Allow all machines in the domain 192.168.1.0 to use faxes. 4. Start HylaFAX To automatically run HylaFAX at startup, run the drakxservices command in Mandrake, Run the setup command in red hat and then manually run the following command: /Etc/rc. d/init. d/HylaFAX start If no faxgetty exists in the Process List (PS-E), try the following command: /Usr/sbin/faxgetty-D/dev/ttys0 5. How to Use HylaFAX Send Fax: Sendfax-n-d Number file1 file2 Check Results: Faxstat-s (displays the faxes sent in the queue) Faxstat-D (display sent faxes) Faxstat-R (display received fax) Remove a fax from the queue: Faxrm number_of_job Clear the buffer pool: Faxqclean Show statistics: Faxcron 6. Use HylaFAX in the Network Server Configuration: On http://www.hylafax.org/links.html, you can find many links related to hylafax, On Http://www.boerde.de /~ Horstf downloads printfx and repond . You need to download three files: Printfax. pl (Perl script) Respond.zip(respond.exe pressure package) Smb_conf.add (the module to be added to/etc/smb. conf) Copy printfax. pl To the/usr/bin/directory and make the following changes: ### Format of CommandLine # $ Response linefmt = mgetty; $ Export linefmt = HylaFAX; ### The faxspoolprogram ### For mgetty + sendfax: # $ Faxspool =/usr/bin/faxspool; ### For HylaFAX: $ Faxspool =/usr/bin/sendfax; ### Additional faxspool ARGs (e.g. header, coverpage) ### Empty: @ Faxspool_args = QW (-N ); ### For mgetty + sendfax with a special header: # @ Faxspool_args = QW (-H/usr/local/etc/mgetty + sendfax/faxheader. SMB ); ### For HylaFAX with send email when job is done or requeued and use ### A4 sized paper: # @ Faxspool_args = QW (-d-r-s A4 ); Note: Check the version number of printfax. pl before modification. You may have modified the version you downloaded. Add the smb_conf.add module to/etc/smb. conf: [Fax] Comment = Fax printer Public = Yes Postscript = Yes Print command = (/usr/bin/printfax. pl % I % S % u % m; RM % s )& Printable = Yes Writable = No Path =/var/spool/samba Check the print command, especially the print command in Windows2000. Restart Samba. /Etc/rc. d/init. d/SMB restart Client Configuration: The following is a typical client configuration in Windows 95/98/NT/2000. Install respond.zip, including Config.exeand respond.exe: 1. Copy these two files to the widows directory, for example, C: Windows 2. Create a respond.exe link under START-> Programs-> start( how to do fast in Win2000) For more information, see Win2000 ). 3rd, run respond.exe or restart the computer. Then you must create a network printer: 1. Click Start> printers> Add. 2. Select a network printer 3. Click "Browse" and select the fax printer (Samba printer) on the network) 4. Choose HP-> HP LaserJet 4/4 m postscript driver 5. Do not print the test page 6. After creating the printer, Go to Start-> printers and click the properties of the fax printer. 7. In the Properties dialog box, click detail and Spooler. 8. Select "start printing after the last page" Install the client here. Next, open WordPad and enter some text to print on the fax printer! The dialog box appears on the screen (if respond.exe is run), ask the recipient's fax number, and enter If you select "OK", the fax will be sent to the HylaFAX fax server. Enter faxsat-S on the server to check whether the system is working normally. Sent fax. Typical configurations of Linux clients: Use a utility on the HylaFAX website. 7. send an email with fax You can use fax to send emails to StarOffice on the server. In addition, databases can be placed on any network And can be accessed by StarOffice (through ODBC, JDBC. Use the spadmin tool to configure Output: faxspool (phone) (TMP ). Set @ # num_tel_fax @ in the fax file and replace num_tel_fax with the database field name. The StarOffice help file contains all relevant explanations. The disadvantage of this method is that you must install StarOffice on the fax server. (Using respond in the Network Do not contact StarOffice directly when sending a fax, because you must manually enter the recipient's fax number !) Me Another solution is being studied. |