📄 ch64.htm
字号:
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<font face="Arial,Helvetica" size="-1" color="#006666">
<b>Linux</b></font><p>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<H1></H1>
<UL>
<LI><A HREF="#Heading1">- 64 -</A>
<UL>
<LI><A HREF="#Heading2">HylaFAX</A>
<UL>
<LI><A HREF="#Heading3">Installing HylaFAX</A>
<LI><A HREF="#Heading4">NOTE</A>
<UL>
<LI><A HREF="#Heading5">Where to Get HylaFAX</A>
</UL>
<LI><A HREF="#Heading6">NOTE</A>
<UL>
<LI><A HREF="#Heading7">Types of Modems</A>
<LI><A HREF="#Heading8">Installation Steps</A>
</UL>
<LI><A HREF="#Heading9">Listing 64.1. The output from the configure command.</A>
<LI><A HREF="#Heading10">TIP</A>
<LI><A HREF="#Heading11">TIP</A>
<LI><A HREF="#Heading12">Listing 64.2. Sample configuration for HylaFAX.</A>
<LI><A HREF="#Heading13">Troubleshooting</A>
<LI><A HREF="#Heading14">Setting Up a Send and Receive Daemon</A>
<LI><A HREF="#Heading15">CAUTION</A>
<LI><A HREF="#Heading16">Sending a Fax</A>
<LI><A HREF="#Heading17">NOTE</A>
<LI><A HREF="#Heading18">TIP</A>
<LI><A HREF="#Heading19">Receiving Faxes</A>
<LI><A HREF="#Heading20">Special Features</A>
<UL>
<LI><A HREF="#Heading21">Cover Pages</A>
<LI><A HREF="#Heading22">Polling</A>
<LI><A HREF="#Heading23">Receiving Data Calls</A>
<LI><A HREF="#Heading24">Checking Status</A>
</UL>
<LI><A HREF="#Heading25">Listing 64.3. Output of the faxstat command.</A>
<UL>
<LI><A HREF="#Heading26">E-Mail Setup</A>
<LI><A HREF="#Heading27">Files Used</A>
<LI><A HREF="#Heading28">Multiple Modems</A>
</UL>
<LI><A HREF="#Heading29">Another Fax Solution</A>
<LI><A HREF="#Heading30">NOTE</A>
<LI><A HREF="#Heading31">TIP</A>
<UL>
<LI><A HREF="#Heading32">The Sticky Copyright Issue</A>
</UL>
<LI><A HREF="#Heading33">WARNING</A>
<UL>
<LI><A HREF="#Heading34">Troubleshooting the Modems</A>
</UL>
<LI><A HREF="#Heading35">Summary</A>
</UL>
</UL>
</UL>
<P>
<HR SIZE="4">
<H2 ALIGN="CENTER"><A NAME="Heading1<FONT COLOR="#000077">- 64 -</FONT></H2>
<H2 ALIGN="CENTER"><A NAME="Heading2<FONT COLOR="#000077">HylaFAX</FONT></H2>
<P>IN THIS CHAPTER</P>
<UL>
<LI>Installing HylaFAX
<P>
<LI>Troubleshooting
<P>
<LI>Setting Up a Send and Receive Daemon
<P>
<LI>Sending a Fax
<P>
<LI>Receiving Faxes
<P>
<LI>Special Features
<P>
<LI>Another Fax Solution
</UL>
<P><BR>
This chapter deals with a fax application for Linux: HylaFAX. Though there are other
fax facilities for UNIX systems, such as <TT>netfax</TT>, in this chapter, I concentrate
on HylaFAX because it may be the most comprehensive. You also have access to the
C++ source code to make any necessary modifications to the application to adapt it
to your PC.</P>
<P>HylaFAX was invented by Sam Leffler. You can send thanks and an "Atta boy"
to him via e-mail at <TT>sam@engr.sgi.com</TT>. HylaFAX is indeed a great piece of
work.</P>
<P>HylaFAX is a system for sending and receiving fax documents. Some of the notable
features of HylaFAX include the following:
<UL>
<LI>Queued fax transmission by date and time.
<P>
<LI>Asynchronous fax reception via a daemon.
<P>
<LI>Most programs are part of a tool kit. You can update portions of the application
by updating the executable file.
</UL>
<H3 ALIGN="CENTER"><A NAME="Heading3<FONT COLOR="#000077">Installing HylaFAX</FONT></H3>
<DL>
<DT><FONT COLOR="#000077"></FONT></DT>
</DL>
<DL>
<DD>
<HR>
<A NAME="Heading4<FONT COLOR="#000077"><B>NOTE: </B></FONT>The Display PostScript
interpreter, Ghostscript, is supplied in binary form for Silicon Graphics machines.
There is information on obtaining and setting up Ghostscript (see Chapter 25, "Ghostscript").
<HR>
</DL>
<H4 ALIGN="CENTER"><A NAME="Heading5<FONT COLOR="#000077">Where to Get HylaFAX</FONT></H4>
<P>HylaFAX can be obtained via public FTP on the Internet. It is also available on
a number of public domain and shareware-style CD-ROMs. The master distribution site
for HylaFAX is the host <TT>ftp.sgi.com</TT>.
<DL>
<DT></DT>
</DL>
<DL>
<DD>
<HR>
<A NAME="Heading6<FONT COLOR="#000077"><B>NOTE:</B> </FONT>HylaFAX is essentially
the same program as FlexFAX, but with a new name and many more features.
<HR>
</DL>
<P>All the HylaFAX documentation is online on the World Wide Web (WWW). This documentation
describes how to unpack and install the source distribution images. The HylaFAX home
page at <TT>sgi.com</TT> is the place to go for all the HylaFAX documentation.</P>
<P>The HylaFAX source code is available for public FTP on <TT>ftp.sgi.com</TT> as
<TT>/sgi/fax/source HylaFAX-v4.0pl1-tar.gz</TT>.</P>
<P>You can get more information about HylaFAX from the WWW by accessing the Web page
<TT>http://www.vix.com/hylaFAX</TT>. Check out the FAQs at this site to get the most
up-to-date information.
<H4 ALIGN="CENTER"><A NAME="Heading7<FONT COLOR="#000077">Types of Modems</FONT></H4>
<P>HylaFAX comes with detailed information on specific modems and configuration instructions
in a file called <TT>MODEMS</TT>. Read this file carefully to see whether your modem
is listed. If it is, you should have no problems with HylaFAX. If you cannot find
your exact modem, choose the one that best fits the description you have. Chances
are that a close enough setting will work fine.</P>
<P>Most of the modems on the list are either Class 1 or 2, and both types are supported
by HylaFAX. Do not confuse the fax Group I, II, or III standards with Class 1 or
2. The groups discuss how faxes are encoded, and classes explain how you "talk"
to a modem.
<H4 ALIGN="CENTER"><A NAME="Heading8<FONT COLOR="#000077">Installation Steps</FONT></H4>
<P>First, <TT>unzip</TT> and <TT>untar</TT> the source files from the distribution
in a local directory. After you get the source file for HylaFAX, the first installation
steps are to configure your system and then do a <TT>make install</TT> command.</P>
<P>The source code is in a compressed <TT>tar</TT> file. To extract the software,
use the following commands:<FONT COLOR="#0066FF"></FONT>
<PRE><FONT COLOR="#0066FF">$ mkdir fax
$ cd fax
$ uncompress $(DOWNLOAD_DIR)/v2.3.src.tar.Z
$ tar -xf $(DOWNLOAD_DIR)/v2.3.src.tar
</FONT></PRE>
<P>The <TT>DOWNLOAD_DIR</TT> is the directory you downloaded the <TT>tar</TT> file
to. Because the software is written mostly in C++, you need <TT>gnu</TT> C++. The
versions guaranteed to work with <TT>gcc</TT> 2.5.8 and <TT>libg++</TT> 2.5.3 are
the current recommended versions of the GNU tools.</P>
<P>To build and install executables from the sources, look first for any <TT>port/target/README</TT>
file that has target-specific information. In this case, look at <TT>port/linux/README</TT>.</P>
<P>Then, enter the following commands:<FONT COLOR="#0066FF"></FONT>
<PRE><FONT COLOR="#0066FF">$ su
# configure
# make clean
# make install
</FONT></PRE>
<P>I have deliberately not shown output from the <TT>configure</TT> and <TT>make</TT>
commands, because I discuss them in detail in this section. You have to run the <TT>make</TT>
commands as root because they access the <TT>/usr/local</TT> tree, and you will need
write permissions when you write files to that tree.</P>
<P>The output from a sample <TT>configure</TT> command is shown in Listing 64.1.
<H3 ALIGN="CENTER"><A NAME="Heading9<FONT COLOR="#000077">Listing 64.1. The
output from the configure command.</FONT><FONT COLOR="#0066FF"></FONT></H3>
<PRE><FONT COLOR="#0066FF">$ configure
...(Extraneous text deleted here)...
this means that only a crummy built-in font will be available for imaging text.
Warning, /usr/local/bin/gs does not seem to be an executable program;
you'll need to correct this before starting up the fax server.
HylaFAX configuration parameters are:
Directory for applications: /usr/local/bin
Directory for lib data files: /usr/local/lib/fax
Directory for lib executables: /usr/local/lib/fax
Directory for servers: /usr/local/etc
Directory for manual pages: /usr/local/man
Directory for documentation: /usr/local/doc/HylaFAX
Directory for spooling: /usr/spool/fax
Type of uucp lock files: ascii
Directory for uucp lock files: /usr/spool/uucp
Mode for uucp lock files: 0444
Type of PostScript imager: gs
PostScript imager program: /usr/local/bin/gs
Default page size: North American Letter
Default vertical res (lpi): 98
Directory for font metrics: /usr/local/lib/afm
Location of sendmail program: /usr/lib/sendmail
Are these ok [yes]?
</FONT></PRE>
<P>It's important to maintain the locations of all the listed files. Changing these
locations is not a good idea because they are the default values for other applications.
For example, the <TT>sendfax</TT> command did not work with any other location of
the <TT>afm</TT> tree other than at <TT>/usr/local/lib/afm</TT>. Changing the location
via <TT>configure</TT> did not help at all.</P>
<P>The <TT>make</TT> install process takes a while because the <TT>make</TT> install
script has to traverse several directories and build source files in each sub-directory.
The files are placed in different parts of your system based on the output of the
<TT>configure</TT> command.</P>
<P>You may have to copy the files <TT>mkfifo</TT>, <TT>chown</TT>, and <TT>chgrp</TT>
from the <TT>/bin</TT> directory to the <TT>/usr/local/bin</TT> directory. The <TT>make</TT>
files exclusively use these files to set the file permissions. You have to edit the
location of the <TT>echo</TT> command in the <TT>make</TT> files to reflect the correct
location for your <TT>echo</TT> command. If you see <TT>/usr/local/bin/echo not found</TT>
error messages, either copy <TT>echo</TT> to <TT>/usr/local/bin</TT>, or edit the
<TT>make</TT> files to point to the correct location. To get rid of the message <TT>Warning,
/usr/local/bin/gs does not ...</TT> in the previous listing, you create a link to
<TT>gs</TT> from <TT>/usr/local/bin/gs</TT>.</P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -