![]() |
2010-08-15
, 10:55
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#12
|
![]() |
2010-08-15
, 14:52
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#13
|
The Following User Says Thank You to 9000 For This Useful Post: | ||
![]() |
2010-08-15
, 20:57
|
Posts: 515 |
Thanked: 193 times |
Joined on Oct 2009
|
#14
|
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:
then cat /home/user/bluetooth-pan.sh, you should see the content.Code:tar xvf bluetooth-pan.tar
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)
and then update the sudoers as root:Code:user ALL = NOPASSWD: /home/user/bluetooth-pan.sh
I've also attached this file in the tarball.Code:update-sudoers
The above has been updated in the procedures.
Thank you for your suggestion. Please let me know when you've further query.
![]() |
2010-08-15
, 23:28
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#15
|
root sudo /home/user/bluetooth-pan.sh
![]() |
2010-08-16
, 01:43
|
Posts: 45 |
Thanked: 3 times |
Joined on Jun 2010
|
#16
|
![]() |
2010-08-16
, 01:47
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#17
|
it doesn't work for mewhen I run the sudo /home/user/bluetooth-pan.sh nothing happens.
the first time I created the files in notepad, uploaded them in the right folders, chmoded them, updated the sudoers and it was the same... after that I used the files in the tar and made the same things .. restarted the device, still the same.
I must say from now that in settings, PC-Connectivity Manager is set on "None", should the "default" be enabled? what settings should I put in?
root sh /home/user/bluetooth-pan.sh
![]() |
2010-08-16
, 02:43
|
Posts: 45 |
Thanked: 3 times |
Joined on Jun 2010
|
#18
|
![]() |
2010-08-16
, 02:50
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#19
|
root apt-get install iptables
![]() |
2010-08-16
, 03:13
|
Posts: 45 |
Thanked: 3 times |
Joined on Jun 2010
|
#20
|
![]() |
Tags |
bluetooth-pan, tethering |
|
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:
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)
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.