PalmBluetoothHowto

Differences between revisions 3 and 4
Revision 3 as of 2005-12-30 23:37:19
Size: 3722
Editor: S010600131016cf6f
Comment: add cats
Revision 4 as of 2006-01-20 05:00:27
Size: 3974
Editor: 68-188-77-63
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
gedit /etc/bluetooth/hcid.conf sudo gedit /etc/bluetooth/hcid.conf
Line 20: Line 20:
gedit /etc/bluetooth/pin sudo gedit /etc/bluetooth/pin
Line 65: Line 65:
 1.#9 Now go to your Palm, click on Bluetooth, select your bluetooth connection, click on Connect, and watch how the terminal (the one in which you're running dund) starts to output messages, among them the assignation of DNS addresses  1.#9 Now go to your Palm, click on Bluetooth, select your bluetooth connection, click on Connect, and watch how the terminal (the one in which you're running dund) starts to output messages, among them the assignation of DNS addresses.
Line 67: Line 67:
http://www.mergic.com/vpnDownloads.php in order to ping from your palm to your DNS machine and to google, this will verify Internet connectivity http://www.mergic.com/vpnDownloads.php in order to ping from your palm to your DNS machine and to google, this will verify Internet connectivity.
(If you are using a Treo 650, you can refer to http://www.newt.com/debian/treo650.html for information on how to set up a bluetooth connection and connect with it. Follow the sections "Create a new connection" and "Create a new network".)

Palm Bluetooth HowTo

Share your internet connection with your palm via bluetooth - 10 EASY steps

This page is going to explain you how to connect your PalmOs device to your (K)Ubuntu via bluetooth, and share your Internet connection. The following things are important:

  • I assume you already know how to activate bluetooth on your Palm, and how to setup a connection. You might want to read this page http://howto.pilot-link.org/bluesync/e.html in order to verify that your Palm is correctly setup

  • Palm devices come with a software that lets you syncrhonize your Outlook Inbox with your VersaMail account. Neath right? But what if you use Linux? You need to setup Evolution, Kmail, Thunderbird... in order to leave your messages in the server. That way you'll be able to check your emails in your favorite email client and in your Palm.

Just follow these steps:

  1. sudo gedit /etc/bluetooth/hcid.conf

search for 'name "%h-%d"' in line 37 and change it to whatever you like example: name "ubuntu"; In line 17 make sure that 'security' is set to 'auto' In line 64 and 65 make sure that 'auth enable' and 'encrypt enable' are commented save the document and close

  1. sudo gedit /etc/bluetooth/pin

change '1234' by a new password, save and close

sudo nano /proc/sys/net/ipv4/ip_forward

replace 0 by 1 and save (CTRL+X, then press 'Y', press Enter)

  1. sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  2. sudo iptables -A FORWARD -i ppp0 -j ACCEPT
  3. sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
  4. Now let's create a new file for your ppp connection between your Palm and your PC. Save this file after editing

cat /etc/resolv.conf

find out your current DNS, make sure to enter the correct values instead of ms-dns 192.168.0.1

sudo gedit /etc/ppp/peers/palm

115200

192.168.2.1:192.168.2.2

local

ms-dns 192.168.0.1

noauth

debug

  1. dund --nodetach --listen --persist --msdun call palm

this will keep a non-daemonized version of dund running, listeing to your connections. Watch how it reports info once you connect your palm with it

  1. Now go to your Palm, click on Bluetooth, select your bluetooth connection, click on Connect, and watch how the terminal (the one in which you're running dund) starts to output messages, among them the assignation of DNS addresses.

You might want to download Mergic Ping at this URL: http://www.mergic.com/vpnDownloads.php in order to ping from your palm to your DNS machine and to google, this will verify Internet connectivity. (If you are using a Treo 650, you can refer to http://www.newt.com/debian/treo650.html for information on how to set up a bluetooth connection and connect with it. Follow the sections "Create a new connection" and "Create a new network".)

  1. You might want to create a new shell script and let it run automatically every time Ubuntu starts. That way all you'll have to do in order to share your internet connection with your palm will be to click on the 'Connect' bluetooth icon of your handheld

sudo gedit /etc/init.d/start_bluetooth.sh

#!/bin/bash

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

iptables -A FORWARD -i ppp0 -j ACCEPT

iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

killall -v dund

dund --listen --persist --msdun call palm

  • . Now let's make your new start_bluetooth.sh script load every time the system boots

sudo chmod -v 755 /etc/init.d/start_bluetooth.sh

sudo ln -sv /etc/init.d/start_bluetooth.sh /etc/rc2.d/S98start_bluetooth

If you downloaded Mergic Ping, you can ping your google, and your DNS server in order to verify connectivity. Enjoy!

CategoryDocumentation CategoryCleanup

PalmBluetoothHowto (last edited 2008-08-06 16:21:42 by localhost)