hi everyone
i registered to this site a few days ago and find that many people are having problems running internet from their NOKIA handsets on linux. I have a NOKIA 3125 and this is how I did it.
I made two configuration files. The first is the file that gives pppd its options and the second is the file that tells pppd the username and password to use in order to log into the ISP.
File: /etc/ppp/options
Perms: 640 (-rw-r-----)
Owner: root.root
This is the pppd options file. It looks like the following (without the dashes):
---------------------------
updetach
modem
lock
crtscts
defaultroute
asyncmap 0
---------------------------
File: /etc/ppp/pap-secrets
Perms: 640 (-rw-r-----)
Owner: root.root
This is the file that contains the username and password for the ISP. The password must be in clear text. It should look like the following (without dashes):
---------------------------
username * password
---------------------------
I also made three script files
These are the files that actually connect you to the ISP. There are a total of three scripts that connect and disconnect you from the Internet.
File: /etc/ppp/ppp-on
perms: 750
Owner root.root
This is the actual connect script. You will need to edit the script with your username and telephone number to dial in the correct locations, after which, run it and you should connect.
---------------------------
#!/bin/sh
USERNAME= # Your username goes here
TELEPHONE=#777 # The telephone number you dial to connect
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
export TELEPHONE ACCOUNT PASSWORD
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
exec /usr/sbin/pppd debug /dev/ttyUSB0 115200 name $USERNAME \
$LOCAL_IP:$REMOTE_IP \
connect $DIALER_SCRIPT
# use /dev/USB* or /dev/ACM* as per your requirement
cat /etc/resolve.conf >> /etc/resolv.conf
----------------------------
File: /etc/ppp-on-dialer
Perms: 750
Owner: root.root
This script actually performs the dialing function. It receives the telephone number from ppp-on. If you wish, you may add a modem initialization string where indicated. If you do not wish for a initialization string then remove the line completely.
----------------------------
#!/bin/sh
exec /usr/sbin/chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
OK 'AT+CRM=1;+CSO=33' \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
CONNECT '' \
----------------------------
File: /etc/ppp/ppp-off
Perms: 750
Owner: root.root
This is the script that will disconnect you from the Internet. No modifications are necessary.
----------------------------
#!/bin/sh
if [ "$1" = "" ]; then
DEVICE=ppp0
else
DEVICE=$1
fi
if [ -r /var/run/$DEVICE.pid ]; then
kill -INT `cat /var/run/$DEVICE.pid`
if [ ! "$?" = "0" ]; then
rm -f /var/run/$DEVICE.pid
echo "ERROR: Removed stale pid file"
exit 1
fi
echo "PPP link to $DEVICE terminated."
exit 0
fi
echo "ERROR: PPP link is not active on $DEVICE"
exit 1
----------------------------
also create /etc/resolve.conf as follows
nameserver 202.138.103.100
nameserver 202.138.97.193
nameserver 127.0.0.1
now to run the script cd /etc/ppp
sh ppp-on and ENJOY!!!!!
sometome ppp-off does not disconnect
then killall pppd
and then sh ppp-on again
data call definitely end now
I FEEL this WILL WORK ON ANY NOKIA PHONE. IN CASE IT DOESNT PLEASE POST YOUR PROBLEM
IF IT DOES THEN TOO PLEASE SHARE YOUR EXPERIENCE