You are on page 1of 169

Setp4 HylaFAX HylaFAX

HylaFAX

HylaFAX
http://www.hylafax.org/

HylaFAX HylaFAX C/S


FAX Modem HylaFAX
HylaFAX Modem

1 169

CentOS libtiff

# rpm -qa | grep libtiff


libtiff-3.8.2-7.el5
libtiff-devel-3.8.2-7.el5

2 169

3 169

CentOS ghostscript

# rpm -qa | grep ghostscript


ghostscript-fonts-5.50-13.1.1
ghostscript-8.15.2-9.1.el5

4 169

CentOS sharutils

# rpm -q sharutils
package sharutils is not installed

5 169

6 169

Download sharutils Package

Package http://www.icewalkers.com/rpm/sharutils/fedora-core-6/download/sharutils-3230.html

sharutils-4.6.1-2.i386.rpm

4.6.1-2

KB
201KB

7 169

8 169

CentOS sharutils

# rpm -ivh sharutils-4.6.1-2.i386.rpm


warning: sharutils-4.6.1-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing...
1:sharutils

########################################### [100%]
########################################### [100%]

9 169

CentOS metamail

# rpm -q metamail
package metamail is not installed

10 169

11 169

Download metamail Package

Package http://rpm2html.osmirror.nl/centos/2.1/updates/i386/metamail-2.7-30.i386.html

metamail-2.7-30.i386.rpm

2.7-30

KB
126KB

12 169

13 169

CentOS metamail

# rpm -ivh metamail-2.7-30.i386.rpm


Preparing...
1:metamail

########################################### [100%]
########################################### [100%]

14 169

CentOS fax4CUPS

# rpm -q fax4CUPS
package fax4CUPS is not installed

15 169

16 169

Download fax4CUPS Package

Package http://linux.softpedia.com/progDownload/fax4CUPS-Download-264.html

fax4CUPS-1.28-1.noarch.rpm

1.28-1

KB
20KB

17 169

18 169

fax4CUPS

# rpm -ivh fax4CUPS-1.28-1.noarch.rpm


Preparing...
1:fax4CUPS

########################################### [100%]
########################################### [100%]

cups[]
cups[]

19 169

CentOS HylaFAX

# rpm -q hylafax
package hylafax is not installed

20 169

21 169

Download HylaFAX Package

Package ftp://ftp.hylafax.org/binary/linux/redhat/RPMS/i386/

hylafax-4.4.4-1rhel5.i386.rpm

4.4.3-1

KB
1229KB

22 169

23 169

hylaFAX

# rpm -ivh hylafax-4.4.4-1rhel5.i386.rpm


Preparing...
1:hylafax

########################################### [100%]
########################################### [100%]

#########################################################
#

HylaFAX installation complete!

#
#

#
You should now run /usr/sbin/faxsetup to

create or update HylaFAX configuration

before you can begin using the software.

#
#
#

#########################################################

24 169

faxsetup HylaFAX

# /usr/sbin/faxsetup

25 169

26 169

27 169

HylaFAX
Should an entry be added for the FaxMaster to /etc/aliases [yes]? yes
/etc/aliases , yes enter

28 169

29 169

HylaFAX
Users to receive fax related mail [root]? fandy
fandy mail
fandy enter

30 169

HylaFAX
Are these ok [yes]? yes
yes enter

31 169

32 169

HylaFAX
Country code [1]? 0086
0086() 0086 enter

33 169

HylaFAX
Area code []?020
( 020) 020 enter

34 169

35 169

HylaFAX
Long distance dialing prefix [1]? 0
0 0 enter

36 169

HylaFAX
International dialing prefix [011]? 020
020, 020 enter

37 169

38 169

HylaFAX
Dial string rules file (relative to /var/spool/hylafax)["etc/dialrules"]?
/var/spool/hylafax/etc/dialrule enter

39 169

HylaFAX
Tracing during normal server operation [1]? 1
1 enter

40 169

41 169

HylaFAX
Default tracing during send and receive session [0xfffffffff]?
enter

42 169

HylaFAX
Continuation cover page (relative to /var/spool/hylafax) []?
enter

