Saturday, 27 September 2008

FAX WITH HYLAFAX

Download hylafax (in this moment the current version is hylafax-4.1.7.tar.gz), such as root
user unzip it and install it:
tar zxvf hylafax-4.1.7.tar.gz
/configure && make && make install
All files will be copied here:
/var/spool/hylafax/
Turn-on the modem.
Once installed like root user start from xterm:
faxsetup and once completed, launched:
faxaddmodem
Will be required some informations, you will can change them later going to modify files that
you find in /var/spool/hylafax/etc, overall files config and config.ttySx
My file config is composed like that:
LogFacility: daemon
CountryCode: 039
AreaCode: 0583
LongDistancePrefix: 0
InternationalPrefix: 00
DialStringRules: etc/dialrules
ServerTracing: 1
My file config.ttyS1 is composed at least at start like that:
CountryCode: 039
AreaCode: 0583
FaxNumber: 12345678 # I've changed my number of telephone.
LongDistancePrefix: 0
InternationalPrefix: 00
DialStringRules: etc/dialrules
ServerTracing: 1
SessionTracing: 11
RecvFileMode: 0600
LogFileMode: 0600
DeviceMode: 0600
RingsBeforeAnswer: 3
SpeakerVolume: on
GettyArgs: "-h %l dx_%s"
LocalIdentifier: "NothingSetup"
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "From %%l|%c|Page %%P of %%T"
MaxRecvPages: 25
Perfect, now you have only to write at the end of file /etc/inittab the following string:
mo:35:respawn:/usr/local/sbin/faxgetty /dev/ttyS1 # I've my modem on com2 and hence ttyS1
If you want able all clients of your lan and send fax modify the file:
/var/spool/hylafax/etc/hosts.hfaxd
writing how is following:
localhost
192.168.1 #I have the computer with ip 192.168.1.1 and hence the lan of belonging will be
how I've written.
Now is possible send fax writing:
hylafax start && faxmodem ttyS1
You can insert this string at the end of file /etc/rc.d/rc.local so, it will be sent at restart of computer without doing write the row every time.
To send a fax write:
sendfax -n -d telephonenumber file
If you want use a graphic client on linux, download gnu.hylafax (works on java), or
pyla1.0.7.tgz
(works on python) or for computers with Windows Operating System download Whfc or
winflex.
About pyla, you need to unzip it (tar zxvf pyla1.0.7.tgz) and to launch it, write:
python /yourhome/pyla/pyla.py

2 comments:

Bocah Lanang said...

hank mas david, sudah mampir ke kafemis.
BTW, Hylafax nya raunning di distro apa ni?

David Windarto said...

Open Susu om....