Internet connection on Ubuntu via HTC Desire

Since I’ve got unlimited Internet connection on my phone, I was thinking how to use this feature.
I looked for connecting my laptop to Internet, using my HTC Desire phone.

Actually, it was quite simple task to do.
1. Connect you phone via USB to your Ubuntu powered computer.
2. Your phone should ask to select, which type of USB connection to use
Select USB tethering. If your phone doesn’t ask you automatically on USB cable connection, go to Settings -> Connect to PC -> Default connection type. Select there USB tethering as default connection behavior.

3. Connection manager will show the following information about available connections. Just select Auto usb0 and that’s it.

If you want to see how ifconfig output looks like, see the following:

$ ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:22:19:fe:37:37  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17 

eth1      Link encap:Ethernet  HWaddr 00:22:5f:d3:84:35  
          inet addr:192.168.1.69  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::222:5fff:fed3:8435/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14482 errors:0 dropped:0 overruns:0 frame:15733
          TX packets:9264 errors:17 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:18850851 (18.8 MB)  TX bytes:1197255 (1.1 MB)
          Interrupt:17 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:971 errors:0 dropped:0 overruns:0 frame:0
          TX packets:971 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3571103 (3.5 MB)  TX bytes:3571103 (3.5 MB)

usb0      Link encap:Ethernet  HWaddr d2:aa:b6:88:ac:ca  
          inet addr:192.168.42.23  Bcast:192.168.42.255  Mask:255.255.255.0
          inet6 addr: fe80::d0aa:b6ff:fe88:acca/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:422 errors:0 dropped:0 overruns:0 frame:0
          TX packets:934 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:154676 (154.6 KB)  TX bytes:229658 (229.6 KB)

Here you are, since that moment, you can use your Internet connection via HTC Desire. I think that similarly, you can connect any Android based phone to your computer.

1 comment

Leave a Reply

%d bloggers like this: