Activating VER-NUM :
    Edit /etc/rc.c/rc.local and enter those lines at the end :
    INITTY=/dev/tty[1-8]
    for tty in $INITTY;do
        setleds -D +num < $tty
    done

Reading boot messages :
    type dmesg|more

Loading a french keyboard at prompt :
    loadkeys fr-latin1.map
 
Looking for a file :
    find / -name NAME_OF_FILE
 

Installing Hylafax Server on a RedHat 5.1/5.2 :

    - be sure you are connected as root or equivalent

    - get the file hylafax-i386-linux-v4.0pl2-1.tar.gz

    -  then go to root  and type :
        tar -zxvf /path/where/you/downloaded/this/file/hylafax-i386-linux-v4.0pl2-1.tar.gz

    - modify the path : in the RedHat 5.1/5.2, there is no path for /usr/local/sbin. In order run
        hylafax's binaries, you have to modify /etc/profile. For example, you can add the following
        lines at the beginning of /etc/profile :
            PATH=/usr/local/sbin:$PATH
            export PATH

    - do a new login so that the new path takes effect.

    - install/upgrade ghostscript with those files :
                ghostscript-5.10-6.i386.rpm
        ghostscript-5.10-6-patch-980714-1.noarch.rpm
        ghostscript-fonts-other-5.10-6.noarch.rpm
        ghostscript-fonts-std-5.10-7.noarch.rpm
        rpm -Uvh /path/where/you/downloaded/those/files/ghostscript*.rpm

    - install/upgrade some more tools that can be found in your RedHat CDROM in
        /RedHat/RPMS/; go to this directory and do the following commands :
        rpm -Uvh mgetty*
        rpm -Uvh mawk*

    - install/upgrade the libtiff (can be found in your RedHat CDROM in /RedHat/RPMS/).
        Then you have to link some tools :
        find /usr/bin/tiff* -exec bach -c "ln {} /usr/local/bin/" \;
    &nbbsp;      find /usr/bin/fax* -exec bach -c "ln {} /usr/local/bin/" \;
        ln /bin/grep /usr/bin/grep
        ln -s /usr/share/ghostscript /usr/lib/ghostscript

    - it is now time to plug your modem onto a com port (note : cua0=com1, cua1=com2 ...)

    - now, you have to configure Hylafax by running faxsetup
       * Question 1:
            You do not appear to have a "fax" user in the password file.
            HylaFAX needs this to work properly, add it [yes]?
        Answer :
            <CR>
        *Question 2:
            Should a hylafax entry be addeed to /etc/services [yes]?
        Answer :
            <CR>
        *Question 3:
    &nbssp;           Should an snpp entry be addeed to /etc/services [yes]?
        Answer :
           <CR>
        *Question 4:
            Should an entry be addeed to /etc/inetd.conf [no]?
        Answer :
            yes
        *Question 5:
            Should an entry be addeed for the FaxMaster to /etc/aliases [yes]?
        Answer :
            <CR>
        *Question 6:
            Users to recieve fax-related mail [root]?
       Answer :
            <CR>
        *Question 7:
            Conbsp;   Country code [1]?
       Answer :
            33 (if you reside in France)
        *Question 8:
            Area code []?
       Answer :
            4 (for the 4th area code in France)
        *Question 9:
            Long distance dialing prefix [1]?
       Answer :
            Depends on where you are
        *Question 10:
            International dialing prefix [011]?
       Answer :
            00 (if you live in France)
       *Question 11:
            Dial string rules file...?
       Answer :             <CR>
       *Question 12:
            Tracing during normal server operation [1]?
        Answer :
            <CR>
       *Question 13:
            Default tracing during send and receive sessions [0xffffffff]?
        Answer :
            <CR>
       *Question 14:
            Continuation cover page (relative to /var/spool/fax) []?
        Answer :
            <CR>
       *Question 15:
            Timeout when converting PostScript documents (secs) [180]?
        Answer :
                <CR>
       *Question 16:
            Maximum number of concurent jobs to a destination [1]?
        Answer :
            <CR>
       *Question 17:
            Define a class of modems []?
        Answer :
            2 (classic fax modems) or 2.0 (for USRobotics)
       *Question 18:
            Time of day restrictions for outbound jobs ["Any"]?
        Answer :
            <CR>
       *Question 19:
            Pathname of destination controls file (....) []?
        Answer :
                <CR>
       *Question 20:
            Timeout before purging a stale UUCP lock file (secs) [30]?
        Answer :
            <CR>
       *Question 21:
            Max number of pages to permit in an outbound job [0xffffffff]?
        Answer :
            <CR>
       *Question 22:
            Syslog facility name for ServerTracing messages [deamon]?
        Answer :
            <CR>
       *Question 23:
            Are these ok [yes]?
        Answer :
            yes if everything is allright or nohing is allright or no to go back to configuration
       *Question 24 (if you answered yes !):
            Sould I restart the HylaFAX server processes [yes]?
        Answer :
            <CR>
       *Question 25:
            Do you want faxaddmodem to configure a modem [yes]?
        Answer :
            <CR>
       *Question 26:
            Serial port that modem is connected to []?
        Answer :
            cua0 for com1 / cua1 for com2 / cua2 for com3 ...
       *Question 27:
            Country code [33]?
        Answer :
                <CR>
       *Question 28:
            Area code [4]?
        Answer :
            <CR>
       *Question 29:
            Phone number of fax modem [....]?
        Answer :
            Your fax number
       *Question 30:
            Local identification string ... ["NothingSetup"]?
        Answer :
            The name of your society
       *Question 31:
            Long distance prefix [1]?
        Answer :
            <CR>
       *Question 32-57:
     bsp;           ...
        Answer :
            <CR>
       *Question 58:
            Are these ok [yes]?
        Answer :
            <CR>

        At this point, the setup will probe the modem for best results.

       *Question 59:
            DTE-DCE flow control scheme [default]?
        Answer :
            <CR>
       *Question 60:
            Are these ok [yes]?
        Answer :
            <CR>
       *Question 61:
            Are you sure you wap;  Are you sure you want to use 38400 as the DTE-DCE baud rate [yes]?
        Answer :
            <CR>
       *Question 62:
            Do you want to run faxaddmodem to configure another modem [yes]?
        Answer :
            no if you just have one modem
       *Question 63:
            Should I run faxmodem for each configured modem [yes]?
        Answer :
            <CR>

        At this point, setup is allmost finished.

Now, you have to configure the rights for your clients; the more simple is to give all rights for everyone.
Edit the file /var/spool/fax/etc/hosts so it looks like that :
    localhost
    127.0.0.1
    .*\.your\.domain$
    # every station at .your.domain can ustion at .your.domain can use the fax server

If you want to modify any setting for your modem, edit the files named /var/spool/fax/etc/config.cua*
In those files, you can modify the CSID (LocalIdentifier), the SpeakerVolume, the FAXNumber...
For example, if you need to compose "0" to get the dial, you have to modify the ModemDialCmd like this :
    ModemDialCmd:    ATDT0%s@                # T for tone dialing, @ for silence

At last, edit /etc/rc.d/rc.local (so that Hylafax is started automaticaly), and add the two following lines :
/usr/local/bin/faxq
/usr/local/bin/faxmodem cua0

Note : if your modem is connected to COM2 (under DOS), replace cua0 with cua1

 
For more informations, have a look at the HylaFAQ.

Restarting inetd :

    Edit the file /var/run/inetd.pid; the number you'll see is the PID you'll have to kill to restart inetd :
    For example, if this number is 269, this is what you'll have to do :
        kill -HUP 269
 


 

Installing a bootp deamon :

First edit the file /etc/inetd.conf; locate the line starting with "#bootps    dgram ..."
and remove the "#" and restart inetd.
Then, you have to edit the file /etc/bootptab to configure IP adresses, gateways and much more for
stations, regarding there MAC addresses.
Here is a sample of what it will look like :

    .default:\
         :td=/tftpboot:hd=/tftpboot/boot:bf=bootimage:\
        :ds=200.69.1.2:\
        :dn=ncf.bil:\
        :sm=255.255.255.0:\
        :gw=200.69.1.1:\
        :ht=ether:
    ncdeux168:ha=00A024777B9E:ip=200.69.1.16:gw=200.69.1.1:tc=.default

The section .default describes a profile.
td=/tftpboot is the main directory where the tftp root dir is located
hd=boot is a directory name relative to td
bf=bootimage is the name of the boot image file
    In this sample, the full namthis sample, the full name for the boot image file is /tftpboot/boot/bootimage.
dn=ncf.bil is the Domain Name
sm=255.255.255.0 is the Subnet Mask
gw=200.69.1.1 is the GateWay for this network
ht=ether is the Hardware Type
 

To verify that your deamon is configured properly, run the bootpd in debug mode first :
    bootpd -d4 -s
This will tell you about errors in /etc/bootptab, or just the different i/o for bootpd.

 

 
Installing a TFTP deamon :

First, create the directory /tftpboot as root.
Then change the rights so that only root can modify this directory :
    chmod 755 /tftpboot

Now, edit /etc/inetd.conf to make it ready to answer your tftp requests :
On a RedHat 5.x, just remove the "#" at the begining of the line "#tftp    dgram    udp    wait...".
To run the tftp deamon as a secured service, you must change the root directory while tftpd is running.
So you have to edit /etc/inetd.conf like this :
    tftp        dgram        udp        wa;      wait        root        /usr/sbin/tcpd    in.tftpd -s /tftpboot

Verifying it works :
    First, restart inetd
    Then, copy a file (for example /boot/vmlinuz) in /tftpboot,  and run :
        cd ~
        tftp localhost
            tftp>binary
            tftp>get vmlinuz vmlinuz.new
            tftp>quit
    You should now have a file called vmlinuz.new in your home directory (verifiy by running ls ~/).
 
  ;