From owner-freebsd-questions Wed Jan 17 15:09:26 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA15931 for questions-outgoing; Wed, 17 Jan 1996 15:09:26 -0800 (PST) Received: from beaver.cs.washington.edu (beaver.cs.washington.edu [128.95.1.1]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id PAA15925 for ; Wed, 17 Jan 1996 15:09:20 -0800 (PST) Received: from tera.com (tera.com [128.95.3.1]) by beaver.cs.washington.edu (8.7.2/7.1be+) with SMTP id PAA15906; Wed, 17 Jan 1996 15:09:11 -0800 (PST) Received: from athena.tera.com by tera.com (4.1/SMI-4.0) id AA12605; Wed, 17 Jan 96 15:08:18 PST From: kline@tera.com (Gary Kline) Message-Id: <9601172308.AA12605@tera.com> Subject: Re: question on how to set up a 28.8 USR modem for freebsd ... To: nate@sri.MT.net (Nate Williams) Date: Wed, 17 Jan 1996 15:08:31 -0800 (PST) Cc: dwhite@resnet.uoregon.edu, goradia@VNET.IBM.COM, questions@FreeBSD.org In-Reply-To: <199601171936.MAA08987@rocky.sri.MT.net> from "Nate Williams" at Jan 17, 96 12:36:50 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-questions@FreeBSD.org Precedence: bulk According to Nate Williams: > [[ ... ]] > > 1) The users aren't reading the handbook (I suspect that here) > 2) The handbook docs need updating. > > Given the amount of time I've spent recently answering PPP questions, it > would be worth my while to re-write the sections on PPP/SLIP. Also, > I've got *all* of them working here in all combinations, so hopefully I > should be able to get it right. *grin* > > One of the user I just helped out is planning on updating the docs, and > I plan on reviewing it so hopefully it'll get better. > > > This is as good a time as any to jmp in and present this for everybody's review. Accept my apologies in advance if this breaks some of the list's rules or standards... but many of you know these matters forwards <-> backwards and can critique this expertly. What follows is a cheatsheet//quick-and-dirty outline on how to get tip working. %%% tip setup: Requires editing files in /etc/rc.serial, /etc/group, and /etc/ttys. You can probably leave /etc/gettytab alone since it is currently set to handle the max speed of the 16550A. When future UARTS allow faster speeds add onto: std.57600|57600-baud:\ :np:sp#57600: std.115200|115200-baud:\ :np:sp#115200: std.230400|230400-baud:\ :np:sp#230400: although I have no doubts that modems for POTS lines will ever allow this. If you are using a 28.8Kbps modem, to allow the greatest throughput, put this into /etc/ttys: ttyd1 "/usr/libexec/getty std.115200" xterm on secure Or whatever is appropriate. In this example, the modem is on ``COM2'' speaking in PC-ese; ttyd1. The "xterm" can be any termtype that you will logging into your FreeBSD as. "vt100" for example. Note: Here the 115200 matches that speed in /etc/gettytabs At the bottom of /etc/rc.serial, put: stty -f /dev/ttyid1 crtscts 115200 stty -f /dev/ttyld1 crtscts stty -f /dev/cuaia1 crtscts 115200 stty -f /dev/cuala1 crtscts to insure that the lines are set to use hardware handshaking. The advanced modems use hardware handshaking whereas the older, slower modems rely on software. In /etc/remote, define the name of the remote computers that you want to call. A sample is: # Systems definitions eskimo|Eskimo BBS:\ :pn=5553837:tc=unix28800: ham288|Hambone Corporation:\ :pn=5556196:tc=unix28800: ham144|Hambone Corporation:\ :pn=5551212:tc=unix14400: netcom|Netcom Unix Access:\ :pn=5455599:tc=unix1200: omen|Omen BBS:\ :pn=5531212:tc=dos1200: The above system definitions are expanded just below in /etc/remote: # UNIX system definitions unix28800|28800 Baud dial-out to a UNIX system:\ :el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial28800: unix14400|14400 Baud dial-out to a UNIX system:\ :el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial14400: unix1200|1200 Baud dial-out to a UNIX system:\ :el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial1200: unix300|300 Baud dial-out to a UNIX system:\ :el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial300: # DOS system definitions dos1200|1200 Baud dial-out to a DOS system:\ :el=^U^C^R^O^D^S^Q:ie=%$:oe=^Z:pa=none:tc=dial1200: (( Note that the /etc/phones file doesn't work as it should with /etc/remote. Anybody know if this is true?? )) Finally, if you are user ``smith'', in order to use tip in your own smith account, add yourself to the `dialers' line in /etc/group. Specifically: wheel:*:0:root daemon:*:1:daemon kmem:*:2:root sys:*:3:root tty:*:4:root operator:*:5:root mail:*:6: bin:*:7: news:*:8:root man:*:9: games:*:13: staff:*:20:root guest:*:31:root uucp:*:66: ingres:*:74:ingres xten:*:100:xten dialer:*:117:root,smith smith:*:1000: nogroup:*:65533: nobody:*:65534: Assuming that your modem is correctly configured, typing ``tip eskimo'' will dial into the eskimo BBS; ``tip ham144'' will connect you to Hambone Corporation, at 14.4Kbps. What can I add to//delete from this? Alterations? gary kline