Tuesday, March 16, 2010

Connect to internet using Huawei ETS 1201 modem in Ubuntu

This is for people, who are out there, having the Huawei ETS1201 modem in their hand and are unable to connect to the Internet through Ubuntu. Its not simple, but its not too hard either, just follow the steps.

NOTE: Here, I am using the Ubuntu version 9.04, this may not work in all other ubuntu versions. Remove the quotes in quoted text

1] Get wvdial and all its dependencies from http://www.debian.org/distrib/packages. Downloading all the dependencies are essential

2] Try installing wvdial installation deb, it should give you an error telling that a certain dependency is not found

3] Search for that particular dependency and run it, the dependency will show an error telling that, for running it, you need another dependency... continue doing this until a dependency gets installed

4] Imagine that you were ascending a ladder until now, you reached the top, so you have to go back. Descend by installing the dependencies which forced you to ascend

5] A Dependency may need more than two dependency packages, in that case, you will have to repeat the  3rd step

6] The last few steps will take a lot of time, in my case, about 3 hours!, dont mind it, trying hard and installing all the dependencies will get you to the bottom of the stairs, ie. to Installing wvdial

7] Press Alt + F2 and type "gksu gedit /boot/grub/menu.lst"  press enter, enter your root password, and within no time, you will be presented with the menu.lst

8] Find the line "title Ubuntu jaunty (development branch), kernel 2.6.28-11-generic
uuid 44daa138-
39e6-450f-b840-76940da90d1f
kernel /vmlinuz-2.6.28-11-generic root=UUID=f2441938-7359-49d7-95eb-81f36a166757 ro quiet splash
initrd /initrd.img-2.6.28-11-generic
quiet"

9] Copy the block of text and paste it below the orginal,  this saves your system if something goes wrong

10] Append the following command to the end of "ro quiet splash",
"usbserial.vendor=0x12d1 usbserial.product=0x1010" so that now, it will look like,
"title        Ubuntu jaunty (development branch), kernel 2.6.28-8-generic
root        ()/ubuntu/disks
kernel        /boot/vmlinuz-2.6.28-8-generic root=UUID=588058EB8058D15C loop=/ubuntu/disks/root.disk ro quiet splash usbserial.vendor=0x12d1 usbserial.product=0x1010
initrd        /boot/initrd.img-2.6.28-8-generic"

11] Check if the newly added command is in the kernel line and not broken into two lines of text

12] Shutdown the system, switch off the modem

13] Switch the modem on, after the coverage LEDs light up, switch the system on

14] After bootup process,  press Alt + F2, type gksu gedit /etc/wvdial.conf, copy the following text,
"[Dialer defaults]
Modem = /dev/ttyUSB0
Baud = 230400
Phone = #777
Init1 = ATZ
Stupid Mode = 1
Dial Command = ATDT
Username = username
Password = password
PPPD Options = crtcts multilink usepeerdns lock defaultroute"

14] Replace the username and password with your own, eg.
Username = 4782186567 Password = 6567

15]  Save the file, then Press Alt + F2, type gksu gedit /etc/resolv.conf, press enter

16] Add the following text there,
"nameserver 192.168.52.12
nameserver 117.254.20.126"

NOTE: Your nameserver may be different from mine, go to internet connection details in windows xp, and note down the server shown below your ip address. Note down the number and replace the Server IP given above

17] Open up a new terminal by pressing Alt + F2 then typing, "gnome-terminal"

18] type passwd, it will ask you for new root password, type it and confirm it

19] type su, then type the password you created in the last step, now, you are root!

20] type in the command "wvdial", the system should connect you to the internet, please check if the modem is switched on before typing the command

NOTE: If the connection is dropped, you wont be able to dial again, until next reboot

Thats it!!! Now you have the power of internet in your favorite linux distribution, press Alt + F2 , type firefox, then press enter to get started

1 comment:

  1. Have never used ETS 1201 products, but they are doing good in security products, I have used a lot of Huawei MA5600 MA5600, happy with them.

    ReplyDelete