close


今天要開始安裝HylaFax了

先來確認 HylaFax 的相關套件有沒有存在系統內(其實不檢查也沒關係,因為安裝過程中也會檢查)
如果有少的,也記得要安裝進去,這裡因為系統內都有了,所以以系統內的來安裝

# rpm -qa | grep libtiff
libtiff-3.7.1-6
libtiff-devel-3.7.1-6
# rpm -qa | grep zlib
zlib-1.2.2.2-3
zlib-devel-1.2.2.2-3
# rpm -qa | grep awk
gawk-3.1.4-5
# rpm -qa | grep sendmail
sendmail-8.13.4-2
# rpm -qa | grep ghostscript
ghostscript-fonts-5.50-13
ghostscript-7.07-40

Lib Tiff http://www.remotesensing.org/libtiff/
Sendmail http://www.sendmail.org/
GhostScript http://www.cs.wisc.edu/~ghost/
metamail 
uuencode http://rpmfind.net/linux/rpm2html/search.php?query=uuencode&submit=Search+...&system=&arch=

之後先到 HylaFax 網站下載 Source Code ftp://ftp.hylafax.org/source/hylafax-4.2.5.tar.gz

下載完成後,將該檔案放在 /tmp 底下,並執行解壓縮動作

# tar zxvf hylafax-4.2.5.tar.gz

開始做Compile 的動作

# cd /hylafax-4.2.5

# ./configure

Configuring HylaFAX (tm) (aka FlexFAX) 4.2.5.

If configure does the wrong thing, check the file config.log for information that may 
help you understand what went wrong.

Reading site-wide parameters from ./config.site.
Reading cached parameters from config.cache.

Using /usr/bin/gcc for a C compiler (set CC to override).
Using " -fpic" for C compiler options.
Looks like /usr/bin/gcc has an ANSI C preprocessor.
... but __ANSI_CPP__ is not automatically defined, will compensate.
Looks like /usr/bin/gcc supports the -M option for generating make dependencies.
Using /usr/bin/g++ for a C++ compiler (set CXX to override).
Using " -g -fpic" for C++ compiler options.
Looks like /usr/bin/g++ has an ANSI C preprocessor.
... but __ANSI_CPP__ is not automatically defined, will compensate.
Using /usr/bin/make to configure the software.
Using "include file" syntax for Makefiles.
Using /bin/bash to process command scripts.
Checking for PAM (Pluggable Authentication Module) support
... found. Enabling PAM support
Checking for JBIG library support
... not found. Disabling JBIG support
Looks like -lcrypt is needed for crypt.
Looks like -lutil is needed for wtmp file logging.

Using previously created port.h.

Checking system libraries for functionality to emulate.
Done checking system libraries.

Checking ZLIB support. ← 這裡會確認有沒有之前裝的套件在系統裡
Using ZLIB include files from
Using pre-built ZLIB library -lz
Done checking ZLIB support.

Checking TIFF support. ← 這裡會確認有沒有之前裝的套件在系統裡
Using TIFF binary files from /usr/bin
Done checking TIFF support.

Looks like your system supports LINUX-style DSOs.

Selecting programs used during installation and operation.
Looks like /bin/gawk should be used in command scripts. ←這裡會確認有沒有之前裝的套件在系統裡
Looks like /usr/sbin/sendmail should be used to deliver mail. ←這裡會確認有沒有之前裝的套件在系統裡
Looks like /usr/bin/mkfifo creates FIFO special files.
Looks like /bin/ln supports the -s option to create a symbolic link.
Looks like SysV init scripts go in /etc/rc.d/init.d.
Done selecting programs.

Selecting default HylaFAX configuration parameters.

Using uid uucp and gid uucp for controlling access to fax stuff.
Using uid bin and gid bin for installing programs.
Using LSB2MSB bit order for your i686 cpu.
Looks like you need SysV getty support.
Using /sbin/agetty as the program to exec for a data call.
Using /bin/vgetty as the program to exec for a voice call.
Using /bin/egetty as the program to exec for an extern call.
Looks like you use ascii-style UUCP lock files.
Looks like UUCP lock files go in /var/lock.
Looks like the gs imager package should be used.
Looks like /usr/bin/gs is the PostScript RIP to use.
Setting the Fontmap path to /root/.fonts:/usr/share/ghostscript/7.07/lib:/usr/share/ghostscript/fonts:/usr/shar
e/fonts/default/ghostscript:/usr/share/fonts/default/Type1:/usr/share/fonts/default/a
mspsfnt/pfb:/usr/share/fonts/default/cmpsfont/pfb:/etc/ghostscript
Looks like font metric information goes in /root/.fonts:/usr/share/ghostscript/7.07/lib:/usr/share/ghostscript/fonts:/usr/shar
e/fonts/default/ghostscript:/usr/share/fonts/default/Type1:/usr/share/fonts/default/
amspsfnt/pfb:/usr/share/fonts/default/cmpsfont/pfb:/etc/ghostscript.
Looks like manual pages go in /usr/local/man.
Looks like manual pages should be installed with bsd-source-cat.
Press Return to Continue


HylaFAX configuration parameters (part 1 of 2) are:

[ 1] Directory for applications:        /usr/local/bin
[ 2] Directory for lib data files:      /usr/local/lib/fax
[ 3] Directory for lib executables:     /usr/local/sbin
[ 4] Directory for system apps:         /usr/local/sbin
[ 5] Directory for manual pages:        /usr/local/man
[ 6] Directory for HTML documentation:  /var/httpd/htdocs/hylafax
[ 7] Directory for spooling:            /var/spool/hylafax
[ 8] Directory for uucp lock files:     /var/lock
[ 9] Uucp lock file scheme:             ascii
[10] PostScript imager package:         gs
[11] PostScript imager program:         /usr/bin/gs
[12] Manual page installation scheme:   bsd-source-cat
[13] Default page size:                 North American Letter
[14] Default vertical res (lpi):        98

Are these ok [yes]?  ← 這裡可以按 Enter 或是打 yes , 也可以打每一行前面的數字以便更改項目設定

按 yes 或 Enter 繼續

HylaFAX configuration parameters (part 2 of 2) are:

[15] Location of getty program:         /sbin/agetty
[16] Location of voice getty program:   /bin/vgetty
[17] Location of sendmail program:      /usr/sbin/sendmail
[18] Location of TIFF tools:            /usr/bin
[19] Location of SysV init scripts:     /etc/rc.d/init.d
[20] Location of SysV start scripts:    ../rc2.d ../rc3.d ../rc4.d ../rc5.d
[21] Location of SysV stop scripts:     ../rc0.d ../rc1.d ../rc6.d
[22] Name of SysV start script:         S97hylafax
[23] Name of SysV stop script:          K05hylafax
[24] Init script starts faxq:           yes
[25] Init script starts hfaxd           yes
[26] Start old protocol:                no
[27] Start paging protocol:             no
Are these ok [yes]? ← 這裡可以按 Enter 或是打 yes , 也可以打每一行前面的數字以便更改項目設定

按 yes 或 Enter 繼續

接下來就是 make 及 make install

# make
# make install

執行 faxsetup 及 faxaddmodem

# /usr/local/sbin/faxsetup

Should an entry be added for the FaxMaster to /etc/aliases [yes]?
        新增一個 FaxMAster 的 Aliases ,在 /etc/aliases 加入別名
Users to receive fax-related mail [root]?
        root將收到的傳真相關的mail(如果統計報表等)
/etc/aliases: 77 aliases, longest 10 bytes, 778 bytes total
Rebuilt /etc/aliases database.
Update /var/spool/hylafax/status/any.info.

        HylaFAX configuration parameters are:

        [1] Init script starts faxq:            yes
        [2] Init script starts hfaxd            yes
        [3] Start old protocol:                 no
        [4] Start paging protocol:              no
Are these ok [yes]? ← 這裡可以按 Enter 或是打 yes , 也可以打每一行前面的數字以便更改項目設定

按 yes 或 Enter 繼續

Modem support functions written to /var/spool/hylafax/etc/setup.modem.
Configuration parameters written to /var/spool/hylafax/etc/setup.cache.

No scheduler config file exists, creating one from scratch.
Country code [1]? 886 
        電話國碼886(台灣)輸入886
Area code []? 2
        區碼(台北2)(就是02去掉0) 輸入2
Long distance dialing prefix [1]? 0
        長途碼 0 ,輸入0
International dialing prefix [011]? 002
        國際電話前置碼002,輸入002(也可以輸入009)
Dial string rules file (relative to /var/spool/hylafax) ["etc/dialrules"]?
        撥號規則檔設為/var/spool/hylafax/etc/dialrule
Tracing during normal server operation [1]?
        啟動除錯選項
Default tracing during send and receive sessions [0xffffffff]?
        收送傳真執行中的除錯
Continuation cover page (relative to /var/spool/hylafax) []?
        設定封面的頁的所在目錄
Timeout when converting PostScript documents (secs) [180]?
        設定轉換為ps文件的逾時時間180秒
Maximum number of concurrent jobs to a destination [1]?
        最大同時傳送一個目的的工作數
Define a group of modems []?
       
Time of day restrictions for outbound jobs ["Any"]?
        限制外送傳真的時間,Any:任何時間
Pathname of destination controls file (relative to /var/spool/hylafax) []?
        所有安裝目的控制檔的所在目錄 相對於/var/spool/hylafax
Timeout before purging a stale UUCP lock file (secs) [30]?
        清除UUCP鎖定檔案的等待時間
Max number of pages to permit in an outbound job [0xffffffff]?
        外送傳真的最多頁數
Syslog facility name for ServerTracing messages [daemon]?
        儲存紀錄的方式,Daemon:記錄在/var/log/messages

The non-default scheduler parameters are:

CountryCode:            886
AreaCode:               2
LongDistancePrefix:     0
InternationalPrefix:    002

Are these ok [yes]? ← 這裡是要你確定之前設定的沒有問題

Creating new configuration file /var/spool/hylafax/etc/config...

Restarting HylaFAX server processes.
Should I restart the HylaFAX server processes [yes]?
        詢問是不是要重新啟動HylaFax 的Daemon

/etc/rc.d/init.d/hylafax start
HylaFAX: faxq hfaxd (without old protocol & without SNPP support).

You do not appear to have any modems configured for use.  Modems are
configured for use with HylaFAX with the faxaddmodem(8C) command.
Do you want to run faxaddmodem to configure a modem [yes]?
        你尚未指定任何數據機.現在是否要設定使用faxaddmodem命令(這個命令可以新增數據機)
Serial port that modem is connected to []? ttyS0
        數據機的連接埠一般為ttyS0
        ttyS0:Com 1
        ttyS1:Com 2

Ok, time to setup a configuration file for the modem.  The manual
page config(5F) may be useful during this process.  Also be aware
that at any time you can safely interrupt this procedure.

Reading scheduler config file /var/spool/hylafax/etc/config.

No existing configuration, let's do this from scratch.
        因為之前沒有設定,這裡會跳出來叫你設定

Country code [1]? 886
        電話國碼886(台灣)輸入886
Area code [415]? 2
        區碼(台北2)(就是02去掉0) 輸入2
Phone number of fax modem [+1.999.555.1212]?
        你數據機所接的電話號碼,+1是國碼(台灣+886)逗點後面就是區碼加電話號碼
Local identification string (for TSI/CIG) ["NothingSetup"]?
        傳真機的識別ID,一般使用電話號碼或是公司的英文縮寫不可太長 如 sony,當你傳真時顯
        示在對方傳真機LCD的字
Long distance dialing prefix [1]?
        長途碼 0 ,輸入0
International dialing prefix [011]?
        國際電話前置碼002,輸入002(也可以輸入009)
Dial string rules file (relative to /var/spool/hylafax) [etc/dialrules]?
        撥號規則檔設為/var/spool/hylafax/etc/dialrule
Tracing during normal server operation [1]?
        啟動除錯選項
Tracing during send and receive sessions [11]?
        收送傳真執行中的除錯
Protection mode for received facsimile [0600]?
        收到傳真的檔案權限,如果要以samba開放目錄,讓使用者讀取請最好改為0644
Protection mode for session logs [0600]?
        記錄檔的檔案權限
Protection mode for ttyS0 [0600]?
        連接埠的存取權限
Rings to wait before answering [1]?
        設定響鈴幾聲後接聽
Modem speaker volume [off]?
        設定數據機音量
Command line arguments to getty program ["-h %l dx_%s"]?
        接收的命令列
Pathname of TSI access control list file (relative to /var/spool/hylafax) [""]?
        傳真機的識別ID ACL 檔案存放的路徑 /var/spool/hylafax
Pathname of Caller-ID access control list file (relative to /var/spool/hylafax) [""]?
        Caller ID ACL 檔案存放的路徑 /var/spool/hylafax
Tag line font file (relative to /var/spool/hylafax) [etc/lutRS18.pcf]?
        所有的傳真最上面有一行包含了(送件人,收件人,日期,公司等)資料我們稱為tag line所使用的字型
Tag line format string ["From %%l|%c|Page %%P of %%T"]?
        設定前面提到的 Tag Line 格式
Time before purging a stale UUCP lock file (secs) [30]?
        清除UUCP鎖定檔案的等待時間
Hold UUCP lockfile during inbound data calls [Yes]?
        當有資料進來時,保留UUCP鎖定檔案
Hold UUCP lockfile during inbound voice calls [Yes]?
        當有語音進來時,保留UUCP鎖定檔案
Percent good lines to accept during copy quality checking [95]?
Max consecutive bad lines to accept during copy quality checking [5]?
Max number of pages to accept in a received facsimile [25]?
        最大接收頁數
Syslog facility name for ServerTracing messages [daemon]?
        儲存紀錄的方式,Daemon:記錄在/var/log/messages
Set UID to 0 to manipulate CLOCAL [""]?
Use available priority job scheduling mechanism [""]?

Your facsimile phone number (+1.999.555.1212) does not agree with your
country code (886) or area code (2).  The number
should be a fully qualified international dialing number of the form:

    +886 2

Spaces, hyphens, and periods can be included for legibility.  For example,

    +886.2.555.1212

is a possible phone number (using your country and area codes).

The non-default server configuration parameters are:

CountryCode:            886
AreaCode:               2
FAXNumber:              +1.999.555.1212
LongDistancePrefix:     1
InternationalPrefix:    011
DialStringRules:        etc/dialrules
SessionTracing:         11
RingsBeforeAnswer:      1
SpeakerVolume:          off
GettyArgs:              "-h %l dx_%s"
LocalIdentifier:        "NothingSetup"
TagLineFont:            etc/lutRS18.pcf
TagLineFormat:          "From %%l|%c|Page %%P of %%T"
MaxRecvPages:           25

Are these ok [yes]?
        確認正不正確

        開始偵測數據機
Now we are going to probe the tty port to figure out the type
of modem that is attached.  This takes a few seconds, so be patient.
Note that if you do not have the modem cabled to the port, or the
modem is turned off, this may hang (just go and cable up the modem
or turn it on, or whatever).

Probing for best speed to talk to modem: 38400 OK.

About fax classes:

The difference between fax classes has to do with how HylaFAX interacts
with the modem and the fax protocol features that are used when sending
or receiving faxes.  One class isn't inherently better than another;
however, one probably will suit a user's needs better than others.

Class 1 relies on HylaFAX to perform the bulk of the fax protocol.
Class 2 relies on the modem to perform the bulk of the fax protocol.
Class 2.0 is similar to Class 2 but may include more features.
Class 1.0 is similar to Class 1 but may add V.34-fax capability.
Class 2.1 is similar to Class 2.0 but adds V.34-fax capability.

HylaFAX generally will have more features when using Class 1/1.0 than
when using most modems' Class 2 or Class 2.0 implementations.  Generally
any problems encountered in Class 1/1.0 can be resolved by modifications
to HylaFAX, but usually any problems encountered in Class 2/2.0/2.1 will
require the modem manufacturer to resolve it.

If you're unsure and your modem supports it, use Class 1.

Hmm, this looks like a Class 1 modem.
Product code (ATI0) is "56000".
Other information (ATI3) is "ACER56HKC1_07".
DTE-DCE flow control scheme [default]?
        是否要使用預設的 Flow Control Scheme
Modem manufacturer is "Rockwell/Conexant". ← 顯示數據機的製造廠商
Modem model is "AC/K56". ← 顯示數據機的型號

Using prototype configuration file rc288dpi-1...

The modem configuration parameters are:
列出數據機的各項設定參數

ModemDialCmd:           ATDT%s
ModemFlowControl:       rtscts
ModemHardFlowCmd:       AT&K3
ModemMfrQueryCmd:       !Rockwell
ModemModelQueryCmd:     !RC288DPi
ModemNoFlowCmd:         AT&K0
ModemRate:              19200
ModemRevQueryCmd:       ATI3
ModemSetupDCDCmd:       AT&C1
ModemSetupDTRCmd:       AT&D2
ModemSoftFlowCmd:       AT&K4

Are these ok [yes]?
        確認設定是不是正確

Creating new configuration file /var/spool/hylafax/etc/config.ttyS0...
Creating fifo /var/spool/hylafax/FIFO.ttyS0 for faxgetty... done.
Done setting up the modem configuration.

Checking /var/spool/hylafax/etc/config for consistency...
...some parameters are different.

The non-default scheduler parameters are:

CountryCode:            886
AreaCode:               2
LongDistancePrefix:     1
InternationalPrefix:    011
DialStringRules:        etc/dialrules

Are these ok [yes]?
        確認設定是不是正確

Creating new configuration file /var/spool/hylafax/etc/config...
...saving current file as /var/spool/hylafax/etc/config.sav.

Don't forget to run faxmodem(8C) (if you have a send-only environment)
or configure init to run faxgetty on ttyS0.
Do you want to run faxaddmodem to configure another modem [yes]? ← no 跳出
問你要不要再設定其他的數據機

到這裡系統大概已經完成了,後續還有一些小調整~~

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 ccy0411 的頭像
    ccy0411

    大熊貓小部落

    ccy0411 發表在 痞客邦 留言(5) 人氣()