-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathefax-gtk.1
More file actions
453 lines (368 loc) · 19.2 KB
/
Copy pathefax-gtk.1
File metadata and controls
453 lines (368 loc) · 19.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
.TH EFAX-GTK 1 "21 July 2007" "" ""
.SH NAME
efax-gtk \- GUI front end for efax program
.SH SYNOPSIS
\fBefax-gtk [\fPoptions\fB]\fP [ \fIfile\fP ]
.TP
Options: \fB[\-rs]\fP
-r Start the program in receive standby mode
-s Start the program hidden in the system tray
.SH COPYRIGHT
Efax-gtk is Copyright (C) Chris Vine, 2001 - 2007. It is released
under the General Public License, version 2.
.SH DESCRIPTION
\fBefax-gtk\fP is a GTK+ front end for the efax program. It can be
used to send and receive faxes with a fax modem, and to view, print
and manage faxes received. It also provides a socket interface to
provide a "virtual printer" for sending faxes from word processors and
similar programs, and can automatically e-mail a received fax to a
designated user.
The efax-gtk distribution compiles and installs a patched version of
efax-0.9a-001114, so you do not need to separately build and install
efax. In particular, the version of efax supplied with efax-gtk
provides internationalization support, and resolves certain
difficulties with locales in the standard distribution.
To avoid name conflicts the patched versions of efax and efix are
installed as efax-0.9a and efix-0.9a. If you want to use the standard
distributions of efax, delete efax-0.9a and efix-0.9a, and then make a
symbolic link from efax to efax-0.9a and from efix to efix-0.9a so
that efax-gtk can find them. efax-0.9 or higher is recommended,
although the program will work with older versions of efax - with
older versions, some automatic configuration options will not be
available and the different lock file semantics means that a binary
and not UUCP lock file will be created, which may confuse some other
programs trying to access the same serial port.
Any files to be faxed must be in postscript format, which is the
generic printer format for Unix/Linux systems. The program will use
ghostscript to convert these into the Group 3 fax format which the fax
modem will understand.
.SH ARGUMENTS
A file may be passed as an argument to the program, in which case that
file will automatically appear in the "File to send" box when the
program starts.
.SH USE
The first time you use the program, you will be asked if you accept
the terms of the General Public Licence, version 2.
.SS Sending faxes
Before sending a fax, the name of the file to be sent must be
specified in the "File to fax" box. The file specified must be in
postscript format, and will be converted by the program into the
correct tiffg3 fax format. It can be entered manually in the "Fax to
send" box, or entered by means of the file selection dialog. If the
file comprises a single postscript file, then you can find it by
pressing the "Single File" button. It can be more easily found with
this dialog if it is placed in the $HOME/faxout directory.
Where more than one file is specified in the "Fax to send" box, they
will be sent as a single fax appended in the order in which they are
entered in the box. Such multiple files can be more easily selected
using the file list brought up by pressing the "Multiple Files"
button. Pressing the "Multiple Files" button enables files to be
found and added to the file list, and they can be reordered by using
the Up or Down arrow buttons, or by dragging and dropping with the
mouse. (If entering multiple files manually rather than by means of
the "Multiple Files" dialog, use a `,\' or a `;\' as the file name
separator.)
The telephone number to which the fax is to be sent is entered into
the "Tel number" box. This can be entered directly into the box, or
by using the built-in addressbook. The addressbook can be invoked by
pressing 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 with
the remote fax receiver, then the fax can be sent without dialing by
leaving the "Tel number" box blank (a dialog will come up asking if
you would like to send the fax without dialing - this does the same
thing as `fax send \-m ...\' using the efax `fax\' script from the
command line).
When a fax is received from the print system via the socket server,
the program settings can be configured to bring up a dialog
automatically. If the program is inactive or is standing-by to
receive faxes the fax can be sent directly from this dialog without
the need to invoke the list of queued faxes received from the socket.
Successfully sent faxes are copied to a directory in the $HOME/faxsent
directory, which has a name derived from the year, month, day, hour
and seconds when the sending of the fax was completed, and will appear
in the faxes sent list. They are only included in that list if they
have been sent without error. The efax message display box will
report on the progress of a fax being sent. The fax list can be
brought up from the `File/List sent faxes\' pull down menu item. See
"Using the fax lists" further below.
The program can send a fax when it is in receive standby mode. If
sending a fax from receive standby mode, when the fax has been sent
(or there is an error in sending the fax), the program will return to
receive standby mode.
To make sending faxes from word processors easy, a socket server is
provided interfacing directly with the print system. See below for
further details.
Ordinary ascii text files can be converted into postscript if required
using a number of programs, of which probably the easiest to use are
nenscript or GNU enscript (`man enscript\').
.SS Receiving faxes
Three ways of receiving faxes are provided for.
First, the program can be set to answer a fax call which is ringing
but has not been answered, by pressing the "Answer call" button.
Secondly, the program can take over a call which has already been
answered (say, by a telephone hand set) by pressing the "Take over
call" button.
Thirdly, the program can be placed in standby mode by pressing the
"Standby" button. This will automatically answer any call after the
number of rings specified in the efax-gtkrc file, and receive the fax.
The program will keep on receiving faxes until the "Stop" button is
pressed. A fax can also be sent when the program is in receive
standby mode.
Received faxes in tiffg3 format (one file for each page) are placed in
a directory in the $HOME/faxin directory, which has a name derived
from the year, month, day, hour and seconds when the relevant "Answer
call", "Take over call" or "Standby" button was pressed. (Where in
standby mode after a fax has been received, any further fax will
derive its name from the time when receipt of the last received fax
has been completed and the program goes back into standby mode.)
Received faxes can be printed, viewed, described and managed using the
built in fax list facility. This can be brought up from the
`File/List received faxes\' pull down menu item. See "Using the fax
lists" further below.
When a fax is received, a pop-up dialog can also be set to appear (go
to the Settings dialog to do this).
In the settings dialog you can also specify a program to be executed
whenever a fax is received. The fax ID number is passed as the first
(and only) argument to the program, which enables the program to find
the fax in $HOME/faxin. The distribution contains two executable
scripts, mail_fax and print_fax, which can be used to e-mail a fax to
a user or print a fax automatically when it is received. (These
scripts are not installed by `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 the settings dialog).
.SS Using the address book
To pick a telephone number from the address book, highlight the
relevant address by pressing the left mouse button over it, and then
press 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 delete
an address from the address book, highlight the relevant address and
press the delete (trashcan) button. The addressbook can be sorted by
using the up and down arrow buttons on a highlighted address.
Addresses are stored in file `$HOME/.efax-gtk_addressbook\'.
.SS Using the fax lists
To bring up the fax lists, go to the the `File\' menu and pick the
`List received faxes\' or `List sent faxes\' menu item. Highlight the
fax to printed or viewed by pressing the left mouse button. The
programs to be used to print and view the fax are specifed in the
efax-gtkrc configuration file, or if none are specified, the program
will print using lpr (which will work for most Unix systems) and view
with gv.
To print faxes, a PRINT_SHRINK parameter can be specifed in efax-gtkrc
to enable the fax page to fit within the printer margins. A parameter
of 98 will work with most printers. This can be changed while the
program is running by bringing up the `Settings\' dialog and entering
it 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 `Trash\' folder. If
the delete (trashcan) button is pressed in relation to a fax in the
`Trash\' folder, it will be deleted from the file system.
A description can be added to a received fax when appearing in a fax
list (or subsequently amended) by pressing the relevant button -- this
will enable faxes to be more easily identified.
The received faxes list will show, at the far right of the tool bar,
the number of faxes received since the program was last started. If
efax-gtk is in receive standby mode, the "tooltips" for the program's
icon in the system tray will also indicate this number. The count can
be reset to 0 without restarting the program by pressing the reset
button in the received faxes list.
.SS Settings
The program settings can be changed by manually editing the efax-gtk
configuration file comprising $HOME/.efax-gtkrc,
$sysconfdir/efax-gtkrc or /etc/efax-gtkrc. The file is searched for
in that order, so $HOME/.efax-gtkrc takes precedence over the other
two.
The configuration file can also be set by using the Settings dialog
launched from the `File/Settings\' pull down menu item. The settings
entered using this dialog are always stored as $HOME/.efax-gtkrc.
Accordingly, if the Settings dialog has been used, and you want to
revert to the global settings, this can be done either by deleting the
$HOME/.efax-gtkrc file, or by pressing the `Reset\' button in the
Settings dialog, which will reload the Settings dialog from the global
configuration file ($sysconfdir/efax-gtkrc or /etc/efax-gtkrc).
Help can be obtained when filling out the Settings dialog by holding
the mouse over the relevant help (?) button, which will bring up a
"Tips" display, or by pressing the button, which will bring up an
information display.
.SH LOGGING
Errors and warnings from efax are displayed in red in the application
text window, and information messages and reports on the progress of
negotiations and on fax status are displayed in black in the window.
In addition, these messages are sent to stderr and stdout
respectively. Accordingly, fax status can be logged by redirecting
stderr and stdout to a log file.
As an alternative, a log file can also be maintained by setting the
LOG_FILE parameter in the efax-gtkrc configuration file, or by
entering a log file name via the Settings dialog. If no log file is
specified, no log file will be maintained. If a log file is
specified, then it can be viewed from the "Log" pull-down menu, and if
efax-gtk is compiled against GTK+\-2.10 or greater, the log file can
also be printed from the pull-down menu.
.SH USING WITH A WORD PROCESSOR
.SS Printing to file from the program itself
Probably the simplest way of using the program with a word processor
is to print to file from the print dialog of the word processor
program concerned, and choosing a file name in the $HOME/faxout
directory which can then be selected with the file selector dialog in
efax-gtk. All Unix/Linux word and document processing programs will
print to file 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 CUPS
Efax-gtk can run a socket server, which CUPS can connect to. When the
socket server is running, fax files received from CUPS will
automatically be displayed in a "Queued faxes from socket" list
maintained by efax-gtk. From this list, a fax can be selected for
sending by efax-gtk, so there is no need to print to file from the
word processor and then select the file with the file selection dialog
in efax-gtk.
When a fax is received in this way from the print system via the
socket, the program settings can also be configured to bring up a
dialog automatically. If the program is inactive or is standing-by to
receive faxes, the fax can be sent directly from this dialog without
the need to invoke the list of queued faxes received from the socket.
If you are using CUPS and you want to connect it directly to efax-gtk
as mentioned above, you can do so by bringing up the fax
administration page for CUPS in a web browser, installing a new
printer with a name of "fax" (or whatever other name you want), choose
the IPP protocol, pick a URI of "socket://[hostname]:[port]", and
choose the "Raw" CUPS printer driver.
The port number can be any port number less than 65536 and more than
1023 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 any
listed in /etc/services). For example, as you will usually be
printing from a local computer, if you choose a port number of 9900
(which would be quite reasonable) the URI would be:
.br
socket://localhost:9900
As an alternative, rather easier than the web interface is adding a
new CUPS virtual printer for efax-gtk by using lpadmin. To do this,
log in as whatever user has appropriate permissions (usually root) and
do it from the command line with:
.br
/usr/sbin/lpadmin \-p FaxPrinter \-E \-v socket://localhost:9900
That will create a printer name for efax-gtk called FaxPrinter for a
case where efax-gtk is listening on port 9900.
You should then start efax-gtk, go to the Socket tab in the settings
dialog, check the "Run socket server" box, and enter 9900 in the "Port
to which faxes to be sent" box.
To send a fax from the "Queued faxes from socket" dialog, highlight
the one to be sent, press the "Enter selected fax to send" button in
the dialog (the one with an icon representing a fax machine) which
will enter the fax in the "File to fax" box in efax-gtk, and then
choose 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 to
efax-gtk don't worry. CUPS will queue the fax until it detects that
the 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 red
circle will appear in the main program window on the right hand side
of the "Fax to send" box.
.SS Printing via lpd/lprng
The socket server can also be used in the same way with lpd/lprng.
The files efax-gtk-faxfilter and efax-gtk-socket-client are installed
in /var/spool/fax, when you run `make install\' (the installation
directory can be changed at the ./configure stage using the
"./configure \-\-spooldir=[dir]" parameter. You should add at the end
of /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. If
you set efax-gtk to listen on a port other than port 9900, you will
need to amend the file /var/spool/fax/efax-gtk-faxfilter by hand to
specify 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 be
made 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 SYSTEM TRAY
Efax-gtk has been written so that it will sit in the system tray in
GNOME and KDE when the program is running.
From the system tray, the program can be hidden and raised again by
left-clicking with the mouse on the icon, and right-clicking on it
will bring up a menu from which certain program operations can be
performed. A `tips\' display will also indicate the program state if
the mouse is left hovering over the efax-gtk icon.
Clicking on the top right (delete) button of the window frame will not
cause the program to terminate if the program is embedded in the
system tray. Instead it will hide it in the tray. If you want to
close the program when it is embedded in the tray, either select the
"Quit" menu item in the system tray efax-gtk menu, or select the
"Quit" menu item in the "File" pull-down menu in the program toolbar.
Recent versions of GNOME call the system tray a "Notification Area".
If your desktop panel does not have a Notification Area installed, it
can be placed on the panel by right clicking on the panel, and going
to Add to Panel -> Utility -> Notification Area.
.SH WORKING DIRECTORY
A working sub-directory for the storage of .efax-gtk_addressbook,
.efax-gtk_mainwin_save and .efax-gtk_queued_server_files and the
faxin, faxout, faxsent and efax-gtk-server directories can be
specified in the efax-gtkrc configuration file with the WORK_SUBDIR:
parameter. This working subdirectory will appear as a subdirectory of
$HOME (so if WORK_SUBDIR: is specified as efax-gtk, $HOME/efax-gtk
will be the working directory). If none is specified, which is the
default, then these files/directories will be stored directly in $HOME
(which was what happened before the option was available, so past
efax-gtk installations will not be broken if this option is left
unset). The WORK_SUBDIR: parameter enables these files and folders to
be kept together in a separate directory if wanted. If a WORK_SUBDIR:
parameter is specified, only .efax-gtkrc will appear directly in
$HOME.
Note that if you specify a value for WORK_SUBDIR: in the efax-gtkrc
configuration file, you will need to shift old versions of the files
and directories mentioned above into the new working directory or
efax-gtk will not be able to find them, so use this option with
caution. In addition, if you wish to use the "print_fax" or
"mail_fax" scripts, you will need to set the WORK_SUBDIR option in the
relevant script.
.SH FILES
.TP
\fIefax-gtk\fP
The efax-gtk executable.
.TP
\fIefax-gtk-faxfilter\fP
A filter script for lpd/lprng which will send files to the efax-gtk
socket server
.TP
\fIefax-gtk-socket-client\fP
The companion socket client for efax-gtk-faxfilter
.TP
\fIefax-gtkrc\fP
The efax-gtk configuration file.
.TP
\fIefax-gtk.po\fP
Various translation files for different locales.
.TP
\fIefax-gtk.1\fP
Efax-gtk manual file
.TP
In addition some files from efax itself are installed, as follows:
.TP
\fIefax-0.9a\fP
The efax executable
.TP
\fIefix-0.9a\fP
The efix executable
.TP
\fIefax.1 efix.1\fP
Efax manual files
.SH SEE ALSO
efax(1)
.SH AUTHOR
Chris Vine
.br
cvine@users.sourceforge.net