43 169

44 169

HylaFAX
Timeout when converting PostScript documents (secs) [180]? 180
ps 180 180 enter

45 169

HylaFAX
Maximum number of concurrent jobs to a destination[1]? 1
1 enter

46 169

47 169

HylaFAX
Define a group of modems []
enter

48 169

HylaFAX
Time of day restrictions for outbound jobs ["Any"]?
Any enter

49 169

50 169

HylaFAX
Pathname of destination controls file (relative to /var/spool/hylafax) []?
/var/spool/hylafax enter

51 169

HylaFAX
Timeout before purging a stale UUCP lock file (secs) [30] 20
UUCP 30 enter

52 169

53 169

HylaFAX
Max number of pages to permit in an outbound job [0xffffffff]
enter

54 169

HylaFAX
Syslog facility name for ServerTracing messages [daemon]?
/var/log/messages enter

55 169

56 169

HylaFAX
Are these ok [yes]? yes
yes enter

57 169

HylaFAX
Restarting HylaFAX process.
Should I restart the HylaFAX process [yes]? yes
hylafax yes enter

58 169

59 169

HylaFAX
You do not appear to have any modem configured for use. Modems are
ocnfigured for use with HylaFax with the faxaddmodem[8C] command.
Do you want to run faxaddmomdem to configure a modme [yes]? yes
faxaddmodem yes enter

60 169

HylaFAX
Serial port that modem is connected to []? ttyS0
ttyS0 ttyS0 enter

61 169

62 169

HylaFAX
country code[1] 0086
0086() 0086 enter

63 169

HylaFAX
Area code [415]? 020
020 020 enter

64 169

65 169

HylaFAX
Phone number of fax modem [+1,9999.5555.1212]? +008602084680605
+++008602084680605 enter

66 169

HylaFAX
Local Identifications string (for TS/CIG) ["NothingEtup"]? Nseasy.Net
ID LCD Nseasy.Net enter

67 169

68 169

HylaFAX
Long distance dialing prefix [1]? 0
0 0 enter

69 169

HylaFAX
International dialing prefix [011]? 020
020 020 enter

70 169

71 169

HylaFAX
Dial string rules file (relative to /var/spool/hylafax) [etc/dialrules]?
/var/spool/hylafax/etc/dialrules enter

72 169

HylaFAX
Tracing during normal server operation [1]? 1
enter

73 169

74 169

HylaFAX
Tracing during send and receive sessions [11]? 11
enter

75 169

HylaFAX
Protection mode for received facsimile [0600]? 0777
0777 enter

76 169

77 169

HylaFAX
Protection mode for session logs [0600]? 0777
0777 0777 enter

78 169

HylaFAX
Protection mode for ttyS0 [0600]? 0777
0777 0777 enter

79 169

80 169

HylaFAX
Rings to wait before answering [1]? 2
2 enter

81 169

HylaFAX
Modem speaker volume [off]? on
Modem onOffLowHigh on enter

82 169

83 169

HylaFAX
Command line arguments to getty program ["-h %l dx_%s"]?
enter

84 169

HylaFAX
Pathname of TSI access control list file (relative to /var/spool/hylafax)[""]?
Modem ID ACL /var/spool/hylafax enter

85 169

86 169

HylaFAX
Pathname of Caller-ID access control list file (relative to /var/spool/hylafax)[""]?
Caller-ID ACL /var/spool/hylafax enter

87 169

HylaFAX
Tag line font file (relative to /var/spool/hylafax) [etc/lutRS18.pcf]?
,,, enter

88 169

89 169

HylaFAX
Tag line form string ["From %%1|%c|Page %%P of %%T"]?
Tag line enter

90 169

HylaFAX
Time before purging a stale UUCP lock file (secs) [30]? 20
UUCP 20 enter

91 169

92 169

HylaFAX
Hold UUCP lockfile during inbound data calls [Yes]? yes
UUCP yes enter

93 169

HylaFAX
Hold UUCP lockfile during inbound voice calls [Yes]? yes
UUCP yes enter

94 169

95 169

HylaFAX
Percent good lines to accept during copy quality checking [95]? 95
95 enter

