Linux USB Tethering Instructions for BlackJack II Using pppd, This post made from my i617UCGK2 Blackjack II Tethered via USB |
![]() ![]() |
Linux USB Tethering Instructions for BlackJack II Using pppd, This post made from my i617UCGK2 Blackjack II Tethered via USB |
|
Jun 3 2008, 21:09
Post
#1
|
||
|
Newbie Group: Posters Posts: 1 Joined: 3rd June 2008 Member No.: 394,716 Device(s): Blackjack II i617UCGK2 |
I have successfully configured my new Blackjack II (1617UCGK2) from ATT to work as a USB modem for my linux system.
Yes, I know that wvdial, or gnome-ppp or Your linux distro must have pppd installed. I can't think of any distro that doesn't come with this by default. However, if yours doesn't have it, installing software onto your system is beyond the scope of this document. Google is your friend. You will also need to have the kernel module called cdc-acm.ko built and installed. Again, this post is not going to teach you how to configure your kernel, build modules, or even how to download them. Go find yourself a good linux support group for that. I am also not here to teach you how to do basic filesystem management under linux. You should be able to edit, copy, move, rename, and such all on your own. Now on to the "meat" of this post: Create the following file, and add the content as seen in the code box below: /etc/ppp/peers/blackjack CODE /dev/ttyACM0 921600 debug noauth novj ipcp-accept-remote defaultroute usepeerdns user ISPDA@CINGULARGPRS.COM password CINGULAR1 crtscts lock remotename attws ipparam attws persist nodetach ipcp-max-configure 20 maxfail 0 connect '/usr/sbin/chat -v -V -t3 -f /etc/ppp/peers/blackjack-chat' Create the following file, and add the content of the code box below: /etc/ppp/peers/blackjack-chat CODE ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED '' AT+cfun=1 OK AT+cfun=1 OK AT+cgreg=1 OK AT TIMEOUT 40 OK ATQ0&F&D2&C1E1V1S0=0 OK AT+FCLASS=0 OK AT+IFC=2,2 OK 'AT+CGDCONT=1,"IP","WAP.CINGULAR"' OK ATD*99# CONNECT '\d\c' Once you have those two files created, with the content listed above, you're pretty much done. I found out that my /etc/resolv.conf was not getting updated properly, and DNS resolution was not working so I added the following two files to fix that issue: (If you don't have the DNS resolution issue, don't bother creating these two files.) /etc/ppp/ip-up CODE #!/bin/sh if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then rm -f /etc/ppp/resolv.prev if [ -f /etc/resolv.conf ]; then cp /etc/resolv.conf /etc/ppp/resolv.prev grep domain /etc/ppp/resolv.prev > /etc/resolv.conf grep search /etc/ppp/resolv.prev >> /etc/resolv.conf cat /etc/ppp/resolv.conf >> /etc/resolv.conf else cp /etc/ppp/resolv.conf /etc fi fi /etc/ppp/ip-down CODE #!/bin/sh if [ -n "$USEPEERDNS" -a -f /etc/ppp/resolv.conf ]; then if [ -f /etc/ppp/resolv.prev ]; then cp -f /etc/ppp/resolv.prev /etc/resolv.conf else rm -f /etc/resolv.conf fi fi I then made them executable with the following two commands: CODE chmod +x /etc/ppp/ip-up chmod +x /etc/ppp/ip-down Plug your phone in to a USB port on your system. The cdc-acm module should be loaded, and it should create a ttyACM0 device file in the /dev directory. To ensure the module is loaded, and the device node is there, use the following two commands: CODE lsmod | grep cdc_acm That command will show you if the module is loaded, CODE ls -lah /dev/ttyACM* That one will show you the device file if there is one. There is a slight possibility that you will have more than one ACM device showing there. If that is the case, I'll leave it up as an exercise for the reader to figure out exactly which one is your phone. However, I doubt you'll run into this problem. Once you know the device file was created properly, execute the following command to dial up: CODE pppd call blackjack Sit back, and enjoy your 3G network connection on Linux. P.S. One last piece of advice: If you can't seem to browse, but you can ping www.google.com, try configuring your browser to "auto-detect" the proxy configuration. That worked for me too... Have fun! Linuxchuck This post has been edited by linuxchuck: Jun 3 2008, 21:15 |
||
|
|
|||
|
Jun 4 2008, 01:56
Post
#2
|
||
|
Regular Group: Posters Posts: 76 Joined: 5th April 2008 Member No.: 375,386 Device(s): Blackjack II |
awesome thanks. Now if only my laptop had a battery that lasted for more than 5 minutes and this would really be useful
|
||
|
|
|||
![]() ![]() |
Similar Topics
| Topic | Replies | Topic Starter | Views | Last Action | |
|---|---|---|---|---|---|
![]() |
Themes fixed from different artists for MD2 (TouchFlo2D) |
1,413 | sector | 632,715 | Today, 19:16 Last post by: stylus1828 |
![]() |
800Mhz 3.7"AMOLED WVGA 5MP 480p 3.5mm Mini USB Dual LED |
177 | chokia | 14,363 | Today, 18:40 Last post by: lohtus |
![]() |
Moving from WinMo to Android? Try out the MoDaCo Windows Mobile SMS Migrator for Android | 16 | Paul | 1,475 | Today, 20:54 Last post by: dandv |
![]() |
Official Verizon Update for i910!!! | 26 | necosino | 2,287 | Today, 18:49 Last post by: necosino |
![]() |
Omnia with TouchFlo 3D / Iphone skins for omnia http://forum.xda-developers.com/showthread.php?t=508429 |
17 | jaya7 | 1,515 | Today, 17:40 Last post by: jaya7 |
![]() |
Linux on Samsung Omnia Testing other Linux distributions on Omnia |
9 | fladna9 | 705 | Today, 19:06 Last post by: stylus1828 |
|
Lo-Fi Version | Time is now: 4th July 2009 - 23:10 |
Please visit our 'Plus Partners' - these companies support MoDaCo through 'MoDaCo Plus' - Click Here for more details!
ActiveKitten |
Aiko Solutions |
Ateksoft |
Binaryfish |
Conduits |
DeveloperOne |
eSoft Interactive |
FTouchSL |
Inesoft |
Lingvosoft |
monocube |
Mykesoft |
OmegaOne |
Omnisoft |
Opera Software |
Resco |
SBSH |
Slipstream Solutions |
SPB Software House |
Splashdata |
Sprite Software |
Syncdata |
Teksoft |
VITO |
WalkingHotSpot |
WebIS |
z4soft
Would your company like to become a 'Plus Partner'? Click Here to contact us!