Saturday, February 9, 2008

Setup hylafax server on Ubuntu

I am starting to setup the fax server on my new Dell system with OS Ubuntu 7.10. this is not very smooth so I am trying to document what I did here.

The sites I found most useful are:

Pre-requisites
apt-get install hylafax-server hylafax-client cu setserial sendmail wvdial

please make sure that you have the OS cd/dvd avaialable since this is considered as media change.

Following commands might be useful for you:

find the serial port that modem is installed:
dmesg | grep tty
in this case I assume the modem is on ttyS0.

You might need to manually set the serial like this
setserial /dev/ttyS0 irq 4 port 0xc800 uart 16550


if setserial /dev/ttyS? is not working please see the dmesg for the parameters.

or you might find that lspci command useful to find all the pci installed.
Test your modem:
echo atdt3333333 > /dev/ttyS0

if you hear signal you should use the following command to stop it.
echo ath > /dev/ttyS0
Please be aware that if you setup is not finished correctly, the lock file in /var/lock/LCK..ttyS0
is not removed, you might need to manually remove it to be able to move forward for another setup.

Run faxsetup and following the above site #2 for line by line instructions.

if you run faxstat and get the following
Can not reach server at host "localhost", port 4559.

than the fax server is not started, you should run something like this:
/etc/init.d/hylafax start


No comments: