Koozali.org: home of the SME Server

HylaFax

Stan Coleman

HylaFax
« on: January 14, 2002, 08:45:07 PM »
Has anybody gotten HylaFax to run correctly? I followed all the steps in the How-To Setup Section and everything worked correctly except setup. When I run Fax-Setup I get two errors. One has to do with a missing program called either egetty or mgetty (I forgot which one). The other has to do with a missing section in a subdirectory ending in /gs. I believe the second program has something to do with Ghost. I've found lots of other people commenting the same problem all over the net but haven't found any solutions that work. The only one that seams to work is to recompile the program and I haven't had to recompile a program yet so I don't understand how that process works.

Jeroen

Re: HylaFax
« Reply #1 on: January 14, 2002, 10:19:23 PM »
You only need the egetty or mgetty program if you're using the modem for dial-in or dial-out besides faxing.
I can't recall if I got the second error. Did you allready try hylafax? What does it do when run?

aniston

Re: HylaFax
« Reply #2 on: January 14, 2002, 10:38:44 PM »
Hello Stan,

We have got hylafax working well but alwlays run into problems with its clients like Cypheus and the odd bunch hoverer the Hylafax server is fine.

If you can redo the e-smith server on a new machine or HDD then you can try it out from scratch and it should work well. Since i did it for my clinets in italy we have a 1.2.3.4... list how to in italian so tonight ill get working to do the translations.
 to get a head start this procedure (really brief and not explicit) should work
-- first make sure that there is no user by the name of fax under esmith users | if so delete it
-- get hold of these files from http://rpmfind.net
hylafax-4.1-1rh7.i386.rpm
urw-fonts-2.0-12.noarch.rpm
VFlib2-2.25.1-12.i386.rpm
chkfontpath-1.9.5-1.i386.rpm
libtiff-3.5.5-10.i386.rpm
metamail-2.7-27.i386.rpm
XFree86-libs-4.0.3-5.i386.rpm
ghostscript-5.50-19.rh7.1.i386.rpm
XFree86-xfs-4.0.3-5.i386.rpm
ghostscript-fonts-5.50-3.noarch.rpm
redhat-release-7.1-1.noarch.rpm
xtt-fonts-0.19990222-9.noarch.rpm

the files VFlib and xtt-fonts is not really required so dont install them unless you really need to (i have a mixed system so i need them)

-- before installing make sure that the original hylafax installatio is removed by

rpm -e --nodeps hylafax (stop the hylafax daemon first by hylafax stop)

-- if it asks you to kill the faxq process exit and kill lit locally by doing a kill with the process number it gave you, you may have to do this a couple of times depending on the number of processes it has spawned.

-- next install these files

rpm -Uvh XFree86-libs-4.0.3-5.i386.rpm
rpm -Uvh XFree86-xfs-4.0.3-5.i386.rpm
rpm -Uvh chkfontpath-1.9.5-1.i386.rpm
rpm -Uvh urw-fonts-2.0-12.noarch.rpm
rpm -Uvh libtiff-3.5.5-10.i386.rpm
rpm -Uvh ghostscript-5.50-19.rh7.1.i386.rpm ghostscript-fonts-5.50-3.noarch.rpm
rpm -Uvh redhat-release-7.1-1.noarch.rpm
rpm -Uvh hylafax-4.1-1rh7.i386.rpm
rpm -Uvh metamail-2.7-27.i386.rpm

note that you should not need to force anything if the order is followed best is to make an ibay and copy them there from the internet and then ssh to the server and the move yourself to the ibay and execute these rpms.

-- launch the faxsetup program byt the faxsetup command (make sure you have the modem turned on and connected)

-- add into  the default settings your local settings leaving the rest of the settings as defaults and do not restart the hylafax server if it asks you to do so! you do know that the ports are  ...

COM1 = ttyS0
COM2 = ttyS1

and that the file modes required are ...
RecvFileMode   0644
LogFileMode   0644
DeviceMode   0666

-- but these modes will not allow you to move files between folders unless you use the devil mode of 0666 for all (do it at your own risk!)

-- netx after the modem has been found verify the config and modify the users able to use the fax server under ...

/var/spool/hylafax/etc/hosts.hfaxd

-- you have to either enter an IP range that is valid for all computers on the network:

   192.168.1.
or:   .*@domain.net

or each user separately:

   user1@client1.domain.net
   user2@client2.domain.net

or the whole bunch from your server by .*\.domainname\.tld

... what i did was add a group in esmith called faxusers and then added a pseudonym called faxmaster which included the group that way you can controll the user allowed to send/recv faxes.

next set the template for inittab by these commands ...

cd /
mkdir -p /etc/e-smith/templates-custom/etc/inittab
cd /etc/e-smith/templates-custom/etc/inittab
touch 90hylafax
echo "mo:234567:respawn:/usr/sbin/faxgetty /dev/ttyS0" > 90tty4
cat 90hylafax
mo:234567:respawn:/usr/sbin/faxgetty /dev/ttyS0
/sbin/e-smith/expand-template /etc/inittab

if you restart the machine now the faxgetty should  runthru inittab and set the modem.

-- finally modify /var/spool/hylafax/bin/faxrcvd and go to the line 56 and set the TO address like this ....
TOADDR=faxmaster instead of FaxMaster (actually i dont think this changes things!)  anyone have a clue?

-- youre about done all you need to do now is to setup your windoze machines with some faxclients like Cypheus and WHFC or smbfax but you will definately require the ghostscript files for windows also before setting up Cypheus make sure you read the help file under the Cypheus installation directory. on this point I got the Java fax to work but it cannot work like a standard printer for print to fax (any java dudes written anything for this java fax to act like a standard printer?)

nothing more here ...

regards ... aniston.

Stan Coleman

Re: HylaFax
« Reply #3 on: January 14, 2002, 10:45:53 PM »
It doesn't even setup. I can't get past the setup section because of the missing files. In other words HylaFax isn't running now.

aniston

Re: HylaFax
« Reply #4 on: January 14, 2002, 10:51:56 PM »
something i forgot...

-- on successive restarts you wont find the hylafax server running unless you add it to the run level 7 by these lines...

cd /etc/rc.d/rc7.d
ln -s /etc/rc.d/init.d/hylafax /etc/rc.d/rc7.d/S95hylafax

so after every reboot it will run the hylafax server

you can check this with faxstat -a

-- you might also want to modify the init string of the modem if it cannot reconize the dial tone by modifying the file ...

/var/spool/fax/etc/config.ttyS0
and the string ...
ModemDialCmd:           ATDT%s        # T for tone dialing
to ModemDialCmd:           ATX1DT%s        # T for tone dialing

if i think of something i have forgotten ill speak up...
cheers .aniston.

Stan Coleman

Re: HylaFax
« Reply #5 on: January 14, 2002, 10:54:04 PM »
Your instructions are way different than the ones in the Contributed How-To section. Maybe they should replace those instructions with yours :)

guestFF

Re: HylaFax
« Reply #6 on: January 15, 2002, 01:38:47 AM »
Hi,

I've posted this one a while ago:

http://forums.contribs.org/index.php?topic=11757.msg44198#msg44198

It works for many (as I have been mailed)

My suggestion, de-install previous packages regarding Hylafax, Find the right packages, Put them ALL (including install script) in one directory and run the install_hylafax script.

It didn't fail for me once wiht 4.1.2 or smeV5

Hope it helps.

RequestedDeletion

Stan Coleman

Re: HylaFax
« Reply #7 on: January 17, 2002, 07:31:38 AM »
I did all the de-install install like your instructions but still had problems. First problem was that VFlib and xtt-fonts were required by ghostscript. Once I got by that everything else was easy. Got to the Faxsetup section but once again got errors. Errors are; Warning: /usr/share/fonts/default/ghostscript Does Not Exsist and; Fatal Error: /usr/bin/gs does not exsist or is not an executable program. I found the gs program at usr/local/bin/gs. I tried to uninstall Ghostscript but it says it's not installed. So I tried to install it and it says it's installed. Anyway to get it uninstalled without haveing to reinstall the whole server? I'd rather not reinstall as I have added one other program to my e-smith server - Fetchmail.

Duncan

Re: HylaFax
« Reply #8 on: January 17, 2002, 08:55:06 AM »
With respect to your ghostscript problem go here
http://forums.contribs.org/index.php?topic=11576.msg43566#msg43566

Regards Duncan

Stan Coleman

Re: HylaFax
« Reply #9 on: January 17, 2002, 10:04:34 AM »
>
> With respect to your ghostscript problem go here
> http://forums.contribs.org/index.php?topic=11576.msg43566#msg43566
>
> Regards Duncan


Where have you been all my life? (At least the HylaFax Life) I may have more problems yet but at least now Faxsetup works. Wish me luck.

PS I wish someone would write a better How-To on this subject :)
Duncan wrote:

Duncan

Re: HylaFax
« Reply #10 on: January 18, 2002, 07:41:32 AM »
If you have any more problems post them here. I have had a good deal of experience with hylafax and the various clients.

Regards Duncan

aniston

Re: HylaFax
« Reply #11 on: January 18, 2002, 02:16:25 PM »
hello Duncan,

I seem to have problems with cypheus when there is more than one hylafax server it cannot seem to log on to the required server selected from its dropdown list ! In effect it just cannot log onto any server at all these are all physically different servers with hylafax setup. while using a java gnu hylafax client in windoze it is able to logont any of the servers selected.

any ideas what is happening to cypheus? or if anyone has seen this effect before?

regards,
aniston.

Stan Coleman

Re: HylaFax
« Reply #12 on: January 21, 2002, 08:09:41 PM »
aniston wrote:
>
> hello Duncan,
>
> I seem to have problems with cypheus when there is more than
> one hylafax server it cannot seem to log on to the required
> server selected from its dropdown list ! In effect it just
> cannot log onto any server at all these are all physically
> different servers with hylafax setup. while using a java gnu
> hylafax client in windoze it is able to logont any of the
> servers selected.
>
> any ideas what is happening to cypheus? or if anyone has seen
> this effect before?
>
> regards,
> aniston.

I'm getting that problem with only one server. Every once in a while it decides not to log on. Even though nothing has changed on the server. I had to reinstall Cypheus to get it to log on again.

Stan Coleman

Re: HylaFax
« Reply #13 on: January 21, 2002, 08:28:55 PM »
<
90tty4
<
<

Could not get this section to work.

aniston

Re: HylaFax
« Reply #14 on: January 21, 2002, 10:16:39 PM »
Hello Stan (and the rest who read this).

You are absolutely right i have messed up here with a late night as usual the error is in the line which should be ...

echo "mo:234567:respawn:/usr/sbin/faxgetty /dev/ttyS0" > 90hylafax

and not ...

echo "mo:234567:respawn:/usr/sbin/faxgetty /dev/ttyS0" > 90tty4

Sorry about that! my apologies
For convenience and to keep things right please look for a line 90tty4 in the dir (you will find mc helpful here) ...

/etc/e-smith/templates-custom/etc/inittab/90tty4

and delete it with ...
rm 90tty4

finally again here is the correct commands ...

--------------------------------------------------------------
cd /
mkdir -p /etc/e-smith/templates-custom/etc/inittab
cd /etc/e-smith/templates-custom/etc/inittab
touch 90hylafax
echo "mo:234567:respawn:/usr/sbin/faxgetty /dev/ttyS0" > 90hylafax
cat 90hylafax
mo:234567:respawn:/usr/sbin/faxgetty /dev/ttyS0
/sbin/e-smith/expand-template /etc/inittab

you might want to reboot later !!

-------------------------------------------------------------------
 i hope this will get you running again.

regards..
aniston.