This guide is for setting up a USB ADSL modem with the SpeedTouch driver .

Warning: this guide was written for Ubuntu 9:10 with Linux 2.6.31-14. The information here may be partly obsolete.

Method 1

Follow this guide (UKSpeedtouchDSLHowTo)

Method 2

Go to a computer or another operating system with internet access.

Visit Ubuntu Packages Search and search for each of the following packages. Download them to a folder that is also visible from Ubuntu (or to a USB stick).

  1. python-gtkmozembed
  2. python-eggtrayicon
  3. python-gtkspell
  4. python-gksu2
  5. libgdl-1-common
  6. libgdl-1-3
  7. python-gdl
  8. libgda-4.0-common
  9. libgda-4.0-4
  10. python2.5-minimal
  11. libdb4.6
  12. python2.5
  13. python-gda
  14. python-gnome2-extras

Boot into Ubuntu and install each package in the exact order listed.

Now download USB ADSL Modem Manager and install it.

After installation, to access the USB ADSL Modem Manager, go to Applications...Internet...USB ADSL Modem Manager.

When first run, it will ask for the settings of your connection: Username, Password, VP and VC.

To connect, right click the tray icon with your mouse and choose Connect from the context menu.

You should now be connected to the internet!

PPP Over ATM only if you have done method 1

If your ISP uses PPP Over ATM (PPPoATM, PPPoA) then read this section. If it uses PPP Over Ethernet (PPPoE) then jump to the PPP Over Ethernet section. We now need to create a configuration file for pppd to use so open a text editor and paste the following into it:

(for Ubuntu)

touch speedtch
gedit speedtch

(or for Kubuntu)

touch speedtch
kwrite speedtch

noipdefault
defaultroute
user 'username@isp'
# user 'rejestracja@neostrada.pl'
noauth
updetach
usepeerdns
plugin pppoatm.so
0.00

### You may need to uncomment these
### options to connect with some ISP's.
### They disable compression.

# noaccomp
# nobsdcomp
# nodeflate
# nopcomp
# noccp
# novj

### If the firmware loads and pppd won't
### connect uncomment this option to make
### pppd be more verbose in the system log

# debug

### For more details (and more options)
### Read man pppd

Replace 'username' and 'isp' with that provided by your ISP and also change 0.00 with the VP/VC values and save the file as speedtch. Now copy it to /etc/ppp/peers :

sudo install -m 600 speedtch /etc/ppp/peers

Make a Bootscript

Edit /etc/rc.local as root, e.g.

sudo nano /etc/rc.local

and after the line

# By default this script does nothing

paste the following:

# Start up Speedtouch connection
pon speedtch

Now the connection will start at boot time.

PPP Over Ethernet

If your ISP is using PPP Over Ethernet (PPPoE) then things are a little bit more complicated because we need to create a bridging connection using br2684ctl bridging utility. Download br2684ctl from here or install it with this command:

sudo apt-get install br2684ctl

Now we also need a configuration file for pppd to use so we open a text editor and paste the following:

(for Ubuntu)

touch speedtch
gedit speedtch

(or for Kubuntu)

touch speedtch
kwrite speedtch

noipdefault
defaultroute
user 'username@isp'
# user 'rejestracja@neostrada.pl'
noauth
updetach
usepeerdns
plugin rp-pppoe.so
nas0

### You may need to uncomment these
### options to connect with some ISP's.
### They disable compression.

# noaccomp
# nobsdcomp
# nodeflate
# nopcomp
# noccp
# novj

### If the firmware loads and pppd won't
### connect uncomment this option to make
### pppd be more verbose in the system log

# debug

### For more details (and more options)
### Read man pppd

replace 'username' and 'isp' with that provided by your ISP, save it as speedtch and copy it to /etc/ppp/peers:

sudo install -m 600 speedtch /etc/ppp/peers

Make a Bootscript

Open a text editor and paste the following:

modprobe ppp_generic
modprobe pppoatm
modprobe br2684
count=0
while [ $count -lt 40 ]
do
  sync=$(dmesg | grep 'ADSL line is up')
  if [ ! -z "$sync" ]
  then
    br2684ctl -b -c 0 -a VP.VC
    sleep 3
    ip addr add 192.168.0.1/24 dev nas0
    ip link set nas0 up
    sleep 10
    pppd call speedtch
    exit 0
  fi
  sleep 1
  count=$((1+$count))
done
echo "The Speedtouch firmware didn't load"

change the VP.VC values with those provided by your ISP ( in my case 0.35 ) save the file as dial then install the bootcript and make the needed symbolic links:

sudo install -m 744 dial /etc/init.d &&
sudo ln -s ../init.d/dial /etc/rc2.d/S95dial

In Ubuntu 11.10 and earlier, also link resolv.conf.

sudo ln -sf ppp/resolv.conf /etc/resolv.conf

In Ubuntu 12.04 and later this is neither necessary nor permitted, as resolv.conf is updated dynamically by the resolvconf utility and resolvconf's symbolic link /etc/resolv.conf --> ../run/resolvconf/resolv.conf is needed for this feature to work.

Now everything is in place and the connection is set.

Finally

You now reboot and should be online. The Net is yours! Smile :)


CategoryNetworking

UsbAdslModem/SpeedTouch (last edited 2012-12-12 05:51:34 by jdthood)