How can I connect HTC Touch mobile phone to my pc(Ubuntu)?

Hi,

I have a PC with Ubuntu on it, a HTC Touch mobile phone with Windows Mobile 6.1 on it.

My pc is connected to Internet, and I want to use this Internet connection on my phone.
i.e.:

Internet <-----> ADSL Modem <-----> PC(Ubuntu) <----> HTC Phone(WM6.1)

On my PC there are three network interfaces, (see code section for more info)
1)eth0 network interface between PC and ADSL modem
2)ppp0 ppp inteface between PC and ADSL mdoem(Internet)
3)eth1 network interface between PC and HTC Phone

Note: I know that i must share inetrnet connection but i don't know how to do it on ubuntu.

Thanks

eth0      Link encap:Ethernet  HWaddr 00:50:8d:82:89:66
          inet addr:192.168.1.50  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::250:8dff:fe82:8966/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1869839 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2071890 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:573059315 (573.0 MB)  TX bytes:209103952 (209.1 MB)
          Interrupt:21 Base address:0xee00
 
eth1      Link encap:Ethernet  HWaddr 80:00:60:0f:e8:00
          inet addr:169.254.2.2  Bcast:169.254.2.255  Mask:255.255.255.0
          inet6 addr: fe80::8200:60ff:fe0f:e800/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18 errors:10 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1438 (1.4 KB)  TX bytes:756 (756.0 B)
 
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:271655 errors:0 dropped:0 overruns:0 frame:0
          TX packets:271655 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:369703754 (369.7 MB)  TX bytes:369703754 (369.7 MB)
 
ppp0      Link encap:Point-to-Point Protocol
          inet addr:89.165.43.245  P-t-P:89.165.43.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:93 errors:0 dropped:0 overruns:0 frame:0
          TX packets:109 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:29353 (29.3 KB)  TX bytes:24257 (24.2 KB)

Open in new window

LVL 9
Hamed ZaghaghiProgrammerAsked:
Who is Participating?
 
Hamed ZaghaghiConnect With a Mentor ProgrammerAuthor Commented:
Hi,

I solved it,

i'm using this
sudo odccm -f --device-ip 169.254.2.1 --local-ip 169.254.2.2 --local-netmask 255.255.255.0

i read somwhere that new versions of odccm support DTPT(Desktop Pass-through), and now i can connect to internet via pc,  
note that "enable faster data syncronization" should checked, and these lines was added to /etc/network/interface:

auto eth1
iface eth1 inet dhcp

where eth1 is the name of network adapter of HTC

0
 
Hamed ZaghaghiProgrammerAuthor Commented:
I configure my PC using
https://help.ubuntu.com/community/Internet/ConnectionSharing

but i don't have access to change phone netwrok settings
0
 
sweetde23Commented:
What you're asking for will be a little time consuming.  I used the HTC 8125 before my G1, and still haven't put enough time to set up Outlook in VMWare (Ubuntu host) just to get the old contacts off the 8125.  Have you thought about buying a $25 wireless router for internet & $10 SDCard USB connector for file transfers?
0
 
Hamed ZaghaghiProgrammerAuthor Commented:
I knew that this question is a time consuming one, and thanks for your response, i can sync my HTC contacts with  odccm, synce-sync-engine and multisync in kubuntu 8.10.
you're right, a wireless router can solve internet connection problem, but i want to solve it as cheap as possible.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.