
Unlike in Windows, where each of us plugging a device into computer, it always ask for device drivers to be able to recognize what we use, in Linux, generally all devices instantly recognized. We only need to configure it so that device will working. This is possible because Linux does't read the device itself but the chipsets used by the device.
Connection with Nokia 6585
When I use a Nokia 6585 Phone connected with the data cable DKU5, Ubuntu can instantly recognize it as a modem. To be able to connect to the internet, I use wvdial. Here's how:
Download Wdial
You can get it at http://ubuntuforums.org/showpost.php?p=7245790&postcount=8.
Extract the file and you will get four files that you must install all.
Configure wvdial.conf with this command in a terminal "sudo gedit /etc/wvdial.conf" (without quotation marks).
When Gedit opens, copy and paste this script.
[Dialer smart]Phone = # 777Username = smartPassword = smartNew PPPD = yesAuto DNS = 0Init1 = ATZE0Q0v1Init2 = ATE0Q0v1Init3 = atInit4 = at + crm = 1; + cmux = 1; + cps = 33; + CTA = 0Stupid mode = yesModem Type = Analog ModemISDN = 0Modem = /dev/ttyUSB0Baud = 230400Dial Command = ATDTFlowControl = CRTSCTSAsk Password = 0Mode = 1 SupidCompuServe = 1Idle Seconds = 300
Save and exit Gedit.
To connect to the internet just type this command in a terminal "sudo wvdial smart" (without quotes)
If it displays something like this,
-> WvDial: Internet dialer version 1.60-> Can not get information for serial port.-> Initializing modem.-> Sending: ATZATZOK-> Sending: ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0OK-> Modem initialized.-> Idle Seconds = 300, disabling automatic reconnect.-> Sending: ATDT # 777-> Waiting for carrier.ATDT # 777CONNECT 3100000-> Carrier detected. Starting PPP IMMEDIATELY.-> Starting pppd at Thu Jan 3 15:19:52 2010-> Pid of pppd: 2777-> Using interface ppp0-> Pppd:? U `@ l`-> Pppd:? U `@ l`-> Pppd:? U `@ l`-> Pppd:? U `@ l`-> Pppd:? U `@ l`-> Local IP address 10.11.149.207-> Pppd:? U `@ l`-> Remote IP address 10.17.4.12-> Pppd:? U `@ l`-> Primary DNS address 10.17.3.244-> Pppd:? U `@ l`-> Secondary DNS address 10.17.3.252-> Pppd:? U `@ l`
Some lines may vary, means the connection is already running and you can surf on the internet.
To end the connection just return to the terminal and press the button and C together
Conection with Haier CE 100 Modem
In order for the modem can be detected by Ubuntu, upgrade your kernel with kernel 2.6.33 or higher. If you have an older kernel, upgrade the kernel by downloading here :
http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33/linux-headers-2.6.33-020633-generic_2.6.33-020633_i386.debhttp://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.33/linux-image-2.6.33-020633-generic_2.6.33-020633_i386.deb
Do not forget to restart ubuntu after install this kernel and select the new kernel in the grub menu entry.
When this modem is plugged into the computer, it will first known as the usb-storage, thereby we must eject the drive mounted by linux to be recognized as a modem. You can right click and select eject or through the terminal with the command "eject /dev/sr1" or by clicking storage device icon in the right top panel.
In order to eject this usb storage automatically by ubuntu, please do the following steps:
Open a terminal and type the following command:
sudo gedit /etc/udev/rules.d/99-evdo-modem.rules
After Gedit was opened, copy and paste this script
SYSFS{idVendor} == "201e", SYSFS{idProduct} == "2009", RUN+ = "/usr/bin/ eject% k"
For the record, the IDproduct and IDvendor can be seen by running the command "sudo lsusb-v" in terminal and you will see a list of devices that we use, a modem that are recognized on the lines of "Bus 002 Device 002: ID 201e: 2009"
Save and exit Gedit and restart Ubuntu, USB storage now will not appear again, and it should recognized automatically as a mobile broadband device.
Fill in your username and password for conecting to the internet, and you now can connect from there by clicking the mobile broadband icon.
In addition, the connection can also be done via wvdial with this configuration on your wvdial.conf:
Auto DNS = onInit1 = ATZInit2 = ATQ0 V1 E1 S0 = 0 & C1 & D2 + FCLASS = 0Stupid Mode = yesModem Type = Analog ModemISDN = 0New PPPD = yesPhone = # 777Modem = / dev/ttyUSB0Username = smartPassword = smartBaud = 460800Dial Command = ATDTFlowControl = CRTSCTSAsk Password = 0Stupid Mode = 1CompuServe = 0Idle Seconds = 300
Other connections also could be established by Gnome PPP.
There was an option to detect the modem and configure connection with a GUI interface.
Priyess thanks to:
http://blankblondtank.wordpress.com/
http://beritaku.webkios.info/

3 comments:
Easy Earning money in online never been this easy and transparent. You would find great tips on how to make that dream amount every Day. Sitting in the home earn around $100 per day. So go ahead and click here for more details and open floodgates to your online income. All the best.
Thanks.
dapatkan komisi 50% dari setiap pemasang iklan di Iklan Promosi Online.
Nice Blog! Well most of your content and image is original and informative. /many thanks for sharing this, cheers.
Configure Internet Connection
Post a Comment