?? rhl59.htm
字號:
<HTML>
<HEAD>
<TITLE>Red Hat Linux Unleashed rhl59.htm </TITLE>
<LINK REL="ToC" HREF="index-1.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/index.htm">
<LINK REL="Index" HREF="htindex.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/htindex.htm">
<LINK REL="Next" HREF="rhl60.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/rhl60.htm">
<LINK REL="Previous" HREF="rhl58.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/rhl58.htm"></HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080">
<A NAME="I0"></A>
<H2>Red Hat Linux Unleashed rhl59.htm</H2>
<P ALIGN=LEFT>
<A HREF="rhl58.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/rhl58.htm" TARGET="_self"><IMG SRC="purprev.gif" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/purprev.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Previous Page"></A>
<A HREF="index-1.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/index.htm" TARGET="_self"><IMG SRC="purtoc.gif" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/purtoc.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="TOC"></A>
<A HREF="rhl60.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/rhl60.htm" TARGET="_self"><IMG SRC="purnext.gif" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/purnext.gif" WIDTH = 32 HEIGHT = 32 BORDER = 0 ALT="Next Page"></A>
<HR ALIGN=CENTER>
<P>
<UL>
<UL>
<UL>
<LI>
<A HREF="#E68E454" >Installing HylaFAX</A>
<UL>
<LI>
<A HREF="#E69E589" >Where To Get HylaFAX</A>
<LI>
<A HREF="#E69E590" >Types of Modems</A>
<LI>
<A HREF="#E69E591" >Installation Steps</A></UL>
<LI>
<A HREF="#E68E455" >Troubleshooting</A>
<LI>
<A HREF="#E68E456" >Setting Up a Send and Receive Daemon</A>
<LI>
<A HREF="#E68E457" >Sending a Fax</A>
<LI>
<A HREF="#E68E458" >Receiving Faxes</A>
<LI>
<A HREF="#E68E459" >Special Features</A>
<UL>
<LI>
<A HREF="#E69E592" >Cover Pages</A>
<LI>
<A HREF="#E69E593" >Polling</A>
<LI>
<A HREF="#E69E594" >Receiving Data Calls</A>
<LI>
<A HREF="#E69E595" >Checking Status</A>
<LI>
<A HREF="#E69E596" >E-Mail Setup</A>
<LI>
<A HREF="#E69E597" >Files Used</A>
<LI>
<A HREF="#E69E598" >Multiple Modems</A></UL>
<LI>
<A HREF="#E68E460" >Another Fax Solution</A>
<UL>
<LI>
<A HREF="#E69E599" >The Sticky Copyright Issue</A>
<LI>
<A HREF="#E69E600" >Troubleshooting the Modems</A></UL>
<LI>
<A HREF="#E68E461" >Summary</A></UL></UL></UL>
<HR ALIGN=CENTER>
<A NAME="E66E59"></A>
<H1 ALIGN=CENTER>
<CENTER>
<FONT SIZE=6 COLOR="#FF0000"><B>59</B></FONT></CENTER></H1>
<BR>
<A NAME="E67E59"></A>
<H2 ALIGN=CENTER>
<CENTER>
<FONT SIZE=6 COLOR="#FF0000"><B>Using HylaFAX, </B><B>sendfax</B><B>, and </B><B>mgetty</B></FONT></CENTER></H2>
<BR>
<P>This chapter deals with a fax application for Linux: HylaFAX. Though there are other fax facilities for UNIX systems, such as netfax, 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.
<BR>
<P>HylaFAX was invented by Sam Leffler. You can send thanks and an "Atta boy" to him via e-mail at sam@sgi.com. HylaFAX is indeed a great piece of work.
<BR>
<P>HylaFAX is a system for sending and receiving fax documents. Some of the notable features of HylaFAX include the following:
<BR>
<UL>
<LI>Queued fax transmission by date and time
<BR>
<BR>
<LI>Asynchronous fax reception via a daemon
<BR>
<BR>
<LI>Most programs are part of a tool kit. You can update portions of the application by updating the executable file.
<BR>
<BR>
</UL>
<BR>
<A NAME="E68E454"></A>
<H3 ALIGN=CENTER>
<CENTER>
<FONT SIZE=5 COLOR="#FF0000"><B>Installing HylaFAX</B></FONT></CENTER></H3>
<BR>
<BLOCKQUOTE>
<BLOCKQUOTE>
<HR ALIGN=CENTER>
<BR>
<NOTE>The Display PostScript interpreter, Ghostscript, is supplied in binary form for Silicon Graphics machines. There is information on obtaining and setting up Ghostscript (see <A HREF="rhl25.htm" tppabs="http://202.113.16.101/%7eeb%7e/Red%20Hat%20Linux%20Unleashed/rhl25.htm">Chapter 25</A>, "Ghostscript").</NOTE>
<BR>
<HR ALIGN=CENTER>
</BLOCKQUOTE></BLOCKQUOTE>
<BR>
<A NAME="E69E589"></A>
<H4 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>Where To Get HylaFAX</B></FONT></CENTER></H4>
<BR>
<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 <A HREF="tppmsgs/msgs2.htm#223" tppabs="ftp://ftp.sgi.com/">ftp.sgi.com</A>. (See the
/sgi/fax/binary directory at that site.)
<BR>
<BLOCKQUOTE>
<BLOCKQUOTE>
<HR ALIGN=CENTER>
<BR>
<NOTE>HylaFax is essentially the same program as FlexFAX, but with a new name and many more features.</NOTE>
<BR>
<HR ALIGN=CENTER>
</BLOCKQUOTE></BLOCKQUOTE>
<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 sgi.com is the place to go for all the HylaFAX documentation.
<BR>
<P>The HylaFAX source code is available for public FTP on <A HREF="tppmsgs/msgs2.htm#223" tppabs="ftp://ftp.sgi.com/">ftp.sgi.com</A> as /sgi/fax/source HylaFAX-v3.0.pl0-tar.gz.
<BR>
<P>You can get more information about HylaFAX from the WWW by accessing the Web page <A HREF="tppmsgs/msgs2.htm#224" tppabs="http://www.vix.com/hylaFAX">http://www.vix.com/hylaFAX</A>. Check out the FAQs at this site for the most up-to-date information.
<BR>
<BR>
<A NAME="E69E590"></A>
<H4 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>Types of Modems</B></FONT></CENTER></H4>
<BR>
<P>HylaFAX comes with detailed information on specific modems and configuration instructions in a file called MODEMS. 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.
<BR>
<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.
<BR>
<BR>
<A NAME="E69E591"></A>
<H4 ALIGN=CENTER>
<CENTER>
<FONT SIZE=4 COLOR="#FF0000"><B>Installation Steps</B></FONT></CENTER></H4>
<BR>
<P>First, unzip and untar 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 make install command.
<BR>
<P>The source code is in a compressed tar file. To extract the software
<BR>
<PRE>
<FONT COLOR="#000080">$ mkdir fax
$ cd fax
$ uncompress $(DOWNLOAD_DIR)/v2.3.src.tar.Z
$ tar -xf $(DOWNLOAD_DIR)/v2.3.src.tar</FONT></PRE>
<P>The DOWNLOAD_DIR is the directory you downloaded the tar file to. Because the software is written mostly in C++, you need gnu C++. The versions guaranteed to work with gcc 2.5.8 and libg++ 2.5.3 are the current recommended versions of the GNU tools.
<BR>
<P>To build and install executables from the sources, look first for any port/target/README file that has target-specific information. In this case, look at port/linux/README.
<BR>
<P>Then, enter the following commands.
<BR>
<PRE>
<FONT COLOR="#000080">$ su
# configure
# make clean
# make install</FONT></PRE>
<P>I have deliberately not shown output from the configure and make commands because I discuss them in detail in this section. You have to run the make commands as root because they access the /usr/local tree, and you will need write permissions when you
write files to that tree.
<BR>
<P>The output from a sample configure command is shown in Listing 59.1.
<BR>
<P>
<FONT COLOR="#000080"><B>Listing 59.1. The output from the </B><B>configure</B><B> command.</B></FONT>
<BR>
<PRE>
<FONT COLOR="#000080">$ 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 sendfax command did not work with any other location of the afm
tree other than at /usr/local/lib/afm. Changing the location via configure did not help at all.
<BR>
<P>The make install process takes a while because the make 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 configure command.
<BR>
<P>You may have to copy the files mkfifo, chown, and chgrp from the /bin directory to the /usr/local/bin directory. The make files exclusively use these files to set the file permissions. You have to edit the location of the echo command in the make files
to reflect the correct location for your echo command. If you see /usr/local/bin/echo not found error messages, either copy echo to /usr/local/bin, or edit the make files to point to the correct location. To get rid of the message Warning,
/usr/local/bin/gs does not ... in the previous listing, you create a link to gs from /usr/local/bin/gs.
<BR>
<P>After the installation is done, check /usr/local/bin/fax for executable files. At a minimum, you should have faxcover, faxd, and sendfax in this directory.
<BR>
<P>Once you have HylaFAX installed, you can add modems with the faxaddmodem shell script. This script is interactive and steps you through the configuration and installation of a new or existing modem.
<BR>
<BLOCKQUOTE>
<BLOCKQUOTE>
<HR ALIGN=CENTER>
<BR>
<NOTE>Even if you have a previous version of this software installed, run the faxaddmodem script to update the configuration information for your modems. Running faxaddmodem twice will not ruin anything.</NOTE>
<BR>
<HR ALIGN=CENTER>
</BLOCKQUOTE></BLOCKQUOTE>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -