⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 efax-gtk.1

📁 用于使用moden进行传真的源代码
💻 1
字号:
.TH EFAX-GTK 1 "12 April 2004" "" "".SH NAMEefax-gtk \- GUI front end for efax program.SH SYNOPSIS\fBefax-gtk\fP [ \fIfile\fP ].SH COPYRIGHTEfax-gtk is Copyright (C) Chris Vine, 2001 - 2004.  It is releasedunder the General Public License, version 2..SH DESCRIPTION\fBefax-gtk\fP is a Gtk+/gtkmm front end for the efax program forreceiving and sending faxes with a fax modem.  To use it you must haveghostscript installed, and the executable (gs) must be situated in thedefault system path (such as /usr/bin or /usr/local/bin).The efax-gtk distribution now also compiles and installs a patchedversion of efax-0.9a-001114, so you do not need to separately buildand install efax.  A number of users reported problems sending orprinting faxes when in locales which express their floating pointnumbers with a comma as the decimal designator instead of thefull-stop (which applies to most of Europe outside the UK andIreland): efax and efix incorrectly use C formatted text functionsafter calling setlocale().  The patch simply omits the call tosetlocale(), so the C locale is used in all cases.To avoid name conflicts the patched versions of efax and efix areinstalled as efax-0.9a and efix-0.9a.  If you want to use the standarddistributions of efax, delete efax-0.9a and efix-0.9a, and then make asymbolic link from efax to efax-0.9a and from efix to efix-0.9a sothat efax-gtk can find them.  efax-0.9 or higher is recommended,although the program will work with older versions of efax - witholder versions, some automatic configuration options will not beavailable and the different lock file semantics means that a binaryand not UUCP lock file will be created, which may confuse some otherprograms trying to access the same serial port.Any files to be faxed must be in postscript format, which is thegeneric printer format for Unix/Linux systems.  The program will useghostscript to convert these into the Group 3 fax format which the faxmodem will understand..SH ARGUMENTSA file may be passed as an argument to the program, in which case thatfile will automatically appear in the "File to send" box when theprogram starts..SH USEThe first time you use the program, you will be asked if you acceptthe terms of the General Public Licence, version 2..SS Sending faxesBefore sending a fax, the name of the file to be sent must bespecified in the "File to fax" box.  The file specified must be inpostscript format, and will be converted by the program into thecorrect tiffg3 fax format.The file can be entered into the "File to fax" box by pressing the"File to fax" button (or from the `File/Find file' pull down menuitem), by starting the program with the filename as the lastparameter, or by entering it by hand into the box.  Files can be moreeasily found with the Find file dialog if they are placed in the$HOME/faxout directory.More than one file can be specified in the "File to fax" box, and ifso they will be sent as a single fax appended in the order in whichthey are entered in the box.  You can also use the "Manage/reordermultiple files" button to change the order of any added files or toadd further files to the fax.The telephone number to which the fax is to be sent is entered intothe "Tel number" box.  This can be entered directly into the box, orby using the built-in addressbook.  The addressbook can be invoked bypressing the "Tel number" button, or from the `File/Address book'pull-down menu item.  See "Using the address book" further below.However, if a telephone connection has already been established withthe remote fax receiver, then the fax can be sent without dialing byleaving the "Tel number" box blank (a dialog will come up asking ifyou would like to send the fax without dialing - this does the samething as 'fax send -m ...' using the efax 'fax' script from thecommand line).Successfully sent faxes are copied to a directory in the $HOME/faxsentdirectory, which has a name derived from the year, month, day, hourand seconds when the sending of the fax was completed, and will appearin the faxes sent list.  They are only included in that list if theyhave been sent without error.  The efax message display box willreport on the progress of a fax being sent.  The fax list can bebrought up from the `File/List sent faxes' pull down menu item.  See"Using the fax lists" further below.In addition, to make sending faxes from word processors easy, a socketserver is provided interfacing directly with the print system.  Seebelow for further details.Ordinary ascii text files can be converted into postscript if requiredusing a number of programs, of which probably the easiest to use arenenscript or GNU enscript (`man enscript')..SS Receiving faxesThree ways of receiving faxes are provided for.First, the program can be set to answer a fax call which is ringingbut has not been answered, by pressing the "Answer call" button.Secondly, the program can take over a call which has already beenanswered (say, by a telephone hand set) by pressing the "Take overcall" button.Thirdly, the program can be placed in standby mode by pressing the"Standby" button.  This will automatically answer any call after thenumber of rings specified in the efax-gtkrc file, and receive the fax.The program will keep on receiving faxes until the "Stop" button ispressed.Received faxes in tiffg3 format (one file for each page) are placed ina directory in the $HOME/faxin directory, which has a name derivedfrom the year, month, day, hour and seconds when the relevant "Answercall", "Take over call" or "Standy" button was pressed.  (Where instandby mode after a fax has been received, any further fax willderive its name from the time when receipt of the last received faxhas been completed and the program goes back into standby mode.)Received faxes can be printed, viewed, described and managed using thebuilt in fax list facility.  This can be brought up from the`File/List received faxes' pull down menu item.  See "Using the faxlists" further below.When a fax is received, a pop-up dialog can also be set to appear (goto the Settings dialog to do this).  In the settings dialog you canalso specify a program to be executed when a fax is received.  Thenumber of the fax is passed as the first (and only) argument to theprogram, which enables the program to find the fax in $HOME/faxin.The distribution contains two executable scripts, mail_fax andprint_fax, which can be used to e-mail a fax or print a fax to a userautomatically when it is received.  (These scripts are not installedby 'make install' - if you want to use them, make them executable with'chmod +x' and copy them to a directory which is in the system path,such as /usr/local/bin, and then specify the script name in thesettings dialog)..SS Using the address bookTo pick a telephone number from the address book, highlight therelevant address by pressing the left mouse button over it, and thenpress the "OK" button.Addresses can be added to the address book by pressing the add button,and then completing the relevant dialog which will appear.  To deletean address from the address book, highlight the relevant address andpress the delete (trashcan) button.  The addressbook can be sorted byusing the up and down arrow buttons on a highlighted address.Addresses are stored in file `$HOME/.efax-gtk_addressbook'..SS Using the fax listsTo bring up the fax lists, go to the the `File' menu and pick the`List received faxes' or `List sent faxes' menu item.  Highlight thefax to printed or viewed by pressing the left mouse button.  Theprograms to be used to print and view the fax are specifed in theefax-gtkrc configuration file, or if none are specified, the programwill print using lpr (which will work for most Unix systems) and viewwith gv.To print faxes, a PRINT_SHRINK parameter can be specifed in efax-gtkrcto enable the fax page to fit within the printer margins.  A parameterof 98 will work with most printers.  This can be changed while theprogram is running by bringing up the `Settings' dialog and enteringit into the `Print/Print Shrink' box.A fax can be deleted from a fax list by pressing the delete (trashcan)button.  This will place the deleted fax in the $HOME/faxin/oldfaxor $HOME/faxsent/oldfax directory.NB: link()/unlink() are used to move a fax, so $HOME/faxin/oldfax mustbe on the same file system as $HOME/faxin, and $HOME/faxsent/oldfaxmust be on the same file system as $HOME/faxsent.  If they are not,the fax will remain in $HOME/faxin or $HOME/faxsent.A description can be added to a received fax when appearing in a faxlist (or subsequently amended) by pressing the relevant button -- thiswill enable faxes to be more easily identified.To refresh a fax list (say, to update with any faxes received or sentsince the fax list was brought up), press the refresh button..SS SettingsThe program settings can be changed by manually editing the efax-gtkconfiguration file comprising $HOME/.efax-gtkrc,$sysconfdir/efax-gtkrc or /etc/efax-gtkrc.  The file is searched forin that order, so $HOME/.efax-gtkrc takes precedence over the othertwo.The configuration file can also be set by using the Settings dialoglaunched from the `File/Settings' pull down menu item.  The settingsentered using this dialog are always stored as $HOME/.efax-gtkrc.Accordingly, if the Settings dialog has been used, and you want torevert to the global settings, this can be done either by deleting the$HOME/.efax-gtkrc file, or by pressing the `Reset' button in theSettings dialog, which will reload the Settings dialog from the globalconfiguration file ($sysconfdir/efax-gtkrc or /etc/efax-gtkrc).Help can be obtained when filling out the Settings dialog by holdingthe mouse over the relevant help (?) button, which will bring up a"Tips" display, or by pressing the button, which will bring up aninformation display..SH LOGGINGErrors and warnings from efax are displayed in red in the applicationtext window, and information messages and reports on the progress ofnegotiations and on fax status are displayed in black in the window.In addition, these messages are sent to stderr and stdoutrespectively.  Accordingly, fax status can be logged by redirectingstderr and stdout to a log file.As an alternative, a log file can also be maintained by setting theLOG_FILE parameter in the efax-gtkrc configuration file, or byentering a log file name via the Settings dialog.  If no log file isspecified, no log file will be maintained..SH USING WITH A WORD PROCESSOR.SS Printing to file from the program itselfProbably the easiest way of using the program with a word processor isto print to file from the print dialog of the word processor programconcerned, and choosing a file name in the $HOME/faxout directorywhich can then be selected with the file selector dialog in efax-gtk.All Unix/Linux word and document processing programs will print tofile in Postscript format, ready to be faxed by efax-gtk.  (At least,if there is one which does not, I do not know of it)..SS Printing via CUPSEfax-gtk can run a socket server, which CUPS can connect to.  When thesocket server is running, fax files received from CUPS willautomatically be displayed in a "Queued faxes from socket" listmaintained by efax-gtk.  From this list, a fax can be selected forsending by efax-gtk, so there is no need to print to file from theword processor and then select the file with the file selection dialogin efax-gtk.If you are using CUPS and you want to connect it directly to efax-gtkas mentioned above, you can do so by bringing up the faxadministration page for CUPS in a web browser, installing a newprinter with a name of "fax" (or whatever other name you want), choosethe IPP protocol, pick a URI of "socket://[hostname]:[port]", andchoose the "Raw" CUPS printer driver.The port number can be any port number less than 65536 and more than1023 which is not used by any other service on your machine/network(this can be checked out by using nmap, but it is best to avoid anylisted in /etc/services).  For example, as you will usually beprinting from a local computer, if you choose a port number of 9900(would would be quite reasonable) the URI would be:socket://localhost:9900You should then start efax-gtk, go to the Socket tab in the settingsdialog, check the "Run socket server" box, and enter 9900 in the "Portto which faxes to be sent" box.To send a fax from the "Queued faxes from socket" dialog, highlightthe one to be sent, press the "Enter selected fax to send" button inthe dialog (the one with an icon representing a fax machine) whichwill enter the fax in the "File to fax" box in efax-gtk, and thenchoose a telephone number to send it to and press the "Send fax"button in the ordinary way.If efax-gtk isn't running when you attempt to send a file via CUPS toefax-gtk don't worry.  CUPS will queue the fax until it detects thatthe efax-gtk socket server is running, and then send it to efax-gtk.Where a fax is queued for sending in the socket list, a small redcircle will appear in the main program window on the right hand sideof the "Fax to send" box..SS Printing via lpd/lprngThe socket server can also be used in the same way with lpd/lprng.The files efax-gtk-faxfilter and efax-gtk-socket-client are installedin /var/spool/fax, when you run 'make install' (the installationdirectory can be changed at the ./configure stage using the"./configure --spooldir=[dir]" parameter.  You should add at the endof /etc/printcap the following -fax:\\.br	:sd=/var/spool/fax:\\.br	:mx#0:\\.br	:sh:\\.br	:lp=/dev/null:\\.br	:if=/var/spool/fax/efax-gtk-faxfilter:This will cause a printer by the name of "fax" to be available, which(if printed to) will send the file to the efax-gtk socket server.  Ifyou set efax-gtk to listen on a port other than port 9900, you willneed to amend the file /var/spool/fax/efax-gtk-faxfilter by hand tospecify the correct port number on which efax-gtk is listening.Don't forget to restart the lpd printer daemon after amending/etc/printcap.  (An equivalent addition to /etc/printcap can also bemade by using the printer configuration tool with your distribution,choosing a printer name of "fax" (or whatever other name you want),choosing a printer device of "/dev/null", a spool directory of"/var/spool/fax" and an input filter of"/var/spool/fax/efax-gtk-faxfilter".).SH FILES.TP\fIefax-gtk\fPThe efax-gtk executable..TP\fIefax-gtk-faxfilter\fPA filter script for lpd/lprng which will send files to the efax-gtksocket server.TP\fIefax-gtk-socket-client\fPThe companion socket client for efax-gtk-faxfilter.TP\fIefax-gtkrc\fPThe efax-gtk configuration file..TP\fIefax-gtk.po\fPVarious translation files for different locales..TP\fIefax-gtk.1\fPEfax-gtk manual file.TPIn addition some files from efax itself are installed, as follows:.TP\fIefax-0.9a\fPThe efax executable.TP\fIefix-0.9a\fPThe efix executable.TP\fIefax.1 efix.1\fPEfax manual files.SH SEE ALSOefax(1).SH AUTHORChris Vine.brchris@cvine.freeserve.co.uk

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -