# uname -a
Linux test0427.localdomain 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
○epelリポジトリを導入しておく。
# yum install epel-release
○hylafax+パッケージについて情報を表示させた。
# yum info hylafax+
Name : hylafax+
Arch : x86_64
Version : 5.5.9
Release : 1.el6
Size : 752 k
Repo : epel
Summary : An enterprise-strength fax server
URL : http://hylafax.sourceforge.net
License : libtiff and BSD with advertising
Description : HylaFAX(tm) is a enterprise-strength fax server supporting
: Class 1 and 2 fax modems on UNIX systems. It provides spooling
: services and numerous supporting fax management tools.
: The fax clients may reside on machines different from the server
: and client implementations exist for a number of platforms including
: windows.
○インストールを行った。
# yum install hylafax+
Installed:
hylafax+.x86_64 0:5.5.9-1.el6
Dependency Installed:
avahi-libs.x86_64 0:0.6.25-17.el6 cairo.x86_64 0:1.8.8-6.el6_6 cups-libs.x86_64 1:1.4.2-77.el6
fontconfig.x86_64 0:2.8.0-5.el6 freetype.x86_64 0:2.3.11-17.el6 ghostscript.x86_64 0:8.70-23.el6
ghostscript-fonts.noarch 0:5.50-23.2.el6 gnutls.x86_64 0:2.12.23-21.el6 hylafax+-client.x86_64 0:5.5.9-1.el6
jasper-libs.x86_64 0:1.900.1-16.el6_6.3 lcms-libs.x86_64 0:1.19-1.el6 libICE.x86_64 0:1.0.6-1.el6
libSM.x86_64 0:1.2.1-2.el6 libX11.x86_64 0:1.6.4-3.el6 libX11-common.noarch 0:1.6.4-3.el6
libXau.x86_64 0:1.0.6-4.el6 libXext.x86_64 0:1.3.3-1.el6 libXfont.x86_64 0:1.5.1-2.el6
libXrender.x86_64 0:0.9.10-1.el6 libXt.x86_64 0:1.1.4-6.1.el6 libfontenc.x86_64 0:1.1.2-3.el6
libpng.x86_64 2:1.2.49-2.el6_7 libxcb.x86_64 0:1.12-4.el6 lockdev.x86_64 0:1.0.1-18.el6
mailx.x86_64 0:12.4-8.el6_6 mgetty.x86_64 0:1.1.36-9.el6 perl.x86_64 4:5.10.1-144.el6
perl-Module-Pluggable.x86_64 1:3.90-144.el6 perl-Pod-Escapes.x86_64 1:1.04-144.el6 perl-Pod-Simple.x86_64 1:3.13-144.el6
perl-libs.x86_64 4:5.10.1-144.el6 perl-version.x86_64 3:0.77-144.el6 pixman.x86_64 0:0.32.8-1.el6
sharutils.x86_64 0:4.7-6.1.el6 urw-fonts.noarch 0:2.4-11.el6 uucp.x86_64 0:1.07-25.el6
xorg-x11-font-utils.x86_64 1:7.2-11.el6
Complete!
○とりあえず、サービスを起動コマンドを実行した。
次のように、セットアップ作業を行う必要があるとわかる。
# service hylafax+ start
HylaFAX FATAL ERROR: /var/spool/hylafax/etc/setup.cache is missing!
The file /var/spool/hylafax/etc/setup.cache is not present.
This probably means the machine has not been setup using the
faxsetup(8C) command. Read the documentation on setting up
HylaFAX before you startup a server system.
○基本的な設定アップ作業を行った。
一部を除いて、yesなどのデフォルトの値のまま、ただエンターを押していった。
下記では変更の必要な箇所には、マーカーを引っ張った。
# /usr/sbin/faxsetup
Setup program for HylaFAX (tm) 5.5.9.
Created for x86_64-unknown-linux-gnu on Thu Feb 23 01:13:24 UTC 2017.
Found encoder: /usr/bin/base64
Found encoder: /usr/bin/uuencode
Looks like /usr/bin/base64 supports base64 encoding.
Checking system for proper client configuration.
Checking system for proper server configuration.
Warning: /sbin/vgetty does not exist or is not an executable program!
The file:
/sbin/vgetty
does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /sbin/vgetty that points to your program
then you must reconfigure and rebuild HylaFAX from source code.
Warning: /bin/egetty does not exist or is not an executable program!
The file:
/bin/egetty
does not exist or this file is not an executable program. The
HylaFAX software optionally uses this program and the fact that
it does not exist on the system is not a fatal error. If the
program resides in a different location and you do not want to
install a symbolic link for /bin/egetty that points to your program
then you must reconfigure and rebuild HylaFAX from source code.
Warning: No font file found for "ArialMT" but the font map includes it.
Warning: No font file found for "Arial-BoldMT" but the font map includes it.
Warning: No font file found for "Arial-BoldItalicMT" but the font map includes it.
Warning: No font file found for "Arial-ItalicMT" but the font map includes it.
Warning: No font file found for "TimesNewRomanPSMT" but the font map includes it.
Warning: No font file found for "TimesNewRomanPS-BoldMT" but the font map includes it.
Warning: No font file found for "TimesNewRomanPS-BoldItalicMT" but the font map includes it.
Warning: No font file found for "TimesNewRomanPS-ItalicMT" but the font map includes it.
Created our own Fontmap file in /var/spool/hylafax/etc.
Setting Ghostscript font path in /etc/hylafax/hyla.conf.
Warning: /usr/share/ghostscript/8.70/Resource/Font does not exist or is not a directory!
The directory /usr/share/ghostscript/8.70/Resource/Font does not exist or this file is not a directory.
This is the directory where the HylaFAX client applications expect to
locate font metric information to use in formatting ASCII text for
submission as facsimile. Without this information HylaFAX may generate
illegible facsimile from ASCII text.
Warning: /usr/share/ghostscript/fonts does not exist or is not a directory!
The directory /usr/share/ghostscript/fonts does not exist or this file is not a directory.
This is the directory where the HylaFAX client applications expect to
locate font metric information to use in formatting ASCII text for
submission as facsimile. Without this information HylaFAX may generate
illegible facsimile from ASCII text.
Make /var/spool/hylafax/bin/ps2fax a link to /var/spool/hylafax/bin/ps2fax.gs.
Make /var/spool/hylafax/bin/pdf2fax a link to /var/spool/hylafax/bin/pdf2fax.gs.
There does not appear to be an entry for the FaxMaster either in
the YP/NIS database or in the /etc/aliases file. The
FaxMaster is the primary point of contact for HylaFAX problems.
The HylaFAX client-server protocol server identifies this alias as
the place to register complaints and HylaFAX directs automatic mail
messages to this user when problems are identified on a server
machine or when the routine server maintainence scripts are run
(e.g. faxcron).
Should an entry be added for the FaxMaster to /etc/aliases [yes]? yes
Users to receive fax-related mail [root]?
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 paging protocol: no
Are these ok [yes]? yes
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]? 81
Area code [000]? xx ←市外局番から0を除いたものを入力
Long distance dialing prefix [1]? 0
International dialing prefix [011]? 010
Dial string rules file (relative to /var/spool/hylafax) ["etc/dialrules"]?
Tracing during normal server operation [1]?
Default tracing during send and receive sessions [0xFFF]?
Continuation cover page (relative to /var/spool/hylafax) []?
Timeout when converting PostScript documents (secs) [180]?
Maximum number of concurrent jobs to a destination [1]?
Define a group of modems []?
Time of day restrictions for outbound jobs ["Any"]?
Timeout before purging a stale UUCP lock file (secs) [30]?
Max number of pages to permit in an outbound job [0xffffffff]?
Syslog facility name for ServerTracing messages [daemon]?
The non-default scheduler parameters are:
CountryCode: 81
AreaCode: xx
LongDistancePrefix: 0
InternationalPrefix: 010
Are these ok [yes]? yes
Creating new configuration file /var/spool/hylafax/etc/config...
Restarting HylaFAX server processes.
Should I restart the HylaFAX server processes [yes]? yes
/usr/sbin/faxq
/usr/sbin/hfaxd -i hylafax
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]? no
Done verifying system setup.
○サービスを起動した。
# service hylafax+ start
Starting HylaFAX queue manager (faxq): [ OK ]
Starting HylaFAX server (hfaxd): [ OK ]
○システム起動時にサービスがスタートするようにした。
# chkconfig hylafax+ on
以上で完了した。