Results 1 to 1 of 1
Hey,
Got a new wireless internet connection from a new ISP that launched in SA. It works via CDMA2000 technology and uses a USB and not an Ethernet port to ...
- 09-03-2008 #1
Wireless USB conn script
Hey,
Got a new wireless internet connection from a new ISP that launched in SA. It works via CDMA2000 technology and uses a USB and not an Ethernet port to connect. I've managed to get it work on Ubuntu by following this:
My question, is there some program or script available that automatically reconnects and connects upon bootup?Steps are as follows (with sample explanation to follow):
* modprobe the usbserial driver directly for the device
* ppp dialer config
How to do it:
Plug in your modem, and then use the 'lsusb' command.
Code:
Here we get the USB vendor and product ID's (the first one, in this case).Code:user@linux:~$ lsusb Bus 002 Device 002: ID 1d09:4000 Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000
Now we load the 'usbserial' driver specifically for this device:
Code:
As you can see, we use the first segment of the ID number as the vendor, and the second segment as the product ID, both with 0x prepended.Code:user@linux:~$ sudo modprobe usbserial vendor=0x1d09 product=0x4000
Now, we check /dev to see that the devices are there:
Code:
Next step is to configure the ppp connection. Since this example is done on an Ubuntu installation, we can use the Debian pppconfig utilityCode:user@linux:~$ ls /dev/ttyU* /dev/ttyUSB0 /dev/ttyUSB1
Code:
In this utility, you enter the your username, password and the telephone number as needed, and then save the connection. Be sure to pick a descriptive name, as it is what you will be using to dial it up. Exit, and then we're ready to dial.Code:user@linux:~$ sudo pppconfig
Dialing on Ubuntu:
Where "neotel" is the connection name you picked in setup.Code:Code: user@linux:~$ sudo pon neotel
And that's it. At this point if nothing went wrong, you'll have a fully working ppp0 connection up.
Code:
Code:ifconfig | grep ppp0
If no, can someone help me with a script that will AT LEAST automatically connect upon booting my system?
Thanks in advance!


Reply With Quote
