📄 readme
字号:
Copyright (C) 2001 to 2004 Chris Vine This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. A copy of the GNU General Public License version 2 is set out in the file COPYING accompanying this distribution. You can also obtain a written copy from the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Note that the copyright of the efax program, to which this is a front end, belongs to Ed Casas. OVERVIEWThis program is a Gtk+/Gtkmm front end for the efax program. It canbe used to send and receive faxes with a fax modem, and to view, printand manage faxes received. It also has a socket interface to providea "virtual printer" for sending faxes from word processors and similarprograms, and can automatically e-mail a received fax to a designateduser, and automatically print a received fax.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. EFAXThe efax-gtk distribution compiles and installs a patched version ofefax-0.9a-001114, so you do not need to separately build and installefax. In particular, 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(). Amongst the patches is one which omits thecall to setlocale(), 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. INSTALLATION: FROM SOURCE FILESCompiling from source---------------------To compile from source, place the distribution file in a local sourcedirectory (eg ~/src). Untarring/unzipping it will create asub-directory 'efax-gtk' where the source code can be found. You cannow edit the file efax-gtkrc (which by default will be placed by "makeinstall" in /usr/local/etc) to provide global settings which matchyour serial port, name, telephone number and other particulars.efax-gtkrc specifies run-time not compile-time options, but you canedit it now so that the version installed by "make install" iscorrect. Alternatively, you can start up the program and enter anysettings by bringing up the `Settings' dialog from the `File/Settings'pull-down menu once the program has started. (See below).Then enter the command `./configure'. This will set up the Makefileso that it matches your system. This can be done as user (you do notneed to be root). Then type "make", and then "make install". "makeinstall" must be run as root, but "make" can be run as user. Theprogram will by default be installed in /usr/local/bin. The name ofthe executable is "efax-gtk".You can change the install directory by running `./configure' with the--prefix=[dir] option. Thus - ./configure --prefix=/usrwill install the executables in /usr/bin, as will - ./configure --bindir=/usr/bin.The configuration file efax-gtkrc (see above) is installed in $RCDIR,which by default is /usr/local/etc. If the --prefix=[dir] option isused, $RCDIR will be taken from that. So - ./configure --prefix=/usrwill install efax-gtkrc in the /usr/etc directory. Its installdirectory RCDIR can also be changed by running ./configure with the--sysconfdir=[dir] option. Thus - ./configure --sysconfdir=/etcwill install efax-gtkrc in /etc.The man file will by default be installed in $prefix/man. If the--prefix=[dir] option is used, the base directory will be taken fromthat. So - ./configure --prefix=/usrwill install the man file in the /usr/man/man1 directory, as will - ./configure --mandir=/usr/manIn addition, a fax filter file `efax-gtk-faxfilter' is by defaultinstalled in /var/spool/fax, but a different directory can be chosenby running `./configure' with the --with-spooldir=[dir] option. Seebelow for an explanation of what this does.To compile and use the program, gtk+-2.*, libsigc++-1.2.3 or higherand gtkmm-2.* must be installed. To install gtkmm-2.*, you must alsohave have the glib-2, pango, atk, gettext and pkgconfig packagesinstalled, which come with GNOME-2. Note also that if you havegtk+-2.0.*/gnome-2.0 installed, you must use gtkmm-2.0.* andlibsigc++-1.2.* (libsigc++-1.2.3 or higher). If you havegtk+-2.2.*/gnome-2.2/gnome-2.4 installed, you must use gtkmm-2.2.* andlibsigc++-1.2.* (libsigc++-1.2.3 or higher). If you havegtk+-2.4.*/gnome-2.6 installed, you can use either the combination ofgtkmm-2.2.* and libsigc++-1.2.*, or the combination of gtkmm-2.4.*,glibmm-2.4.* and libsigc++-2.0.*.Note that with gtkmm-2.4, glibmm is separately packaged (glibmm isincluded in the gtkmm package with gtkmm-2.0 and gtkmm-2.2): if youare using gtkmm-2.4 you must compile and install glibmm-2.4 beforecompiling and installing gtkmm-2.4. In summary, the requirements areas follows:____________________________________________________GNOME-2.0 ) use gtkmm-2.0 and libsigc++-1.2.GTK+-2.0 )____________________________________________________GNOME-2.2 or 2.4 ) use gtkmm-2.2 and libsigc++-1.2GTK+-2.2 )____________________________________________________GNOME-2.6 or 2.8 ) use either gtkmm-2.2 with libsigc++-1.2 orGTK+-2.4 ) gtkmm-2.4 with glibmm-2.4 and libsigc++-2.0____________________________________________________The compile and install order is first libsigc++, then glibmm (ifusing gtkmm-2.4) and then gtkmm.If you are using GNOME-2.6 or 2.8 and GTK+-2.4 and your compiler isgcc-2.95, then you must use gtkmm-2.2/libsigc++-1.2. To compilegtkmm-2.4 and libsigc++-2.0, gcc-3.2 or higher is required.If you have installed libsigc++ and/or gtkmm-2.* in /usr/local (whichis the default if you have compiled them from source), and they arenot detected when you run ./configure to compile efax-gtk, make surethat the environmental variable PKG_CONFIG_PATH includes/usr/local/lib/pkgconfig in the pkgconfig path list. If you are usingthe bash shell, this can be achieved by entering the following in theshell terminal before you run ./configure:export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATHDo the same if you have libsigc++ installed, but when running./configure with gtkmm-2.*, libsigc++ can't be found. If either ofthe libraries are installed in /usr/local, also make sure that/usr/local/lib is specified in /etc/ld.so.conf. (If you add it to/etc/ld.so.conf, don't forget to run /sbin/ldconfig as rootafterwards.)Recent releases of gtkmm can be configured with the --disable-examplesoption before compiling. Using this option can substantially reducethe compile time of gtkmm, by not wasting time compiling the examples.Making RPM binaries-------------------A RPM spec file is included in the distribution. If rpm is installed,entering `rpm -tb efax-gtk-[version].src.tgz' as root will create astandard RPM binary file efax-gtk-[version]-1.[i386].rpm. This willbe found in the RPM binary directory that your RPM-build configurationspecifies (normally /usr/src/redhat/RPMS/i386 for Redhat i86 systems,and /usr/src/packages/RPMS/i386 for SuSE i86 systems).To install the rpm binary once made, use the normal command`rpm -i [rpm filename]'.To make the binary RPM file you must have the packages referred to in"Compiling from source" above. Once the rpm file is made, to installit you must also have the ghostscript package installed.As the efax-gtk.spec file causes rpm to check for dependencies bothwhen efax-gtk is being compiled and when being installed, this cangive rise to problems of portability, because different distributionspackage things under different names. If the rpm binary won't compileor install on your system because of these dependencies, but you aresure that you have gtk+, libsigc++, gtkmm and ghostscript installed,there are two choices -- to compile the package using `rpm -tb--nodeps efax-gtk-[version].src.tgz' and install the binary file using`rpm -i --nodeps [rpm filename]', or to:- unzip efax-gtk-[version].src.tgz,- amend the `BuildRequires:' and/or `Requires:' lines in the efax-gtk.spec file to provide the correct dependency package names for your distribution- copy efax-gtk-[version].src.tgz to /usr/src/[packages]/SOURCES- enter `rpm -bb efax-gtk.spec'.If you install via binary RPMs, then you will either have to use theFile/Settings dialog to configure the program when you first use it,or before using it have to amend /etc/efax-gtkrc by hand afterinstallation (see further below). USEThe first time you use the program, you will be asked if you acceptthe terms of the General Public Licence, version 2.Files to be sent should be saved as postscript files. If the programis started with a filename as the last argument, then it will beginwith that file already inserted in the program's "file to be sent"box. Otherwise once the program has started you can use the standardfile open dialog, or enter it directly into the box via the keyboard.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').For further suggestions about sending faxes from a wordprocessor usingCUPS, see "Using with a word processor" below.For efax to operate correctly, the user must have write permission tothe /var/lock directory, and to the serial port to which the fax modemis connected. In most distributions, the uucp group has writepermission for these: if this applies to your distribution, theeasiest approach is to make users members of the uucp group.The program may be started with a -r option and a -s option: efax-gtk -r This will start the program in receive standby mode efax-gtk -s This will start the program hidden in the system traySending faxes-------------Before sending a fax, it must be specified in the "Fax to send" box.It must be in postscript format (a format produced by all Unix/Linuxword and document processors), and will be converted by the programinto the correct tiffg3 fax format.There are two fax entry methods. First, the fax to be sent can be afile saved on the filesystem. It can be entered manually in the "Faxto send" box, or entered by means of the file selection dialog. Ifthe file comprises a single postscript file, then you can find it bypressing the "Single File" button. It can be more easily found withthis dialog if it is placed in the $HOME/faxout directory.Where more than one file is specified in the "Fax to send" box, theywill be sent as a single fax appended in the order in which they areentered in the box. Such multiple files can be more easily selectedusing the file list brought up by pressing the "Multiple Files"button. Pressing the "Multiple Files" button enables files to befound and added to the file list, and they can be reordered by usingthe Up or Down arrow buttons, or by dragging and dropping with themouse. (If entering multiple files manually rather than by means ofthe "Multiple Files" dialog, use a ',' or a ';' as the file nameseparator.)As an alternative, faxes can be received directly from the printsystem by means of a socket server provided by the program. Efax-gtkmaintains a list of queued faxes received from the socket which can beaccessed by choosing "Socket" as the fax entry method, and thenbringing up the queued faxes list by pressing the "Socket list"button. This is a more convenient way of sending faxes from a wordprocessor, and enables a fax to be sent for faxing to efax-gtk byprinting from the word processor program. Where a fax is queued forsending in the socket list, a small red circle will appear in the mainprogram window on the right hand side of the "Fax to send" box. Moreparticulars are given under "Using with a word processor" below.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).When a fax is received from the print system via the socket server,the program settings can also be configured to bring up a dialogautomatically. If the program is inactive (for example, it is notstanding by to receive faxes) the fax can be sent directly from thisdialog without the need to invoke the list of queued faxes receivedfrom the socket.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 will
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -