12.04
Before proceeding ahead, I would say that I used ultimate edition linux 3.4 64 bit-- this distro has all the library and dependencies for installing drivers( ia32-libs
, usb_modeswitch
).
The driver supplied with the dongle is a 32 bit driver. This successfully gets installed on a 64 bit Ubuntu if, and only if you have ia32-libs
installed.
I used this driver with Lubuntu 64 bit and got an error message when I ran the command:
usbdeviceswitchdlink
The error was /usr/bin/usbdeviceswitchdlink: command not found
.
The work around is simple. At the terminal (Ctrl+Alt+T) type this:
sudo su
And enter your password. Then type:
apt-get -y install ia32-libs
The above command will add 32 bit compatibility on 64 bit Ubuntu successfully. If you get an error message, run the command again.
Once successfully installed, proceed ahead and you shouldn't get any error messages once you have installed the 32 bit driver on your 64 bit Ubuntu.
In the terminal, type usb
then press Tab twice. If you don't see usb_modeswitch
, it means it is not installed - good, you don't need it. If yes (you see it), you need to uninstall usb_modeswitch
.
Step 1
- Type
sudo su
, and enter your password.
Then type:
mkdir /media/cdrom
mount /dev/srX /media/cdrom
Press Tab twice.
Note: the X
in /dev/srX
must be 1 or 2 - use accordingly.
Once mounted, press Alt+F2, and type nautilus
. You will see the cdrom mounted on the left. Click it.
A file dlinkusbmodem.deb
should be present. Double click it. Install it.
Step 2
After the installation is complete, type the following in the terminal:
usbdeviceswitchdlink
It will show command executed successfully.
Done!!
I'm using this dongle with Reliance netconnect 3G.
And here's the video.
Note
In case you are not able to mount the device (in Step 1), there is an alternative:
Connect the device to a Windows PC. (Do not install the Dlink.exe
. If already installed, uninstall it.) Then reconnect the device. It will show up as a USB storage device.
Browse it and copy the file dlinkusbmodem.deb
(our driver) to any storage device.
Go back to your Ubuntu and paste the file to your Desktop and install it by double clicking it. If it gives you errors, go to the terminal and type the following command:
cd ~/Desktop && sudo dpkg -i dlinkusbmodem.deb
The drivers should be installed. Now continue following the instructions in Step 2.
I tied it in crunchbang linux (a debian based Linux OS) but with no luck. I got an error regarding wrong architechture when I force install it! Strange, it works flawlessly on Ubuntu 12.04 64 bit and without the --force-architecture
parameter.
WARNING!!: Modem connection and disconnection regression- typical of usb 3g modems will occur if you run
sudo apt-get update
be WARY when you run the above command, as your modem might start getting disconnected when you enable the network!
If it occurs, reinstall the drivers after purging them fully. This effectually will solve the problem. Follow the above steps to install.
ALERT!:
Just want to bring to your attention:
If you insert your 3G SIM card in the dongle, you might get instant connection. After a certain period of time and usage, the dongle will get disconnected! I had taken a 3GB FRC pack for first usage. I spent a few days with this problem until I went to the showroom of my service provider where he stated: the data used up to 1GB is at the customers discretion. Once that data is used your connection cuts because your IMEI no. of the dongle goes in for verification (to check whether the device has a valid and not stolen IMEI). This procedure can take up to 3 days. After three, days I called the tech support of my service provider and they confirmed it will take another 2 days for the connection and the rest of the 2GB usage back. I continuously got "MODEM DISCONNECTED" error while using the 3G SIM card with this dongle. This is a typical problem most USB modems have and I thought it's the same thing...until I inserted my 2G SIM card and got the connection instantaneously! I had a 2G connection in my phone's SIM and I got a 18kB/s sustained download speed with this dongle. All problems solved.
Now, for the fun part:
Using the 3G connection using this dongle on my Lubuntu 12.04 netbook and connecting to my wireless TP-LINK N 300 router to get internet connection to all the computers on the network.
3G dwm 156 DONGLE -->> LUBUNTU NETBOOK -->> ETHERNET PORT OUT -->> CAT5/CAT6 CABLE -->> WAN PORT OF TP-LINK WIRELESS N ROUTER -->> GETTING INTERNET CONNECTION ON 4 ROUTER PORTS AND WIFI -->> getting connection on my desktop computer using D-link wifi dongle DWA 131.
Here is the procedure:
From my Lubuntu 12.04 netbook, enable 3G connection using dwm 156 and check internet connection.
Connect my ethernet port of my netbook to wan port of router.
Open network-manager on netbook.
Go to wired connection 1 (eth0) and press the edit button.
Go to IPv4 settings: enable- "shared to other computers".
Save.
Reboot the router and netbook.
Done!
NOW if you get connection-disconnected error do the following:
Open a terminal and type:
sudo su
And enter your password, then type:
killall dnsmasq
Done!
If need be, check your router's wan IP settings.
Now I'm sharing internet connection using D-link DWM 156 with 7 computers.
Type ctrl+alt+t
Then a terminal will appear.
Type
sudo mkdir /media/dlink
Then type
sudo mount /dev/sr1 or /dev/sr2 /media/dlink
There you will see a file called dlinkusbmodem.deb
After installing the package the thing you have to do is to type
usbdeviceswitchdlink
After doing that you will notice that the modem in unmounted.
Now type
3g_connect.sh ttyUSB0
Then wait for 120 seconds.
You'll see that before or after 120 seconds the internet is connected.
To check type
ping www.google.com
Best Answer
I am running the 157 on Mint 16 now, working fine, but the install not smooth: installed the .deb no problem, nothing happened though- no detection by network manager. Had to unplug eth0 and reboot- then Network manager detected it.
The documentaion for this device is close to non-existant, playing around I discovered a more elegant solution (but still not perfect):
The software installs a script: 3g_connect.sh
Run 3g_connect.sh form the terminal:
3g_connect.sh 003:010
ie the arguement to 3g_connect.sh is the BUS:DEVICE pair from you post:
Note: The 3g_connect.sh script should be run as root for it to work, but running it as a normal user did force Network manager to detect the dongle- and I could then use Network manager to manage it- which I prefer).
Hope this helps.