PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-15-2009, 07:51 PM
acme64's Avatar
PPCGeeks Regular
Offline
Pocket PC: htc touch pro
Carrier: sprint
 
Join Date: Oct 2008
Posts: 78
Reputation: 15
acme64 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
tethering in linux

Anyone know how to tether in linux? (ubuntu specifically)
__________________
Reply With Quote
  #2 (permalink)  
Old 08-15-2009, 08:30 PM
Frankiedog's Avatar
Lurker
Offline
Pocket PC: touch pro
Carrier: sprint
 
Join Date: Nov 2007
Posts: 22
Reputation: 30
Frankiedog is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: tethering in linux

I would appreciate help on this too.
While the Ubuntu connection manager has settings for ad-hoc they never seem to work.
The only work around I have found is to use the command line to bring the wifi down and then up again in ad hoc mode which is not very convenient or user friendly.
Reply With Quote
  #3 (permalink)  
Old 08-15-2009, 08:34 PM
k_semler's Avatar
Regular 'Geeker
Offline
Pocket PC: HTC Fuze
Carrier: ATT
Location: Pullman WA USA
 
Join Date: Dec 2008
Posts: 387
Reputation: 440
k_semler is becoming a PPCGeeks regulark_semler is becoming a PPCGeeks regulark_semler is becoming a PPCGeeks regulark_semler is becoming a PPCGeeks regulark_semler is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to k_semler Send a message via MSN to k_semler Send a message via Yahoo to k_semler Send a message via Skype™ to k_semler
Re: tethering in linux

Quote:
HTC Pocket PC as a Rndis Modem (GPRS/EDGE/HSDPA)

Using HTC Diamond as a Rndis modem

Hi, after a small amount of investigation I have finally got the HTC Diamond working as a Rndis modem over the USB port.

What this means is that you can use the Internet connection sharing function of the Diamond to get a computer onto the Internet using the H or G phone data connection.

Please note that the first steps of this guide will work for any ACTIVESYNC connected HTC phone that has the Connection Sharing (it's in the Connection Manager on other HTC phones)

Obviously using data on your mobile costs money so be aware of this and make sure you have a package that has reasonable charges.

finally I have only tested this on an ORANGE HTC Diamond in the UK.

The reason you have to modify the source is that if you don't the rndis fails with an error like (this is seen in the /var/log/syslog)

Code:

[355.215268] rndis_host 5-3:1.0: dev can't take 1558 byte packets (max 1536)


you need a working internet connection to set this up

1. Install Pre-requisites
2. Get the Source
3. Modify the source (Diamond only)
4. Compile and make and install
5. Start the Internet Connection Sharing
6. Plug in the Phone (USB)


Once you have done steps 1-4 you will only ever need to do steps 5 & 6 to get re-connected.



Step 1 - Install Pre-requisites

open a terminal (use same terminal in next steps)

Code:

$ sudo apt-get install subversion

Step 2 - Get the Source

Code:

$ svn co http://synce.svn.sourceforge.net/svn...usb-rndis-lite
cd usb-rndis-lite/

Step 3 - Modify the source (Diamond only)

Code:

$ gedit rndis_host.c

on line 524, find this bit

Code:

if (tmp <>hard_mtu) {
dev_err(&intf->dev,
"dev can't take %u byte packets (max %u)\n",
dev->hard_mtu, tmp);
goto fail;
}

change it to this

Code:

if (tmp <>hard_mtu) {
dev_err(&intf->dev,
"dev can't take %u byte packets (max %u)\n",
dev->hard_mtu, tmp);
retval = -EINVAL;
/* goto fail;*/
}

save the file

Step 4 - Compile and make and install

Code:

$ make
$ sudo ./clean.sh
$ sudo make install

Step 5 - Start the Internet Connection Sharing

On OLD Tytn II's open Comm Manager on your phone and click on the Internet Sharing Now make sure USB is selected and choose connect

On Diamonds it's a seperate program called Internet Connection Sharing

Step 6 - Plug in the Phone (USB)

Plug the phone in, once the Phone has a data connection the Internet connection sharing will say connecting, then connected.

If this takes a while the dhcp may timeout and you will have to run the following command.

Code:

$ sudo dhclient

You should then see that you have an ip on the rndis device

Code:

$ ifconfig
This works for the TP, Diamond, and Kaiser phones.
__________________
Phone: Samsung Infuse
ROM: ★ GSInfuse 1.1.5 ★
Firmware:: 2.3.5
Baseband: UCKJ3
Kernel: 2.6.35.7 - I997RUXG3-CL366622 user@netbook #Infusion-GB-CoreA
Reply With Quote
This post has been thanked 1 times.
  #4 (permalink)  
Old 08-15-2009, 08:44 PM
acme64's Avatar
PPCGeeks Regular
Offline
Pocket PC: htc touch pro
Carrier: sprint
Threadstarter
 
Join Date: Oct 2008
Posts: 78
Reputation: 15
acme64 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: tethering in linux

thanks for the info, I plugged it in, turned on conneciton sharing, and it just worked..didn't even have to do anything. Next time ima try stuff before asking. lol
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 04:45 AM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com