Tethering in Linux with HTC Desire
Tagged:  •    •    •  

Again, this is primarily a note-to-self. My normal internet connection is not always that stable, so I have to fallback to alternatives when things are suboptimal (massive packet loss up to 100%).

Before, I could use my Sony Ericsson C902 for tethering. With Bluetooth and a lot of PPP magic I barely understand, I was able to call my phone's modem and access the internet.

Fortunately, with an HTC Desire (and possibly with similar HTC devices), things are much easier. Connect your USB cable and select the network sharing mode on the phone. Then, on your Linux desktop:

ifconfig usb0 up
dhcpcd usb0

You need USB network drivers in your kernel. The stock Arch Linux kernel comes with this functionality, but you might want to check this with other distributions or self-compiled kernels.

Just connected HTC Desire to

Just connected HTC Desire to laptop (Ubuntu 9.10), via USB. On Desire, selected "Share phone's network with PC".

A few seconds later,

Try again... Just connected

Try again...

Just connected HTC Desire to laptop (Ubuntu 9.10), via USB. On Desire, selected "Share phone's network with PC".

A few seconds later, msg appeared on laptop screen "Auto USB Connection Established"

Looks like it's all automatic now. Thanks for the post though.