96 169

HylaFAX
Max consecutive bad lines to accept during copy quality checking [5]? 5
5 enter

97 169

98 169

HylaFAX
Max number of pages to accept in a received facsimile [25]? 20
20 enter

99 169

HylaFAX
Syslog faxility name for ServerTracing messages [daemon]?
Daemon/var/log/messages enter

100 169

101 169

HylaFAX
Set UID to 0 to manipulate CLOCAL [""]?
enter

102 169

HylaFAX
Use available proiority job scheduling mechanism [""]?
proiorty enter

103 169

104 169

HylaFAX
Are these ok [yes]? yes
yes enter

105 169

HylaFAX
Probing for best speed to talk to modem38400
Modem

106 169

107 169

HylaFAX
How should it be configured [1]? 1
1 enter

108 169

HylaFAX
DTE-DCE flow control scheme [default]?
enter

109 169

110 169

HylaFAX
Are these ok [yes]? yes
yes enter

111 169

HylaFAX
Are these ok [yes]? yes
yes enter

112 169

113 169

HylaFAX
Do you want to run faxaddmodem to configure another modem [yes]? no
, no enter

114 169

HylaFAX
Should I run faxmodem for each configured modem [yes]? yes
yes enter

115 169

116 169

HylaFAX
Done verifying system setup.
HylaFAX

117 169

118 169

hylafax :

/var/spool/hylafax/var/spool/faxhylafax
,rpm -ql hylafax/var/spool/hylafax:

bin

## ,

config

##

etc

##

pollqdocqdoneqsendqrecvq
log
info
status

## queue

##
## (call id),
##

bin
faxrcvd
notifynotifyawk

##
##

pdf2fax

## pdftiff class F

ps2fax

## pstiff class F

tiff2fax

## tifftiff class F

etc
config.*

## config.config.ttyS0

hosts.hfaxd client

##

lastrun

##

119 169

setup.modem

##

lutRS18.pcf

## tag line

xferfaxlog

##

status
any.info

## hylafax

ttyS0

## ,

120 169

faxadduser HylaFAX /var/spool/hylafax/etc/hosts.hfaxd


fandy123456

# faxadduser -p 123456 fandy

121 169

122 169


# faxadduser yer

123 169

faxdeluser HylaFAX /var/spool/hylafax/etc/hosts.hfaxd


fandyyer

# faxdeluser fandy

#fandy

# faxdeluser yer

#yer

124 169

125 169

HylaFAX

126 169

hylafax / faxgetty
man faxgetty /etc/inittab ttyS0
faxgetty ttyS0

/etc/inittab

7:2345:respawn:/usr/sbin/faxgetty

ttyS0

127 169

128 169

Tagline

Portable Compiled Font, locale,

/var/spool/hylafax/etc/config.ttyS0

TagLineFormat: "From %%l|%c|Page %%P of %%T"

TagLineFormat: "From %%l|%F %T %Z|Page %%P of %%T"

129 169

/var/spool/hylafax/etc/hylafax.ttySx

TagLineFont : etc/lutRS18.pcf

#Tagline

# TagLineFont : etc/lutRS18.pcf

130 169

131 169

09

ModemDialCmd:

ATDT%s

# T for tone dialing

ModemDialCmd:

ATDT9W%s ModemDialCmd:

ATDT0W%s

132 169

/var/spool/hylafax/etc/ FaxDispatch .tif or.pdf

FaxMAster : root Alias FaxMaster fandy

SENDTO=FaxMaster

SENDTO=fandy@nseasy.net

133 169

134 169

pdftif

FILETYPE=pdf;

# PDF pdf

FILETYPE=tif;

# TIFF tif pdf

135 169

HylaFAX CentOS

# reboot

136 169

137 169

CentOS ps -aux faxgetty

# ps -aux

uucp

4819 0.0 0.4

6992 1224 ? Ss

21:28

0:00 /usr/sbin/faxq

uucp

4822 0.0 0.3

4348

21:28

0:00 /usr/sbin/hfaxd -i hylafax

860 ? Ss

138 169

139 169


uucp

4987 0.0 0.1

4800 1824 ?

