Use the HTC TYTN2 Smartphone to connect to the Internet
My employer recently gave me a HTC TYTN2 Smartphone.
This smartphone is HSDPA/3G enabled so in theory it should be possible to surf the net with your laptop connected to this smartphone. This is the procedure that I used with Ubuntu 8.
Before you start make sure that your phone is NOT connected via the USB-cable to your laptop.
Install subversion
Now download the the source code, compile and install it.
cd synce
svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite/
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install
Create the config file.
sudo vi /etc/sysconfig/network/ifcfg-rndis0
Enter this in your editor (hit ‘i’ for Insert, Save with “:w”, Quit with “:q”) :
BROADCAST=”
ETHTOOL_OPTIONS=”
IPADDR=”
MTU=’1460′
MRU=’1500′
NAME=”
PEERDNS=no
NETMASK=”
NETWORK=”
REMOTE_IPADDR=”
STARTMODE=’hotplug’
USERCONTROL=’no’
_nm_name=’static-0′
Make sure that you have Internet Sharing activated on your smartphone. “Connect” to the Internet with your smartphone. Now connect the USB-cable to your laptop. Your dmesg should look something like this:
[ 1928.355691] usb 1-2: configuration #1 chosen from 1 choice
[ 1928.458104] usbcore: registered new interface driver cdc_ether
[ 1930.188534] rndis0: register ‘rndis_host’ at usb-0000:00:1d.0-2, RNDIS device (SynCE patched), 80:00:60:0f:e8:00
[ 1930.188564] usbcore: registered new interface driver rndis_host
[ 1930.228643] udev: renamed network interface rndis0 to eth4
You’ll notice the last name where it says “renamed network interface rndis0 to eth4″. The eth4 can vary on your system, it might be eth1, eth2 or something else but you should see a new interface.
Now try to get a DHCP lease from your phone.
You should get something like this :
DHCPOFFER of 192.168.0.102 from 192.168.0.1
DHCPREQUEST of 192.168.0.102 on eth4 to 255.255.255.255 port 67
DHCPACK of 192.168.0.102 from 192.168.0.1
bound to 192.168.0.102 — renewal in 125407 seconds.
That should be all.
Comment by beej — September 13, 2008 @ 04:05
woohoo! just what i was looking for. i can finally boot into ubuntu with my htc touch.
thanks so much for posting this. i tried searching through a few forums, but found you by googling. i’m definitely still a linux noob, but i’ll have more time to play around now that i can get on.
thanks again!
Comment by paco — October 19, 2008 @ 01:27
I can init connecting, but never cacth ip, and dhclient into in looping.
can you help me?