On Sat, 12 Jun 1999, Stephen Pitts wrote: > On Sat, Jun 12, 1999 at 09:05:37PM -0500, Chuck Peters wrote: > > > > Hi, > > > > We want to make it easy for our Windows users to setup ppp by having pppd > > start if they dial into one of our modems or start lynx if they telent or > > ssh in. > > > > The problem is I haven't figured out quite how to do it. > > > > What we want is: > > start ppp if they dial into the equinox SST, ie on ttyQ[1-16] > > start ppp if they dial into our portmaster 2 named cthulhu > > start lynx home.html if the file exists in their home directory. > > or start lynx http://ccil.org/lynxhome.html > > > Install mgetty to automatically start pppd. Add some lines like this > to your /etc/inittab and run "init q" to start mgetty. > > T2:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS2 > > Look at the config files in /etc/mgetty and adjust them to your > liking. One caveat: the default pppd invocation does not look in > the /etc/ppp/* config files. > > For the lynx thing, just add this to /etc/profile : > if [-x ~/home.html] > lynx ~/home.html > else > lynx http://ccil.org/lynxhome.html > fi >
I should have made the point clearer. We are a freenet running an old custom built BBS style interface (Chester County Interlink, ccil.org) that runs on BSDi. We are working toward moving all the machines over to Debian Linux and want to replace the old Interlink with lynx. We want the old users to still be able to dial in with their Bcom, hyper terminal or whatever terminal program they have. The default user will have the following .bash_profile and be in group user so that we can regulate time quota's with idled. $ cat /etc/skel/.bash_profile # ~/.bash_profile: executed by bash(1) for login shells. if [ -f ~/start.htm ]; then echo -n ' Your Starting Page'; lynx start.htm else lynx http://ccil.org/lynxhome.html fi fortune exit umask 022 If the user wants to invoke pppd with their default setup they have to use the lynx jump command and enter jppp with a script or manually. I want the user to have the option of changing their default profile so that pppd is started if they dial into a modem and they can still use the lynx shell by telneting in. So we want it to do something like the following. if [ $(tty) = /dev/ttyQ* ]; then # This doesn't work right with the wildcard /usr/sbin/pppd -detach # If it worked equinox SST users would be OK elif [ The user is dialing in the portmaster 2 cthulhu.ccil.org using radius ] then /usr/sbin/pppd -detach elif [ -f ~/start.htm ]; then lynx start.htm else lynx http://ccil.org/lynxhome.html fi fortune exit umask 022 Thanks, Chuck