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

📄 readme

📁 用于使用moden进行传真的源代码
💻
📖 第 1 页 / 共 2 页
字号:
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 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).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.The latest version is 2.2, which marks the end of the versions forGtk+1.2/gtk--1.2 (the last for which is efax-gtk-1.0.8).  The increasein minor version number marks this, and also the introduction of asocket server for the print system.  It would have been more logicalto have gone from version 2.0.9 to version 2.1.0, but odd minorversion numbers now seem to have become irremediably associated withdevelopment/unstable releases.                              EFAXThe 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.  In particular, a number of users reported problemssending or printing faxes when in locales which express their floatingpoint numbers 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        )   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/GTK+-2.4 and your compiler is gcc-2.95,then you must use gtkmm-2.2/libsigc++-1.2.  To compile gtkmm-2.4 andlibsigc++-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.)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, asefax-gtk.spec file causes rpm to check for this dependency whenefax-gtk is being installed.  This can give rise to problems ofportability, because different distributions package things underdifferent names.  If the rpm binary won't install on your systembecause of these dependencies, but you are sure that you have gtk+,libsigc++, gtkmm and ghostscript installed, there are two choices --to install the binary file using `rpm -i --nodeps [rpm filename]', orto:- unzip efax-gtk-[version].src.tgz,- amend the `Requires:' line in the efax-gtk.spec file to provide thecorrect 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.Sending 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.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 into

⌨️ 快捷键说明

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