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
sudo apt-get install subversion
Now download the the source code, compile and install it.
mkdir synce
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 mkdir -p /etc/sysconfig/network/
sudo vi /etc/sysconfig/network/ifcfg-rndis0
Enter this in your editor (hit ‘i’ for Insert, Save with “:w”, Quit with “:q”) :
BOOTPROTO=’dhcp’
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.183361] usb 1-2: new full speed USB device using uhci_hcd and address 9
[ 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.
dhclient3 eth4
You should get something like this :
DHCPDISCOVER on eth4 to 255.255.255.255 port 67 interval 3
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.