download and copy to /home/’username’ folder
then;
——————————————————
Start Ubuntu and plug your modem.
#
Let’s say you saved the file, mentioned above, on your “home” folder
(/home/username). Open a Terminal(console) and enter this:
$ tar -xvzf ueagle-data-1.1.tar.gz
$ sudo mkdir /lib/firmware/ueagle-atm
$ cd ueagle-data-1.1/
$ sudo cp -a * /lib/firmware/ueagle-atm
This extracts the firmware files and copies them to the appropriate location.
#
Now it’s time to disable the eagle-usb module and remove it. Enter this in the
console:
$ sudo rmmod eagle-usb
$ sudo rm /lib/modules/`uname -r`/kernel/drivers/usb/net/eagle/eagle-usb.ko
Note: Each time you update your kernel you have to do only the above step.
#
Now UNPLUG your modem, wait a few seconds and PLUG it again. After a few
seconds(maybe 20-30seconds) the lights on the modem should start to flash and
then stay on after a while. If this doesn’t happen then you should restart your
computer.
#
To configure your connection scroll down to the title “Configuring The
Connection :
Connection :
Now the modem is working we just need to tell it how to connect to our ISP. This
may differ for different service providers, but it works fine for Tiscali
connection in the UK and OTEnet connection in Greece.
1.
First run the command:
sudo gedit /etc/ppp/peers/ueagle-atm
And in this file put:
user “<your username>”
plugin pppoatm.so <VP>.<VC>
noipdefault
usepeerdns
defaultroute
persist
noauth
Where <your username> is your ISP username
and <VP> and <VC> are decimal numbers which vary from country to
country, and sometimes between providers. There is a nice list [WWW] here for
some countries. If you don’t find there the VP/VC numbers for your
country/provider then you should ask your provider.
2.
Now save that file and close it, then run:
sudo gedit /etc/ppp/chap-secrets
There should be one uncommented line (has no “#”
in front of it) which reads:
“<your username>” “*” “<your
password>” “*”
Where obviously <your username> and
<your password> are the username and password you use to connect to your
ISP respectively. Save this file and close it.
3.
Repeat the same for this file:
sudo gedit /etc/ppp/pap-secrets
Note: Don’t worry about storing your information into these files because they
can be viewed only by privileged users(e.g. root)
Launching the connection
1.
Now to launch the connection type in the console
(your modem must be synchronised–> lights on):
pon ueagle-atm
To see if this worked(wait 2-3 secs to make the
connection) launch your browser and load any page. If the page appears then it
worked. Congratulations!!!
2.
To turn off the connection type in the console:
poff
or
poff ueagle-atm
Automating The Connection
Starting At Boot
If your connection works then you can launch it automatically at startup using
the regular boot scripts system. To do this you need to create a script, in this
case I will call it “modem-startup”, so run:
gksudo gedit /etc/init.d/modem-startup
This will open the text editor, and in here you should copy the following:
#!/bin/bash
case “$1″ in
start)
modprobe ueagle-atm ;
sleep 60 ;
modprobe pppoatm ;
pppd call ueagle-atm
;;
stop)
true
;;
*)
echo “Usage: $0 {start|stop}” >&2
exit 3
;;
esac
This will run the commands following “start)” when this script is run as
modem-startup start (this includes a 1 minute wait for the modem to initialise),
and will run the program “true” when it is run as modem-startup stop, this makes
sure the system knows the script hasn’t failed, even though we do not need to do
anything special for shutdown. (FIXME: Maybe some different connections do? If
so then please add any shutdown commands you use). If the script is run with any
options other than start or stop then it will print a usage message and fail.
Save that file and close the text editor. We now need to give superusers
permission to execute that file, so run:
sudo chmod u+x /etc/init.d/modem-startup
Now the script is ready we must tell the system to run modem-startup start when
the system boots normally, and modem-startup stop when it shuts down or
restarts. This is done with the command:
sudo update-rc.d modem-startup defaults
If you also want the connection to start when you enter recovery mode then you
can run this command as well:
sudo ln -s /etc/init.d/modem-startup /etc/rc1.d/S20modem-startup
Restarting With A Button
You may want to have an easy way of launching the connection after the system
has already started, for instance if you did not have the modem plugged in
during boot or if the connection fails (you will usually have to unplug the
modem and plug it back in after the connection fails anyway), so to do this we
can make another little script and add a menu entry or button to run it. Make
the script with the following command:
gksudo gedit /usr/local/bin/reconnect-script
Enter into this script the following (assuming you have added it to bootup
following the instructions above):
#!/bin/bash
gksudo /etc/init.d/modem-startup start
exit 0
Now save the file and exit the editor, make the file executable with:
sudo chmod 755 /usr/local/bin/reconnect-script
Now you can add an entry into your menu using the Alacarte Menu Editor (in
Application>Accessories). For your menu entry you should set the command: box
to say reconnect-script, then set the other parameters to whatever you like. If
you want a button to do this then you can make the entry in Alacarte, drag it
out of the menu onto the panel or desktop, then disable the menu entry in
Alacarte. Remember to un/replug your modem before running the script though.
To Do
*
Sort out a few details for connections to make
them more generic (Please help with this, since I have it working for my UK
Tiscali connection, but cannot test it with others!)
*
removal instructions (“sudo make uninstall”
doesn’t work)
See also
*
UsbAdslModem/EagleUsb – The alternative (older)
driver install guide
*
[WWW]
http://doc.ubuntu-fr.org/materiel/ueagle-atm – French howto for ueagle-atm
*
[WWW]
http://atm.eagle-usb.org/wakka.php?wiki=PagePrincipale – ueagle-atm Wiki
homepage (french)
*
[WWW] http://www.eagle-usb.org/ – eagle-usb
homepage
*
[WWW] Forum Thread – Page from the Ubuntu Forums
which helped me to get online, and thus create this guide
vpi 8 vci 35
———————————————————————–
Powered by ScribeFire.
August 16, 2007 at 5:57 pm
I have visited your site 153-times
March 16, 2008 at 2:36 pm
Great Artice – thanks a lot!