MandrakeUser.Org - Your Mandrake-Linux Knowledge Base!


 
 

* DocIndex - Connectivity

Fax Basics

Related Resources:

man efax
Configuring HylaFax (Article)
Linux Fax Software

Revision / Modified: June 21, 2001 / Nov 16, 2000
Author: Cornelius Brinegar

 

The following information describes how to send a Fax under Linux Mandrake 7.1. It assumes that the package "efax" is installed (efax-0.9-5mdk was used).

The first step is to customize the file '/etc/fax.config' for your local setup. Below is a portion of the file on my machine. Because I have a symbolic link named "modem" ('/dev/modem' --> '/dev/ttyS0') that points to my modem,DEV is set equal to modem. FROM should be set equal to your return fax number. NAME is your name.

# The device to which the fax modem is connected
# (e.g. ttya for /dev/ttya). Use a dial-out (cua)
# device if available. If there are links to this
# device then all programs must use same
# name or the UUCP locking mechanism will fail.
# For example, if /dev/modem is a link to
# /dev/cua1, then getty, uucp, kermit, pppd,
# dip, etc. must *all* use either /dev/modem or
# /dev/cua1.

DEV=modem

# Your fax number in international format, 20 characters maximum.
# Use only digits, spaces, and the "+" character.

FROM="+0 555 555 5555"

# Your name as it should appear on the page header.

NAME="Cornelius Brinegar"

The most basic way to send a fax is to create your fax document as a postscript file and type the following in a terminal:

fax send 555-5555 filename.ps

Replace 555-5555 with the phone number of your choice (even long distance numbers work) and filename.ps with the desired filename.

An obvious problem exists if one scans several pages of a document for faxing generating a series of gray scale images. The way I dealt with this case was to use GIMP to save the images in a postscript format with the names file.ps.001, file.ps.002, etc. The fax command then can simply be:

fax send 555-5555 file.ps.*

One can also use the "convert" utility from the ImageMagick package to create postscript files from many image formats.

The fax can be previewed on the screen while running X by using the following commands:

fax make filename.ps
fax view filename.ps.*

The first command creates a new file for each page of the fax, and the second command will allow you to view each page. I changed the '/etc/fax.config' file so that 'xv' would be used to show the fax preview.
Below is the corresponding section in the '/etc/fax.config' file:

# The command to view a Portable Gray Map (PGM)
# image from the standard input. Typically "xv -"
# or "xloadimage stdin".

#VIEWCMD="xloadimage stdin" # best
#VIEWCMD="xloadimage stdin" # best
# VIEWCMD="pnmtoxwd | xwud" # slower alternative
VIEWCMD="xv -" # much slower alternative

ML user Keith Hooper adds:

To create a fax, use the WordPerfect 8 download version that anyone and their brother can get has a great postscript filter. Just create a file and save it in .ps format and then go to the terminal and run fax with that file. It also works great with the graphic insert feature. I downloaded a TUX graphic from Linuxcentral and imported it onto my new cover sheet. Though it would be nice to get it to print right to the fax, one extra step isn't a big deal, but this way newbies don't have to worry about fax make or more complicated conversions. In WordPerfect is just a simple 'save as'.

* section index * top

 
Legal: All texts on this site are covered by the GNU Free Documentation License. Standard disclaimers of warranty apply. Copyright LSTB (Tom Berger) and Mandrakesoft 1999-2002.