• Re: Linux Dial-in with mgetty

    From rallcorn@VERT to alt.bbs.synchronet on Thursday, July 19, 2018 21:11:08
    From Newsgroup: alt.bbs.synchronet

    On Tuesday, May 8, 2007 at 1:53:48 PM UTC-5, Trash80 wrote:
    I was looking for a way to dial into Synchronet on a linux box. I was pointed
    in the direction of mgetty. Having never used it before I thought i'd write a
    mini-howto once I got it working so here goes.

    I'm running Debian so installing mgetty is a simple:

    apt-get install mgetty

    First edit inittab so that it spawns mgetty. Mine looks like this:

    T3:23:respawn:/sbin/mgetty -x0 -s 9600 ttyS1

    "23" is run-level 2 and 3. You made need to include run-level 5 on your system
    if you're running X Windows. 9600 is the baud rate (I'm running my on VOIP so
    it is not set too high). ttyS1 is com2.

    There are 3 config files for mgetty in /etc/mgetty. First edit dialin.config.
    Comment out the line that starts with /AutoPPP/ if it's not already. Then find the example telnet entry. Uncomment it and change it to:

    * - telnet /usr/bin/telnet -8 localhost

    The syntax is username userid utmp_entry login_program options. * is a wildcat
    and - means ignore, so the above line means anyone who calls gets passed to telnet.

    At the bottom of dialin.config may be a default entry for /bin/login. You can
    comment this out. Then save and exit dialin.config. Next edit mgetty.config.

    Here find the "speed" line and set the baud rate to whatever is appropriate for you. The latter half of this file has sample port settings that are commented out. I uncommented part of the last one and changed it to:

    port ttyS1
    speed 9600
    modem-init ATZ1

    Choose an appropriate modem init for your modem. The third file "login.config" does not need to be edited for our purposes. So that's it!

    Regards,
    Doug

    ---
    ÅŸ Synchronet ÅŸ The Ville...where 8 bits meets 32.
    --- Synchronet 3.14b-Win32 NewsLink 1.84
    * Vertrauen - Riverside County, California - telnet://vert.synchro.net
    I used to have a TRS-80 Model 4P, and used it with a 1200 baud modem (internal) to dial-in to UNIX, then called SCO-XENIX, or TRS-XENIX. I later bought a 9600 baud modem, which was as big as the top of the Model 4P, and it set on top as I used it! I just plugged it directly into the serial port and dialed in!
    Those were the days!
    -rAllcorn
    Richard A. Allcorn
    rAllcorn@uucpnet.org
    --- Synchronet 3.17a-Win32 NewsLink 1.110
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net