Usually there is a notion that Linux environment is not so user friendly than that of Windows. But here are some sorts of example that Linux is always a better environment to work with. Often we have to install some programs in order to get connected with Internet whether it may be through a USB modem or any piece of mobile. As before the Samsung, Nokia was the leading runners of cellular world, here is our concern to get connected with an easier way.
There is no need of any Nokia suite. In Linux you can connect internet with putting some lines in your terminal. But the first thing is to connect your PC with internet from any other source so that initially some small files can be downloaded. Here are the steps to be followed :
- Open Terminal and type sudo apt-get install wvdial
- Now after putting your password and instaallation completion you go thruogh the following commands sudo gedit /etc/wvdial.conf
Now replace existing text with the following :
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99#
Password = A
Username = B
Stupid Mode = 1
- Replace "A" & "B" from the above code your internet connection Password & Username. If there is no password necessary then leave the above code unchanged.
- Save & close the editor.
- Now plug in your data cable into your phone & run the following command from terminal each time you want to connect internet: : sudo wvdial
- Done! But if you fail to connect internet then do one of the following:
Unplug mobile cable, wait few seconds, plug again and run wvdial command
Or open /etc/wvdial.conf and replace Phone=*99# with Phone = *99***1#
No comments:
Post a Comment