At home, I have a Linux box. It acts as a server for the household network, providing Samba file and print services for my housemates Win95 machines and a permanent Internet link via PPP to my ISP.
What I wanted was a way to add my Newton to this network, so I could install packages, print, download news and email, etc. I considered buying the Farallon Ethernet card, but the places I tried wouldn't ship it to Australia.
I noticed in the Internet Setup application that one of the options was for a direct serial connection. I pulled out my DB9 to MiniDIN 8 cable, plugged it into the spare RS-232 port on my Linux box, and after some fiddling, I now have a PPP link for my Newton without dialing into an ISP.
I figured I might as well write this stuff down, just in case someone else wanted to do it, to save them having to discover what I did to get it to work.
If you have any additional information to add to this document, or you're having trouble and want to ask a question, you can mail me at davida@pobox.com.
I did this in a particular way. There are other ways it could be done (if I get around to it, I might try them as well). I assume you have some knowledge of Unix/Linux, but I'll try to be clear enough for a beginner.
In order to get this to work, there's a couple of things you need to have.
See the IP Masquerading HOWTO.
If you've got all this stuff, proceed!
Try running ls -l /usr/sbin/pppd. The result should look something like this
-rwsr-xr-- 1 root dip 76072 Mar 2 1997 /usr/sbin/pppdwhere the red letter should be x or s, not -.
Try running ls -g /usr/sbin/pppd and note the group name. Maybe your PPP daemon is in a different place? You'll need to find it.
Try telnet localhost and use the new username (newton) and password. If this does not get you a Bash prompt, then something is wrong with the account. You'll need to fix this before proceeding.
Depending on your setup, this could be a little tricky. If you already have a serial mouse and a modem on your computer, you might not have a serial interrupt free. Somehow, you need to find one.
On a Debian system, the name for this device should be something like /dev/ttySn (where n is 0, 1, 2, 3 etc).
On a Redhat system, it will be something like /dev/cuan (where n is 0, 1, 2, 3 etc).
For a Debian system, try something like
S1:23:respawn:/sbin/getty -ihL ttyS1 38400where S1 and ttyS1 correspond to the serial device you are using.
For a Redhat system, try
S1:2345:respawn:/sbin/uugetty cua1 DT38400where S1 and cua1 correspond to the serial device you are using.
There will be other getty processes running, one for each of your unused virtual terminals. Look for the one that has your serial port device name.
For a Debian system, this should look like
31143 S1 S 0:00 /sbin/getty -ihL ttyS1 38400
For a Redhat system, it should look like
31143 ?1 S 0:00 /sbin/uugetty cua1 DT38400
If it is not running, you'll need to find out why and fix it. Check your syslog output for error messages.
Tap Connect, then Connect, then Edit Sessions. Create a new session using direct serial, speed 38400, 8 data bits, N parity and 1 stop bit. Enter your username (newton) and the new password.
In PT-100, tap Connect and send a carriage return, and you should get a login prompt. Enter your username and password, and you should end up at a command prompt on your Linux box.
If this works, you're halfway there ;-)