At 11:19 PM 19/10/1998 +0200, Christopher Turlington/ Engeeneering School
wrote:

>I did an rpm -ivh of mgetty-1.1.9.i386.rpm and ended with following
>directories for mgetty:

If you have used rpm to install then it puts the pre-compiled binaries in
appropriate places, just edit the config files and run.

You appear to want to do your own compile, (better), get the source and
then, in the source directory, run 'make' and 'make install'. You better
remove the rpm first.

If your dial in is coming from an NT, I believe that you will need to look
into chap authentication in pppd. I cannot help you there, my users use
only win95/mac at home.

Below is my notes that I made while setting up five modems to accept dial
in calls using ppp. My ip numbers will not apply to you of course, I have
replaced them xxx.xxx.xxx.xxx  !

Setting up the PPP dial in services on RH 5.0 linux
-----------------------------------------------------
Doc : modems.txt

get source for ppp-2.3.4 and mgetty, copy to /usr/local/src
Tell pppd to put its binaries in /usr/local/sbin but must
let it keep it's config files in /etc/ppp (hard wired).

Need to edit ppp Makefile to send files to /usr/local/~
        BINDIR /usr/local/sbin
        MANDIR /usr/local/man
        ETCDIR /etc/ppp

cd /usr/local/src/ppp-2.3.4
        ./config
        make kernel
        (now go and rebuild kernel :
                cd /usr/src/linux
                make dep
                make clean
                make boot       (may need to edit out bad define)
                copy new kernel to /boot (backup old first)
        return to /usr/local/src/ppp-2.3.4
        make
        make install

substitute Correct IP for xxx.xxx.xxx.xxx in next block
        
[root@biotest ]# cd /etc/ppp
        make options files that look like these :
                [root@bctest ppp]# cat options.ttyS0
                xxx.xxx.xxx.xxx:xxx.xxx.xxx.xxx
                [root@bctest ppp]# cat options.ttyS4
                xxx.xxx.xxx.xxx:xxx.xxx.xxx.xxx
                [root@bctest ppp]# cat options.ttyS5
                xxx.xxx.xxx.xxx:xxx.xxx.xxx.xxx
                [root@bctest ppp]# cat options.ttyS6
                xxx.xxx.xxx.xxx:xxx.xxx.xxx.xxx
                [root@bctest ppp]# cat options.ttyS7
                xxx.xxx.xxx.xxx:xxx.xxx.xxx.xxx
                [root@bctest ppp]# cat options
                asyncmap 0
                netmask xxx.xxx.xxx.xxx
                proxyarp
                lock
                crtscts
                modem
                ms-dns xxx.xxx.xxx.xxx
                ms-wins xxx.xxx.xxx.xxx
        
        to help with logging :
        [root@bctest ppp]# cat ip-down.local 
                #!/bin/bash

                base=`basename $2`

                echo -n $3 >> /var/log/pppd.$base
                echo -n '  ' >> /var/log/pppd.$base
                date +%H:%M >> /var/log/pppd.$base

        Make it executable - chmod u+x ip-down.local
        (make sure the other scripts are executable too)



Compile mgetty
cd /usr/local/src/mgetty-1.1.14
        cp policy.h.dist policy.h
        
        edit Makefile, ~ line 110, add -DAUTO_PPP
                CFLAGS=-O2 -Wall -pipe -DAUTO_PPP  

        make
        make install

cd /usr/local/etc/mgetty+sendfax
        vi login.config and set the following :
        /AutoPPP/ -     -       /usr/sbin/pppd auth -chap +pap 
                        [Line Continued] login proxyarp kdebug 0   


        Add a group called modem
                ie groupadd -g 800 modem



cd /etc 



Add this to /etc/inittab, uncomment where req

# ------------------------------------------------------
# Modem lines 4-7 on multiport card, internal on Com2, S1.

# s0:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS0
s1:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS1
s4:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS4
s5:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS5
s6:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS6
s7:345:respawn:/usr/local/sbin/mgetty -D -x2 /dev/ttyS7

vi /etc/sysconfig/network
  set the following line :
        FORWARD_IPV4=true


Add to /etc/rc.d/rc.serial
        ${SETSERIAL} -v  /dev/ttyS4 irq 5 autoconfig ${STD_FLAGS}
        ${SETSERIAL} -v  /dev/ttyS5 irq 5 autoconfig ${STD_FLAGS}
        ${SETSERIAL} -v  /dev/ttyS6 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
        ${SETSERIAL} -v  /dev/ttyS7 ${AUTO_IRQ} autoconfig ${STD_FLAGS}

Note that the first two lines manually specify the IRQ and the second
pair allow autoconfig. Both methods should work with the AST Fourport
board.

---------------
Create devices for the FourPort card to talk through if not already
there.

        [root@bctest /dev]# cd /dev
        [root@bctest /dev]# ./MAKEDEV ttyS4
        [root@bctest /dev]# ./MAKEDEV ttyS5
        [root@bctest /dev]# ./MAKEDEV ttyS6
        [root@bctest /dev]# ./MAKEDEV ttyS7
And set their owners :
        [root@bctest /dev]# chown uucp ttyS*
        [root@bctest /dev]# chgrp modem ttyS*
        [root@bctest /dev]#
------------------------------------------------------------------------
A D D I N G   U S E R S
-----------------------

   As set up above, anyone with a valid users name / passwd can log on
   and use the system. They do not need a valid shell. They do not need 
   to be a member of modemuser, that is just a convience.

        Add a group called modemuser
                ie groupadd -g 801 modemuser

        Add each user with a false shell, a member of modemuser
                /usr/sbin/addusr -s /bin/false -g modemuser -n <usr_name>

        Each user will have a blank passwd, copy the encrypted passwd from
        that users bioserve account to the /etc/passwd file.
        { -s shell; -g group; -n no_autogroup }

---------------------------------------------------

Good luck
------------------------------------------------------------
David Bannon                      [EMAIL PROTECTED]
School of Biochemistry            Phone 61 03 9479 2197
La Trobe University, Plenty Rd,   Fax   61 03 9479 2467
Bundoora, Vic, Australia, 3083    http://bioserve.latrobe.edu.au
------------------------------------------------------------
..... Humpty Dumpty was pushed !

Reply via email to