Subject: Re: TTY/Modem help???
To: Aaron Williams <awilliams@ewi.com>
From: Mason Loring Bliss <mason@acheron.middleboro.ma.us>
List: netbsd-help
Date: 07/15/1997 17:42:37
On 7/15/97 at 10:00 AM -0700, you wrote:

> I have i386-NetBSD 1.1 running and need to install a US Robotics
> V.Everything modem on tty00.  Can someone send me the steps to do this
> so that I can dial up from another PC to the NetBSD box and initiate
> a ppp session.  I have the ppp software loaded and ready...

I haven't done this before, and I don't know for sure what would work, but
I've had a few ideas regarding a similar setup, and I *think* I know what
you need to do.

Here's my idea:

	cat /dev/tty00 < initfile

where initfile contains:

	at s0=1

and any other init stuff you want.

Then, just make sure the entry in /etc/ttys looks like:

	tty00   "/usr/libexec/getty std.57600"  vt100 off secure

or something similar. I'm not sure how to set the speed at which the modem
talks to the computer, but you can play with this a bit, probably. You
probably don't want to have the line be secure, incidentally. Hm... But
then, running pppd seems to require root access. Hm...

Anyway, whenever you send the "pick up the phone when it rings" command to
your modem, it will pick up after the specified number of rings. Once you
have a connection, the person on the other end can whack the return key to
get a login prompt. From there, they can run pppd and set up a ppp session.
They can automate their end if they want.

There's probably a slicker way to do this, but this would seem to work. The
only thing I'm not sure of is how to let a non-root account start pppd.
Perhaps you could make a special account that uses pppd as a shell or
something - that might work. Of course, I don't know if you can get
command-line options into the shell entry in your password file, but,
again, that's something you can play with.

It *is* possible to have pppd automatically talk to a port, but I don't
think your modem would like being repeatedly asked to start a ppp session.
Also, this will time out after a time. Lastly, this doesn't allow for a
passworded login. I'm using NetBSD on a Mac, and folks say getty on a Mac
can't handle high volume, high speed transfers, but maybe your setup won't
have that problem.

Caveat emptor: I'm new to NetBSD, so my suggestions may be based on
incorrect assumptions. Proceed at your own risk.

--
        Mason Loring Bliss    /\    mason@acheron.middleboro.ma.us
      PGPKeyID: 0x25B3D5B5   /()\   awake ? sleep() : dream();
<barbaric>YAWP!</barbaric>  /    \  http://genesis.tiac.net/~mason