OESF Portables Forum

Everything Else => Desktop Operating Systems Issues => Zaurus General Forums => Archived Forums => Mac Issues => Topic started by: icruise on September 18, 2005, 06:13:16 am

Title: Sharing Mac's Internet Connection Via Bluetooth?
Post by: icruise on September 18, 2005, 06:13:16 am
I have some applescripts that will allow me to share my Mac's internet connection via bluetooth (basically rerouting the Airport or Ethernet connection so that it can also be used with a bluetooth device). This works fine with my Palm. I set up a bluetooth connection as detailed on this page (http://stevenf.com/mt/archives/2003/08/internet_sharin.php) and it works fine. (I have attached the scripts to this post because the web site that originally created them is apparently no longer around).

What I want to know is, how can I connect to my Mac using my Zaurus to surf the Internet via Bluetooth in the same way? I've gotten part of the way. Using the instructions from the OESF Bluetooth How-To (https://www.oesf.org/index.php?title=Bluetooth) I was able to set up a connection to the Mac, but I'm not sure what to put in the file under /etc/ppp/peers. Does anyone know what the format for this file needs to be? After some playing with the addresses at the bottom of the file, I can make an apparently successful connection to the Mac, but when I try to use the Internet, it doesn't seem to be able to use the DNS server, and so can't actually access anything. I also can't ping anything on the network, including the Mac, so I'm not sure if I'm even connecting properly. Any ideas?
Title: Sharing Mac's Internet Connection Via Bluetooth?
Post by: icruise on September 27, 2005, 06:30:15 am
Well, it turns out that all I had to do was use the sample Linux script from etc/ppp/peers/ and delete the IP addresses from the bottom.
Title: Sharing Mac's Internet Connection Via Bluetooth?
Post by: bam on March 04, 2008, 09:51:27 pm
well been mulling this over for a bit, got a ppp connection going,
on the mac:
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
   inet 10.189.66.36 --> 10.0.1.201 netmask 0xfffffe00
on the z:
ppp0
inet addr: 10.0.0.201 P-t-P:10.189.66.36

yet can't ping google, any idea's will be much appreciated.

this is the script for the mac:
do shell script "sudo /usr/sbin/pppd /dev/tty.Bluetooth-PDA-Sync 115200 noauth local passive proxyarp asyncmap 0 silent persist :10.0.1.201 &" with administrator privileges
do shell script "sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=1"
do shell script "sudo ifconfig ppp0 up"


and I am using the BT-GMRS script in /etc/ppp/peers/


Almost there I think....
Title: Sharing Mac's Internet Connection Via Bluetooth?
Post by: dhns on March 05, 2008, 02:36:43 am
Quote from: bam
well been mulling this over for a bit, got a ppp connection going,
on the mac:
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
   inet 10.189.66.36 --> 10.0.1.201 netmask 0xfffffe00
on the z:
ppp0
inet addr: 10.0.0.201 P-t-P:10.189.66.36

yet can't ping google, any idea's will be much appreciated.

this is the script for the mac:
do shell script "sudo /usr/sbin/pppd /dev/tty.Bluetooth-PDA-Sync 115200 noauth local passive proxyarp asyncmap 0 silent persist :10.0.1.201 &" with administrator privileges
do shell script "sudo /usr/sbin/sysctl -w net.inet.ip.forwarding=1"
do shell script "sudo ifconfig ppp0 up"


and I am using the BT-GMRS script in /etc/ppp/peers/


Almost there I think....
It is almost the same as http://wiki.openmoko.org/wiki/MacOS_X#Maki...th_Access_Point (http://wiki.openmoko.org/wiki/MacOS_X#Making_the_Mac_a_PPP_over_Bluetooth_Access_Point) - which is also "almost there" but does not really work...

-- hns
Title: Sharing Mac's Internet Connection Via Bluetooth?
Post by: bam on March 06, 2008, 08:13:24 pm
lol, this must be similiar to almost beating your head against the wall, but still feeling the pain......perhaps another distro will help...