Micromax 3g datacard MMX377G Installation in ubuntu, lubuntu, kubuntu, xubuntu ...
Installing usb modem in linux is quite difficult to new user like me in linux, I also got trouble to install usb modem driver in LUBUNTU. so searched over internet and get a good sollution...
here is the process
1. Pre-check before install the software
Insert the SIM card into the 3g dongle and plug the device into your computer or laptop USB Port.
Now check the plugged device using following command. Open your terminal (ctrl+T) and enter this command.
>ls /dev/sr* |
Above command must be return the all devices the SCSI-CDROM’s that
mounted on your machine. You may get the below result in your terminal
/dev/sr0
If you have more than one device connected you may see like below. To
confirm which one is correct device that linked with your dongle. We
need to unplug and execute the same command and see which device is
disappeared from previous list. Then re plug and execute the command,
now you can see that device back. Your current device maybe linked with
/dev/sr1 or /dev/sr2 or anything else.
/dev/sr0 /dev/sr1 /dev/sr3
There is another case also, when you run ls /dev/sr* comand you may
receive the following result. If you get this message, the software is
already installed. We will see unintallation step at last. If you are
not getting this message no problem go with step 2.
ls: cannot access /dev/sr*: No such file or directory
2. Mount the device.
Navigate to users Home directory in your terminal and enter the following command to mound the device.
>sudo mount /dev/sr0 /mnt |
It will prompt the password, after entering the password you should receive following message
mount: block device /dev/sr0 is write protected, mounting read-only.
Now you can check the result of mount by executing below command
>cd /mnt >ls |
Now you will see all the installation packages of the device. We can
notice see the two different package for 32-bit and 64-bit machine. We
need to install the package according to that.
32-bit = 3g_modem_connect_D301_MMX_i3386.deb
64-bit = 3g_modem_connect_D301_MMX_amd64.deb
3. Installation, Lets consider for 64-bit, enter the following command.
> sudo dpkg -i 3g_modem_connect_D301_MMX_amd64.deb |
When
Installation finished. Unplug your Micromax 3g Datacard from your
computer and re plug. Now it will connect to internet automatically, if
device lock and Pincode is disabled.
4. We can check the COM port using this command.
>ls /dev/tty* |
Now you can notice at the end of list with following
/dev/ttyUSB0
/dev/ttyUSB1
/dev/ttyUSB2
/dev/ttyUSB3
/dev/ttyUSB1
/dev/ttyUSB2
/dev/ttyUSB3
4. Connect to the Internet.
>sudo 3g_connect.sh ttyUSB0 |
When you enter this command, you will be getting connection progress, finally you will receive “pppd is connected” message.
Note
: If your device lock is enabled, it will ask device code. so we need
to enter the device code for further process. Default device code is
“1234″.
now check your internet connection
>ping www.google.com |
5. Disconnect from internet
>killall pppd |
Use this command to terminate the internet connection.
Uninstall Micromax 3g datacard software
To uninstall the previous installation enter the following.
>sudo dpkg -r 3g_modem_connect_D301_MMX_amd64.deb |
Hope this post will be very helpful when you lost your guide book or
away from it. Happy browsing using Micromax 3g datacard MMX377G.
source :http://code-cocktail.in/micromax-3g-datacard-mmx377g-installation-ubuntu/
and if you cant find any device in /dev/sr* (sr0,sr1...)
then follow this step...
Please remove the modem, wait for about 10 seconds. Then plug it back in
--> wait for about 1 minute --> run the following commands and
post back their outputs -
Code:
lsusb
dmesg | tail -20
lsmod
usb-devices | grep -iA14 -B4 2020
modprobe -c | grep -i 2020.*4010
..And, just to see if we can get the drivers located on the modem itself, please try this -
Code:
sudo sed -i '/^Disable/ s:0:1:' /etc/usb_modeswitch.conf
Now unplug --> replug the modem and re-check-
Code:
lsusb
Do you see the ID 2020:0002 device again (or anything other than
4010 with 2020)? If not, reboot and try again. Now? If yes, what does
this tell us -
Code:
ls /dev/sr*
PS:
The above change to the /etc/usb_modeswitch.conf file will disable the
modeswitching so that we can access the storage (virtual cd) part of the
modem. To be able to use it as a modem again, you will have to change
the value "1" back to "0" with -
Code:
sudo sed -i '/^Disable/ s:1:0:' /etc/usb_modeswitch.conf
However, I suggest you keep it to "1" until we can copy the driver
off its storage part. As soon as it is done, change it back to "0" with
above command (you can of course also edit it with your GUI text
editor, opening it as root).
source: http://ubuntuforums.org/showthread.php?t=2175420
No comments:
Post a Comment