[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

modem-internet connexion pb, following



Too much, I tried too much. As things were not going as they should have been going, I started to write some scripts, copying them from Linux books as O'Reilly and newspapers : my-script, chatscript, ppp-on, ... That's maybe why my pppconfig+ppp didn't worked, when I learned that those should have been the right ones (but who told me it before?). So I erased all those added scripts, and copied the originals again from /usr/share/doc/ppp/examples/scripts/.

Then, "pon" gives:
bash: /usr/bin/pon: bad interpreter: Permission non accordée (it's a french one, unfortunately). Pon used to work better before (see my last mail in this thread). 

So I tried to go on using ppp-on and reading the README of /usr/share/doc/ppp/examples/scripts/. Here are my config files. My modem is internal and is a Z8530 ESCC, which is working for other Debian PowerPC user. 


My script /etc/ppp/ppp-on:
#!/bin/sh
#
# These are the parameters. Change as needed.
TELEPHONE=0555200000
ACCOUNT=myaccount		
PASSWORD=mypassword		
LOCAL_IP=0.0.0.0	# Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0	# Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0	# The proper netmask if needed
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
# Initiate the connection
exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS0 38400 \
	asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
	noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT


My script /etc/ppp/ppp-on-dialer:
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec chat -v						\
	TIMEOUT		15				\
	ABORT		'\nBUSY\r'			\
	ABORT		'\nNO ANSWER\r'			\
	ABORT		'\nRINGING\r\n\r\nRINGING\r'	\
	''		\rAT				\
	'OK-+++\c-OK'	ATH0				\
	TIMEOUT		30				\
	OK		ATDT$TELEPHONE			\
	CONNECT		''				\
	ogin:--ogin:	$ACCOUNT			\
	assword:	$PASSWORD



My tail -25 /var/log/messages (after asking those precedent scripts ppp-on and ppp-on-dialer):
Dec 22 23:22:32 macraf chat[738]: expect (OK)
Dec 22 23:22:42 macraf chat[737]: alarm
Dec 22 23:22:42 macraf chat[737]: send (+++)
Dec 22 23:22:43 macraf chat[737]: expect (OK)
Dec 22 23:22:47 macraf chat[738]: alarm
Dec 22 23:22:47 macraf chat[738]: send (+++)
Dec 22 23:22:47 macraf chat[738]: expect (OK)
Dec 22 23:22:58 macraf chat[737]: alarm
Dec 22 23:22:58 macraf chat[737]: Failed
Dec 22 23:22:59 macraf pppd[736]: Exit.
Dec 22 23:23:02 macraf chat[738]: alarm
Dec 22 23:23:02 macraf chat[738]: Failed
Dec 22 23:23:32 macraf pppd[749]: pppd 2.3.11 started by root, uid 0
Dec 22 23:23:34 macraf chat[750]: timeout set to 15 seconds
Dec 22 23:23:34 macraf chat[750]: abort on (\nBUSY\r)
Dec 22 23:23:34 macraf chat[750]: abort on (\nNO ANSWER\r)
Dec 22 23:23:34 macraf chat[750]: abort on (\nRINGING\r\n\r\nRINGING\r)
Dec 22 23:23:34 macraf chat[750]: send (rAT^M)
Dec 22 23:23:34 macraf chat[750]: expect (OK)
Dec 22 23:23:49 macraf chat[750]: alarm
Dec 22 23:23:49 macraf chat[750]: send (+++)
Dec 22 23:23:49 macraf chat[750]: expect (OK)
Dec 22 23:24:04 macraf chat[750]: alarm
Dec 22 23:24:04 macraf chat[750]: Failed
Dec 22 23:24:05 macraf pppd[749]: Exit.




That's all folks. All help welcome.

---
In money we infortunately trust. 



Reply to: