Internet
Internet Access
This is a simple guide to getting your internet working on Ubuntu Linux.
I use a 3gdata card on my desktop which works well. I also use my mobile to connect to the
internet. There is two applications I use to connect:
1. wvdial
2. KPPP
If this is your first time connecting with wvdial, open a terminal window, ensure that your mobile
or 3gcard is connected and use the wvdial configuration script to see if it auto detects the modem
connected and also creates the configuration script /etc/wvdial.conf.
$sudo wvdialconf
For more info on wvdialconf, man it :-)
This is my working wvdial.conf file:
# wvdial for Vodacom Data. Created by Tazz_tux
# Adapted by JJames
# Version 1.0
#
# Change Log:
#
# Added support for HSDPA.
# Added Headers and version control.
[Dialer Defaults]
Phone = *99***1#
Username = yourusername
Password = yourpassword
Stupid Mode = 1
Dial Command = ATDT
[Dialer pin]
Init1 = AT+CPIN=1234
[Dialer hsdpa]
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
[Dialer 2gonly]
Modem = /dev/ttyUSB0
Init4 = AT+COPS=0,0,"Vodacom-SA";
[Dialer 3gonly]
Modem = /dev/ttyUSB0
Init4 = AT+CGDCONT=1,"IP","vlive";
[Dialer internet]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyUSB0
Phone = *99#
username=whatever
password=whatever
Stupid Mode = 1
Init5 = AT+CGDCONT=1,"IP","internet";
[Dialer internetvpn]
Modem = /dev/ttyUSB0
Init5 = AT+CGDCONT=1,"IP","internetvpn";
[Dialer myapn]
Modem = /dev/ttyUSB0
Init5 = AT+CGDCONT=1,"IP","bussiness.corp123"
[Dialer 384k]
Modem = /dev/ttyUSB0
Init6 = AT+CGEQMIN=1,4,64,384,64,384
Init7 = AT+CGEQREQ=1,4,64,384,64,384
[Dialer 144k]
Init6 = AT+CGEQMIN=1,4,64,144,64,144
Init7 = AT+CGEQREQ=1,4,64,144,64,144
[Dialer 64k]
Init6 = AT+CGEQMIN=1,4,64,64,64,64
Init7 = AT+CGEQREQ=1,4,64,64,64,64
If you like a gui better then KPPP is the way to go. After setting up wvdial it is simple to configure
KPPP as all of the config required can be copied from wvdial.conf into KPPP.