Installing Micromax 3G USB Modem on Ubuntu 10.10
OK, so just like me, you too were excited about the latest Ubuntu 10.10. You installed the O.S. and everything was working perfectly until you tried to intsall your Micromax 3G USB Modem. You tried everything from pppoed to linmodem, but nothing seemed to work. And then you heard about the wvdial package, but the package was nowhere to be found on the system. If something of this sort happened to you, your problem is going to disappear in a little while. Just follow these steps and you sure are going to be relieved of the modem problem.
Step 1. Fetch your installation disk (CD/DVD or flash drive from which you installed Ubuntu 10.10).
Step 2. Browse to the folder /pool/main/w/.
Step 3. Locate the folders wvdial and wvstreams. Open wvstreams. Her you would see three files viz, libwvstreams4.6-extras_4.6.1-1ubuntu1_i386.deb, libwvstreams4.6-base_4.6.1-1ubuntu1_i386.deb, libuniconf4.6_4.6.1-1ubuntu1_i386.deb. Right click upon each one of them in the order in which I have listed them and select the first option i.e. Open with Ubuntu Software Center. Click on install and you are done.
Step 4. Next browse to the wvdial folder and install the package in the same way.
Step 5. Now, go to the start menu : Applications > Accessories > Terminal.
Step 6. Now type wvdial and press enter to check whether the package is working or not.
Step 7. Plug in your modem and at the command prompt enter
aditya@aditya-Aspire-4720:~$ sudo wvdialconf /etc/wvdial.conf.
The system would ask you for the password. Type the password and hit enter.
Step 8. The system would show you the wvdial.conf in full read/write mode. Edit the file in the manner as shown below :
[Dialer Defaults]
Modem = /dev/ttyUSB1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +F
Modem Type = USB Modem
Init3 = ATS7=60 S30=0 S0=0
Init4 = AT+CGDCONT=1,"IP","enter your acces point here"
Password = pass
Phone = *99***1#
Modem Type = USB Modem
Stupid Mode = 1
Baud = 7200000
New PPD = yes
Dial Attempts = 1
Modem = /dev/ttyUSB2
ISDN = 0
Username = user
Step 9. For future editing of the wvdial.conf file use the command : gksudo gedit /etc/wvdial.conf.
Step 10. Open a terminal window, enter sudo wvdial and hit enter.
aditya@aditya-Aspire-4720:~$ sudo wvdial
[sudo] password for aditya:
If everything works correctly, then you would see something like this :
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +F
ATQ0 V1 E1 S0=0 &C1 &D2 +F
OK
--> Sending: ATS7=60 S30=0 S0=0
ATS7=60 S30=0 S0=0
OK
--> Sending: AT+CGDCONT=1,"IP","bsnlnet"
AT+CGDCONT=1,"IP","bsnlnet"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT 7200000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Dec 31 04:58:32 2010
--> Pid of pppd: 7250
--> Using interface ppp0
--> local IP address 10.68.10.144
--> remote IP address 10.64.64.64
--> primary DNS address 218.248.255.161
--> secondary DNS address 218.248.255.195
Voila, you now have successfully connected to the internet. Do not close the terminal window for the duration for which you plan to use the internet. In order to disconnect, simply exit the terminal.
Do, tell me about your Modem Adventures. These things sure are tricky and can lead to a "frustration reigns supreme" kind of a situation.
Step 1. Fetch your installation disk (CD/DVD or flash drive from which you installed Ubuntu 10.10).
Step 2. Browse to the folder /pool/main/w/.
Step 3. Locate the folders wvdial and wvstreams. Open wvstreams. Her you would see three files viz, libwvstreams4.6-extras_4.6.1-1ubuntu1_i386.deb, libwvstreams4.6-base_4.6.1-1ubuntu1_i386.deb, libuniconf4.6_4.6.1-1ubuntu1_i386.deb. Right click upon each one of them in the order in which I have listed them and select the first option i.e. Open with Ubuntu Software Center. Click on install and you are done.
Step 4. Next browse to the wvdial folder and install the package in the same way.
Step 5. Now, go to the start menu : Applications > Accessories > Terminal.
Step 6. Now type wvdial and press enter to check whether the package is working or not.
Step 7. Plug in your modem and at the command prompt enter
aditya@aditya-Aspire-4720:~$ sudo wvdialconf /etc/wvdial.conf.
The system would ask you for the password. Type the password and hit enter.
Step 8. The system would show you the wvdial.conf in full read/write mode. Edit the file in the manner as shown below :
[Dialer Defaults]
Modem = /dev/ttyUSB1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +F
Modem Type = USB Modem
Init3 = ATS7=60 S30=0 S0=0
Init4 = AT+CGDCONT=1,"IP","enter your acces point here"
Password = pass
Phone = *99***1#
Modem Type = USB Modem
Stupid Mode = 1
Baud = 7200000
New PPD = yes
Dial Attempts = 1
Modem = /dev/ttyUSB2
ISDN = 0
Username = user
Step 9. For future editing of the wvdial.conf file use the command : gksudo gedit /etc/wvdial.conf.
Step 10. Open a terminal window, enter sudo wvdial and hit enter.
aditya@aditya-Aspire-4720:~$ sudo wvdial
[sudo] password for aditya:
If everything works correctly, then you would see something like this :
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +F
ATQ0 V1 E1 S0=0 &C1 &D2 +F
OK
--> Sending: ATS7=60 S30=0 S0=0
ATS7=60 S30=0 S0=0
OK
--> Sending: AT+CGDCONT=1,"IP","bsnlnet"
AT+CGDCONT=1,"IP","bsnlnet"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT 7200000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Dec 31 04:58:32 2010
--> Pid of pppd: 7250
--> Using interface ppp0
--> local IP address 10.68.10.144
--> remote IP address 10.64.64.64
--> primary DNS address 218.248.255.161
--> secondary DNS address 218.248.255.195
Voila, you now have successfully connected to the internet. Do not close the terminal window for the duration for which you plan to use the internet. In order to disconnect, simply exit the terminal.
Do, tell me about your Modem Adventures. These things sure are tricky and can lead to a "frustration reigns supreme" kind of a situation.