Ss

21:28

0:00 /usr/sbin/faxgetty ttyS0

140 169

faxstat

# faxstat
HylaFAX scheduler on fax.nseasy.net: Running
Modem ttyS0 (+008602084680605): Running and idle

141 169

HylaFAX

142 169

HylaFAX 602 HylaFAX


603

Fax Server sendfax,


ps pdf tiff tif

# sendfax -n -d 603 files.tif

# 603n

request id is 1 group id 1 for host localhost 1 file

143 169

144 169

faxstat -s

# faxstat -s
HylaFAX scheduler on fax.nseasy.netRunning
Modem ttyS0 +008602084680605Sending job 1

JID

Pri

Owner

127

root

Number
603

Pages

Dials

0:1

0:12

TTS

Status

145 169

faxrm : faxrm Job ID

# faxrm 2
Job 2 removed.

146 169

147 169

faxstat /var/spool/hylafax/status/ttyS0

# faxstat
HylaFAX scheduler on fax.nseasy.netRunning
Modem ttyS0 +008602084680605Sending job 1

148 169

faxstat -r /var/spool/hylafax/recvq

# faxstat -r
HylaFAX scheduler on fax.nseasy.netRunning
Modem ttyS0 +008602084680605Receiving from Fax

Protect

Page Owner

-rwxrwx

14

Sender/TSI
Fax

Recvd@
13:44

Filename
fax000000002.tif

149 169

150 169

faxstat -d /var/spool/hylafax/doneq

# faxstat -d
HylaFAX scheduler on fax.nseasy.netRunning
Modem ttyS0 +008602084680605Running and idle

JID

Pri

Owner

Number

Pages

Dials

127

root

603

1:1

1:12

127

root

603

0:0

0:12

TTS

Status

Job aborted

151 169

faxqclean

# faxqclean

152 169

153 169

faxcron

154 169

# faxcron
Facsimile transmitted since :

Sender

Pages

root@fax.nseasy.net (root)

Time Pg/min Errs


1:26

0.7

TypRate

TypData

14400

2-D MR

-----------------------------------------------------------------------------------------------------------Total

1:26

0.7

Facsimile transmitted since last week:

Sender

Pages

root@fax.nseasy.net (root)

Time Pg/min Errs TypRate


1:26

0.7

14400

TypData
2-D MR

----------------------------------------------------------------------------------------------------------Total

1:26

0.7

Facsimile received since :

Sender

CIDName

CIDNumber

Fax

Pages
2

ime Pg/min
6:38

0.3

Errs TypRate TypData


1

14400

2-D MR

---------------------------------------------------------------------------------------------------------Total

6:38

0.3

Facsimile received since last week:

155 169

Sender

CIDName

CIDNumber

Fax

Pages Time Pg/min Errs TypRate


2

6:38

0.3

14400

TypData
2-D MR

------------------------------------------------------------------------------------------------------------Total

6:38

0.3

Report failed calls and associated session logs:

Nothing to purge in info directory.

Truncate merged session logs older than 30 days:

Nothing to purge in receive queue.

Nothing to purge in the tmp directory.

156 169

157 169

Linux gThumb

158 169

159 169

fax000000001.tifHylaFAX /var/spool/hylafax/recvq
fax000000001.tif

160 169

HylaFAX

161 169

HylaFAX

HylaFAX

# service hylafax start


Starting Hylafax queue managerfaxq:
Starting HylaFAXhfaxd:
Restarting Hylafax modem managerfaxgetty:

[]
[]
[]

162 169

163 169

HylaFAX

# service hylafax stop


Shutting Hylafax queue managerfaxq:
Shutting HylaFAXhfaxd:

[]
[]

164 169

HylaFAX

# service hylafax restart


Shutting Hylafax queue managerfaxq:
Shutting HylaFAXhfaxd:
Starting Hylafax queue managerfaxq:
Starting HylaFAXhfaxd:
Restarting Hylafax modem managerfaxgetty:

[]
[]
[]
[]
[]

165 169

HylaFAX

166 169

HylaFAX

# ntsysv

167 169


* hylafax

168 169

HylaFAX

169 169

You might also like