?? 955-958.html
字號:
<HTML>
<HEAD>
<TITLE>Linux Unleashed, Third Edition:HylaFAX</TITLE>
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!--ISBN=0672313723//-->
<!--TITLE=Linux Unleashed, Third Edition//-->
<!--AUTHOR=Tim Parker//-->
<!--PUBLISHER=Macmillan Computer Publishing//-->
<!--IMPRINT=Sams//-->
<!--CHAPTER=60//-->
<!--PAGES=955-958//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ch59/951-954.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="958-960.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H2><A NAME="Heading1"></A><FONT COLOR="#000077">Chapter 60<BR>HylaFAX
</FONT></H2>
<P><I>by Tim Parker</I></P>
<DL>
<DT><B>In This Chapter</B>
<DT>• Installing HylaFAX
<DT>• Sending a fax
<DT>• Receiving a fax
</DL>
<P>One of the more useful aspects of computers is the capability to take a document you’ve written in your favorite word processor and fax it to someone. This saves time, paper, and effort over the old routine of printing a copy, feeding it into a fax machine, and sending it manually. Fax programs on computers allow you both to send from any application that has a print output feature and to receive incoming faxes from others.
</P>
<P>Although the most effective fax programs available for PCs are designed for Windows, several fax utilities exist for UNIX and Linux. You can purchase a commercial fax software package for your Linux system from a number of vendors, but luckily several are free of charge. If you plan to use your Linux system regularly, you may want to consider installing one of these fax tools.</P>
<P>The most commonly used Linux fax utility is called HylaFAX. HylaFAX was written by Sam Leffer and is available free of charge. Rather than a poor imitation of a commercial fax package, HylaFAX is a complete fax reception and transmission system in one and rivals commercial packages in features and utility. HylaFAX depends on the Ghostscript system to handle fax images, so you may want to read up about Ghostscript (if you didn’t already) in Chapter 27, “Programming in C++.”</P>
<H3><A NAME="Heading2"></A><FONT COLOR="#000077">Installing HylaFAX</FONT></H3>
<P>Most Linux distributions include HylaFAX as part of the CD-ROM set. If you didn’t get a copy of HylaFAX you can download it from many FTP and Web sites. You may find a program called FlexFAX which was an earlier utility that HylaFAX is based on. If you have a choice, go for HylaFAX. For most versions of HylaFax, you’re going to need a C++ compiler as well because only source code is provided. The GNU C++ compiler that comes with most Linux systems is fine.
</P>
<BLOCKQUOTE>
<P><FONT SIZE="-1"><HR><B>Tip: </B><BR>HylaFAX is available from most FTP sites, but the “home” site for the tool is <TT>ftp.sgi.com</TT>. Check the directory listings for HylaFAX information. Documentation for HylaFAX is available through the FTP sites or on the World Wide Web at <A HREF="http://www.sgi.com">http://www.sgi.com</A>.
<P>For more descriptions and history of HylaFAX, check out the site <A HREF="http://www.vix.com/hylafax">http://www.vix.com/hylaFAX</A>.<HR></FONT>
</BLOCKQUOTE>
</P>
<P>If you have a gzipped, compressed, or tarred file you need to extract, the HylaFAX dumps contents from it into a temporary directory. For example, if you have the HylaFAX archive <TT>HylaFax-v4.0-tar.gz</TT>, you would unpack it and place it in a fax directory with these commands:</P>
<!-- CODE SNIP //-->
<PRE>
mkdir /usr/fax
cd /usr/fax
cp /tmp/HylaFax-v4.0-tar.gz .
gunzip HylaFax-v4.0-tar.gz
tar -xf HylaFax-v4.0-tar
</PRE>
<!-- END CODE SNIP //-->
<P>Perform all these steps as root. Of course, you must substitute the directory in which you placed the HylaFAX archive for <TT>/tmp</TT> in the above commands. If you don’t want to use <TT>/usr/fax</TT> as the HylaFAX directory, change those commands to your target directory, too.</P>
<H4 ALIGN="LEFT"><A NAME="Heading3"></A><FONT COLOR="#000077">Compiling HylaFAX</FONT></H4>
<P>After all the files are extracted in your fax directory, you need to invoke the C++ compiler to produce an executable. There may be some important information in a file in the subdirectory <TT>/port/linux</TT>, usually as a file called README. To compile HylaFAX, issue the following commands (remember you must be logged in as root):</P>
<!-- CODE SNIP //-->
<PRE>
configure
make clean
make install
</PRE>
<!-- END CODE SNIP //-->
<P>There are a bunch of steps that appear from the <TT>configure</TT> and <TT>make</TT> commands that we’ll look at in a moment. When you issue the <TT>configure</TT> command, you’ll see a bunch of messages about which directories HylaFAX should use:</P>
<!-- CODE //-->
<PRE>
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]?
</PRE>
<!-- END CODE //-->
<P>Don’t change any of these default directory locations because they are used by many other applications in Linux. When you issue the <TT>make</TT> command, you will have to wait a few minutes while the compiler completes its task because it must pass through several stages and pull files from many locations on your system.</P>
<P>When the installation routine is complete, check to make sure that the directory <TT>/usr/local/bin/fax</TT> exists and has files in it. If it does, you will be able to use HylaFAX.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="../ch59/951-954.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="958-960.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -