投げ銭

★当サイトへの投げ銭(PayPal)★

LINK


(無償、寄付歓迎) logo
世界中で使われるISO標準オフィスソフト(MSオフィス互換)

★LibreOfficeの導入事例★
詳細について

人気の投稿(1ヶ月間)

Ad

Ad

投げ銭

★当サイトへの投げ銭(PayPal)★

2019年3月17日日曜日

【Linux CentOS 7】HylaFAXをパッケージでお手軽に導入する【HylaFAX 6.0.7】

以下は、CentOS 7 をベースにした特権dockerコンテナにHylaFAXをインストールしたものである。

しかし、通常のCentOS 7にも、同じやり方でインストールできると思われる。

使用したDockerイメージは次のページで作成したものである。

【Linux CentOS 7】(ベースコンテナの作成)SSH接続可能なDockerコンテナでの日本用ロケールの有効化と検証(man,dateの日本語表示)【Docker-ce 18.06.1.ce】

sshで接続して、以下のようにインストール作業を行った。



○依存パッケージのインストール

# yum install libtiff
Package libtiff-4.0.3-27.el7_3.x86_64 already installed and latest version

Nothing to do

# yum install ghostscript
Updated:
  ghostscript.x86_64 0:9.07-31.el7_6.9

Dependency Updated:
  ghostscript-devel.x86_64 0:9.07-31.el7_6.9

Complete!

# yum install ghostscript-fonts
Package ghostscript-fonts-5.50-32.el7.noarch already installed and latest version

Nothing to do

システムに、mgetty-sendfax パッケージが導入されている場合は削除しておく。



○hylafaxパッケージのダウンロードとインストール

ダウンロードするものは二種類ある。

https://www.hylafax.org/binary-packages/redhat-packages/ からそれぞれダウンロードした。

# wget ftp://ftp.hylafax.org/binary/linux/redhat/6.0.7/hylafax-client-6.0.7-1.el7.x86_64.rpm

# wget ftp://ftp.hylafax.org/binary/linux/redhat/6.0.7/hylafax-server-6.0.7-1.el7.x86_64.rpm


# ls -l
total 1172
-rw-r--r-- 1 root root 378024 Mar  9 18:02 hylafax-client-6.0.7-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 815636 Mar  9 17:49 hylafax-server-6.0.7-1.el7.x86_64.rpm


最初にクライアントパッケージからインストールした。

# yum install hylafax-client-6.0.7-1.el7.x86_64.rpm
Installed:
  hylafax-client.x86_64 0:6.0.7-1.el7

Complete!

次にサーバーパッケージをインストールした。
(依存パッケージがダウンロードされ導入された。)

# yum install hylafax-server-6.0.7-1.el7.x86_64.rpm
Is this ok [y/d/N]: y

Downloading packages:
sharutils-4.13.3-8.el7.x86_64.rpm
                                                                | 252 kB
00:00:00   
Running transaction check
Running transaction test
Transaction test succeeded

Running transaction
  Installing : sharutils-4.13.3-8.el7.x86_64

1/2
install-info: No such file or directory for /usr/share/info/sharutils.info
  Installing : hylafax-server-6.0.7-1.el7.x86_64

2/2
#########################################################
#            HylaFAX installation complete!             #
#                                                       #
#      You should now run /usr/sbin/faxsetup to         #
#       create or update HylaFAX configuration          #
#      before you can begin using the software.         #
#                                                       #
#########################################################

  Verifying  : sharutils-4.13.3-8.el7.x86_64

1/2
  Verifying  : hylafax-server-6.0.7-1.el7.x86_64

2/2
Installed:
  hylafax-server.x86_64 0:6.0.7-1.el7

Dependency Installed:
  sharutils.x86_64 0:4.13.3-8.el7

Complete!

以上でhylafaxがインストールされた。



○systemctlでstatusを確認

# systemctl status hylafax
● hylafax.service - LSB: Starts and stops the HylaFAX
   Loaded: loaded (/etc/rc.d/init.d/hylafax; bad; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:systemd-sysv-generator(8)
起動していないことがわかるようになった。



○hylafaxの基本セットアップ

予め、不可欠のパッケージを導入した。

# yum install libtiff-tools
Installed:
  libtiff-tools.x86_64 0:4.0.3-27.el7_3

Complete!

セットアップを行った。
ほとんどデフォルトの回答のままエンターを押すだけにした。
一部、値を設定する必要がある。

# faxsetup
Setup program for HylaFAX (tm) 6.0.7.
Created for x86_64-unknown-linux-gnu on Tue Sep 18 18:56:42 UTC 2018.
Found converter: /bin/tiff2pdf
Found uuencode encoder: /bin/uuencode
Found base64 encoder: /bin/base64
Found Quoted-Printable encoder: qp-encode
Looks like /bin/base64 supports base64 encoding.
Found mimencode for compatibilty: mimencode
Checking system for proper client configuration.
Checking system for proper server configuration.

Warning: /sbin/mgetty does not exist or is not an executable program!
The file:
    /sbin/mgetty
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/mgetty that points to your program
then you must reconfigure and rebuild HylaFAX from source code.

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.
Searching for a default font.

Generating Fontmap /etc/hylafax/Fontmap.HylaFAX.

Found Courier to use as default font.

Setting font configuration in /etc/hylafax/hyla.conf.

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]?
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]?
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 ←日本は81である。
Area code []? 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 [0xffffffff]?
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]?
Creating new configuration file /var/spool/hylafax/etc/config...

Restarting HylaFAX server processes.
Should I restart the HylaFAX server processes [yes]?

/etc/rc.d/init.d/hylafax start
Reloading systemd:                                         [  OK  ]
Starting hylafax (via systemctl):                          [  OK  ]

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 ←IAXmodemを利用したいのでnoとした。
Done verifying system setup.
セットアップによって、設定ファイルが構成されて、hylafaxがstartされた。



○systemctlでstatusを確認

# systemctl status hylafax
hylafax.service - LSB: Starts and stops the HylaFAX
   Loaded: loaded (/etc/rc.d/init.d/hylafax; bad; vendor preset: disabled)
   Active: active (running) since Sat 2019-03-09 19:13:54 UTC; 3min 3s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2275 ExecStart=/etc/rc.d/init.d/hylafax start (code=exited, status=0/SUCCESS)
   CGroup: /docker/28a9c6704dba75a8fdd17713c8745eec7d07d4b73608c071a327be787a35e66d/system.slice/hylafax.service
           ├─2282 /usr/sbin/faxq
           └─2287 /usr/sbin/hfaxd -i hylafax
Mar 09 19:13:54 28a9c6704dba systemd[1]: Starting LSB: Starts and stops the HylaFAX...
Mar 09 19:13:54 28a9c6704dba hylafax[2275]: Starting HylaFAX queue manager (faxq): [  OK  ]
Mar 09 19:13:54 28a9c6704dba hylafax[2275]: Starting HylaFAX server (hfaxd): [  OK  ]
Mar 09 19:13:54 28a9c6704dba FaxQueuer[2282]: HylaFAX (tm) Version 6.0.7
Mar 09 19:13:54 28a9c6704dba systemd[1]: Started LSB: Starts and stops the HylaFAX.
Mar 09 19:13:54 28a9c6704dba FaxQueuer[2282]: Copyright (c) 1990-1996 Sam Leffler
Mar 09 19:13:54 28a9c6704dba FaxQueuer[2282]: Copyright (c) 1991-1996 Silicon Graphics, Inc.
Mar 09 19:13:54 28a9c6704dba HylaFAX[2287]: Listening to 0.0.0.0:4559
Mar 09 19:13:54 28a9c6704dba HylaFAX[2287]: HylaFAX INET Protocol Server: restarted.


★IAXmodemのセットアップ方法は、次のページに記述しています。

https://akira-arets.blogspot.com/2019/03/linux-docker-iaxmodem1.3.0-centos7.html

★IAXmodemとHylaFAXの連携方法は、次のページを参照ください。

https://akira-arets.blogspot.com/2011/09/linux-centos56-iaxmodemhylafax.html
https://akira-arets.blogspot.com/2011/09/hylafaxfaxwinprint-hylafax.html



<参考>
・HylaFAX / Binary Package Install
< https://www.hylafax.org/hylafax-handbook/binary-package-install/ > 2019年3月17日

・HylaFAX / HylaFAX packaged in binary RPM and source SRPM format
< https://www.hylafax.org/binary-packages/redhat-packages/ > 2019年3月17日

・hylafax-client(1) - Linux man page
< https://linux.die.net/man/1/hylafax-client > 2019年3月17日

・What is the difference between `yum install` and `yum localinstall`?
< https://ask.fedoraproject.org/en/question/37721/what-is-the-difference-between-yum-install-and-yum-localinstall/ > 2019年3月17日

投げ銭

★当サイトへの投げ銭(PayPal)★

Ad

Ad