Subject: Re: pppd?
To: None <port-arm32@NetBSD.ORG>
From: Dave Millen <dmill@globalnet.co.uk>
List: port-arm32
Date: 01/18/1997 00:42:11
On Thursday 9th January Peter Berg wrote:
 
> doesn't anybody know where I can find a working version of pppd for riscbsd
> v1.2 or at least the sources for it ?

Well, I had difficulty setting it up, (its not very well explained in
'man'), but the set from the ftp site works on my system.

The trick is to get all the entries in the relevant tables correct
(again not very well explained if you're new to unix system admin, like
me).

This is how I have my system configured...it may not be the optimum,
but it works for me

#/etc/myname
oak.djmsoft.co.uk		#Change this to suit your system.						#it doesn't
have to really exist						#if you don't have a direct connection,					
#since it's only local, but RiscBSD						#seems to require it.

#/etc/defaultdomain
djmsoft.co.uk 	#likewise, anywhere you see this,						#substitute your
own domain name

#/etc/hosts
127.1           localhost localhost.djmsoft.co.uk
#
#My standalone machine's(oak) 'imaginary' network, pending the setup
#of my own net address.
0.2             oak.djmsoft.co.uk oak
21.56           postmaster.djmsoft.co.uk postmaster   #(required for
postgres)
#/etc/ttys    #secure means root logins are allowed!
console "/usr/libexec/getty RPC"        vt100   off secure
ttyv0   "/usr/libexec/getty RPC"        vt220   on secure   #user
consoles
ttyv1   "/usr/libexec/getty RPC"        vt220   on secure   # "    "   
"
ttyv2   "/usr/libexec/getty RPC"        vt220   on secure   # "    "   
"
ttyv3   "/usr/libexec/getty RPC"        vt220   on secure   # "    "   
"
ttyv4   "/usr/libexec/getty RPC"        vt220   on secure   # "    "   
"
ttyv5   "/usr/libexec/getty RPC"        vt220   on secure   # "    "   
"
ttyv6   "/usr/libexec/getty RPC"        vt220   off secure
ttyv7   "/usr/libexec/getty RPC"        vt220   off secure
ttyv8   "/usr/libexec/getty RPC"        vt220   off secure
ttyv9   "/usr/libexec/getty RPC"        vt220   off secure  #X console
tty00   "/usr/libexec/getty dialin"     unknown off         #the serial
port      #'dialin' is an alias for an entry in gettytab(see below) -
this allows me
#to quickly set up the modem as a dial in connection by changing field
#no. 4 of tty00 to 'on' (it MUST be 'off' for dialling out!)

#/etc/gettytab  #these are my entries, all the other settings
(parity,stop                 	#bits etc.) seem OK using the defaults.
dialin|std.115200|115200-baud:\
	:sp#115200:
dialout|std.115200|115200-baud:\
 	:sp#115200:

#/etc/netstart   #the default values seem OK

#/etc/ppp/options
connect "chat -v -f /etc/chat.cfg"  \
        debug \
        -detach \
        crtscts \
        modem \
        defaultroute \
#       lock \                	#Can't remember why I commented this
out. 	noipdefault \		#I think it stops the modem dropping speed        
user mcivil		#on a bad line???

#/etc/pp/pap-secrets
*       *       <your password>

#/etc/ppp/ip-up	#this should run when the modems connect and you are
		#logged in, but when I use pppd, ip-up returns 'permission 
		#denied', but everything still seems to work!
#!/bin/sh
echo starting mail
/usr/local/bin/popclient -v -u dmill -p Bj7ZEmg3 \
        -o /var/spool/mail/dmill mail.globalnet.co.uk

#/etc/chat.cfg
ABORT BUSY
ABORT "NO CARRIER"
ABORT "NO DIAL TONE"
""
ATZ
OK ATDT<insert your service provider's tel. no.>
CONNECT "" ogin: <insert your username> ssword: <insert your password>

#/etc/remote
dial115200|115200 Baud Hayes attributes:\
        :dv=/dev/tty00:br#115200:cu=/dev/tty00:at=hayes:du:

#/etc/resolv.conf
domain globalnet.co.uk         #change this to suit e.g. demon.co.uk
nameserver 194.126.80.102      #change these as well
nameserver 194.126.80.101      #  "      "      "

With everything configured as above, the following script dials & logs
me on...

$dialup
#
pppd /dev/tty00 115200 connect 'chat -v ABORT BUSY \
	ABORT "NO CARRIER" \
	ABORT "NO DIALTONE" \
	"" ATZ \
	OK ATDT<insert your service provider's number> \
	CONNECT "" \
	ogin: <insert your username> \	#NOTE: 'ogin' and 'ssword' 
	ssword: <insert your password>'	#are not typos, the first
					#character is occasionally lost.

This one gets the mail, once logged on...
$getmail
#
popclient -3 -a -o /var/spool/mail/dmill mail.globalnet.co.uk
#substitute your provider's mailserver for the above

...and you can use 'ftp' or your browser as normal

******IMPORTANT********
Please make sure that any scripts or files that contain your passwords
are
secure i.e. owner only read/write.

I hope this saves somebody some of the hassle that I had when setting
up!

Good luck!

Dave.