I had an AT&T mobile 3G USB plug-in at my business back before cable-modem internet was available. It was my stand-by for when the DSL went out.
I discovered the easiest way to make it work was to have it plugged into the computer when installing Ubuntu. This was what we did to get internet when going on the road and needing to run peoples' credit cards from our POS app in ubuntu. I recall the Ubuntus we were using on the road were 10.04...?
When it was at work, these were the magic steps used to make it come online... ssh into the firewall ubuntu server (edited: just checked and the firewall is 9.04):
root@wall:~# cat do_this_for_3g.txt nohup pppd call gsm & # Then after DSL works, to kill the 3G... ps aux | grep pppd # root 18716 0.0 0.0 7528 888 pts/0 R+ 12:08 0:00 grep pppd # root 23021 0.0 0.1 21668 1316 pts/0 S Mar15 0:00 pppd call gsm kill 23021 /etc/init.d/networking restart
Notice that gsm_chat
is a script in /etc/ppp/peers
:
root@wall:/etc/ppp/peers# cat gsm_chat # Connection script for Sierra Wireless GSM/UMTS modems # Note: This demo script is setup to work on the Cingular EDGE network # SAY 'Starting Sierra Wireless GSM connect script...\n' SAY '\n' ####################################### SAY 'Setting the abort string\n' SAY '\n' # Abort String ------------------------------ ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT 'NO CARRIER' ABORT DELAYED ####################################### SAY 'Initializing modem\n' # Modem Initialization '' AT OK ATZ ####################################### SAY '\n' SAY 'Setting APN\n' # Access Point Name (APN) # Incorrect APN or CGDCONT can often cause errors in connection. # Below are a bunch of different popular APNs #REG:\s1 AT+cgdcont=1,"IP","proxy" #OK 'AT+CGDCONT=0,"IP","proxy"' #OK 'AT+CGDCONT=1,"IP","proxy"' #OK 'AT+CGDCONT=2,"IP","proxy"' #OK 'AT+CGDCONT=0,"IP","ISP.CINGULAR"' OK 'AT+CGDCONT=1,"IP","ISP.CINGULAR"' #OK 'AT+CGDCONT=2,"IP","ISP.CINGULAR"' ####################################### SAY '\n' SAY 'Dialing...\n' # Dial the ISP, this is the common Cingular dial string OK ATD*99# CONNECT ''