View Single Post
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#11
Originally Posted by chrisp7 View Post
Im trying to set this up for my ipad. I find the wifi hotspot programmes really unreliable.

Im having a couple of issues with the installation. I have skipped steps 4.1 to 4.3 as Im assuming the DUP application on the ipad covers this?? However the issue is - I have created the script "bluetooth-pan.sh" ie saved the scriped in notepad and renamed it to bluetooth-pan.sh.
Copied it into the correct folder over SSH. Then in terminal at step 4.3.2 have typed in the code but nothing seems to happen, the same for 4.3.3. I have tried both in root and both not.
Do you have any idea what I could be doing wrong?

PS I have the latest power-kernel installed and bluetooth 'on'.
Your valuable suggestion pointed out what was missing from the procedures:

1) Install pc-connectivity-manager
2) The script cannot be created under notepad, it should be done directly under xterminal
3) Setup sudoers

For 1) I've installed pc-connectivity-manager long time ago, I didn't realize it may be essential to the bluetooth PAN. I added it back in procedure.

For 2) notepad would introduce some ^M characters in the transfer.

It doesn't matter. I've attached a tarball which contain the script bluetooth-pan.sh. You can download the tarball, put it under /home/user/, run the following command to extract it:

Code:
tar xvf bluetooth-pan.tar
then cat /home/user/bluetooth-pan.sh, you should see the content.

For 3) I found that sudoers might not by default having all the privilege granted to user. That's good, as it's more secure. Therefore, you might need to add the following files bluetooth-pan.sudoers under the /etc/sudoers/ (as root)

Code:
user ALL = NOPASSWD: /home/user/bluetooth-pan.sh
and then update the sudoers as root:
Code:
update-sudoers
I've also attached this file in the tarball.

The above has been updated in the procedures.

Thank you for your suggestion. Please let me know when you've further query.

Last edited by 9000; 2010-08-15 at 06:06.