Contributed by belenus on Mon Feb 23 18:00:00 2009 (GMT)
from the mobility dept.
After getting me a new UMTS stick to be able to go online even when there is no WLAN available I stumbled about a thread at misc@ which helped me a lot. Basically you only need to create the following 3 files...
/etc/ppp/fonic.connect:
--------------------------------------------------------------------------------------
#!/bin/sh
chat -vs \
ABORT 'NO CARRIER' \
ABORT 'NO DIALTONE' \
ABORT ERROR \
ABORT 'NO ANSWER' \
ABORT BUSY '' \
at OK \
atz OK \
at+cpin=**** OK \
'AT+CGDCONT=1,"IP","pinternet.interkom.de"' OK \
'atdt*99***1#' CONNECT
--------------------------------------------------------------------------------------
/etc/ppp/disconnect:
--------------------------------------------------------------------------------------
#!/bin/sh
chat -vs \
ABORT 'NO CARRIER' \
ABORT 'NO DIALTONE' \
ABORT ERROR \
ABORT 'NO ANSWER' \
ABORT BUSY '' \
'\K' '' '+++ATH'
--------------------------------------------------------------------------------------
/etc/ppp/peers/fonic:
--------------------------------------------------------------------------------------
cuaU0
connect /etc/ppp/fonic.connect
disconnect /etc/ppp/disconnect
#460800
nocrtscts
xonxoff
#mtu 576
#mru 576
:10.0.0.1
noipdefault
ipcp-accept-local
defaultroute
usepeerdns
novj
nobsdcomp
novjccomp
nopcomp
noaccomp
noauth
nomagic
persist
--------------------------------------------------------------------------------------
Don't forget to replace the **** in the /etc/ppp/fonic.connect script with the pin of your SIM card!
Now you should be able to connect using UMTS with this simple command:
pppd dial fonic
If you want to drop the connection a simple pkill will do:
pkill pppd
If you liked this article and you are also going to order a Fonic Surf-Stick, please use the following number as Aktionscode when ordering and we both receive a 5 EUR bonus.
Mobilfunknummer / Aktionscode: 017678437197
Fonic FAQ: Freunde werben Freunde
|