Monday, August 20, 2012

How to use USB modem in Ubuntu

Step 1 →

At first we need to know the product id and vendor id of our modem. To do this insert your modem in your Ubuntu PC. Now start terminal by pressing “Ctrl+Altr+T”. Now In the terminal type following code -

lsusb

Now hit enter. If it asks for password give your password.





















Now the terminal will show the devices connected to your PC. Look for your modem's name. You can see that my modem is “Bus 001 Device 010: ID 19d2:0039 ZTE WCDMA Technologies MSM”. Write down the details of your modem device in a paper, we will need it later.


Step 2 →
Now write the following code in the terminal.

gksu gedit /etc/udev/rules.d/15-zte-MF100.rules

At the end of the line you will have to write your modem's brand and model number. Such as my modem is ZTE MF100. So I have written 15-zte-MF100.rules. If your modem is Huawei e1550 then you will have to write 15-huawei-e1550. After writing the command properly hit enter. Give your password if it asks. Now a new window will open automatically



















In this new window write the following code.

"SUBSYSTEM=="usb",SYSFS{idProduct}=="your product
id",SYSFS{idVendor}=="your vendor id",RUN+="/lib
/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type
option-zerocd""


Now take out the piece of paper where you have written the details of your modem. My modem details is “Bus 001 Device 010: ID 19d2:0039 ZTE WCDMA Technologies MSM”. You can see that I have made bold “19d2” & “0039” . Because 0039 is the product id of my modem and 19d2 is the vendor id of my modem. So see your
product id and vendor id and write down in the paper. Now let's return to the code.



"SUBSYSTEM=="usb",SYSFS{idProduct}=="your product
id",SYSFS{idVendor}=="your vendor id",RUN+="/lib
/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type
option-zerocd""



Write your product id and vendor id instead of the words "your product id" and "your vendor id".

My vendor id is 19d2 and product id is 0039 so I'll write

"SUBSYSTEM=="usb",SYSFS{idProduct}=="0039",SYSFS{idVendor}=="19d2",RU
N+="/lib
/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type
option-zerocd""




















Save the file by clicking the Save button. Now close the text editor and terminal.

Step 3 →

Now click the button before your volume icon in the taskbar.




















You should see an option Mobile Broadband Connection select this option. Now select your country, service provider etc. After doing this step click the button again now you should see a connect option. Click on connect to get connected...




Written by Shovik Chowdhury
                      shovik_chowdhury@live.com
                      ghostofubuntu.blogspot.com
                       facebook.com/angelshovik
                       mob - 01839588369
                                   01768288955

Contact me if you have any problem.
                      

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.