Welcome, Guest
Username: Password: Remember me
25 Jul 2018
Glad to announce of release of INDI Library v1.7.4 on 2018-07-25. A few drivers were added in this release as we continue to improve & stabilize existing drivers.
Read More...
  • Page:
  • 1

TOPIC: Startup Script to bind Bluetooth

Startup Script to bind Bluetooth 8 months 2 weeks ago #22964

  • HelgeMK
  • HelgeMK's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 227
  • Karma: 1
  • Thank you received: 17
Hi.
I have created a desktop launcher to a) bind to the bluetooth adapter and b) to start Kstars in one go. When initiating the script manually in the terminal (just enterting the name), I can verify that binding took place (running ls -al /dev/rfcomm0). When initiating the script via clicking on desktop icon, this is not working. I think it must have to do with "sudo", so I added a line using "visudo", but that did not help, i.e.

"astroberry ALL= NOPASSWD: /usr/local/sbin/startup"

This my script (path /usr/local/sbin/startup), for which I run "sudo chmod +x startup":

#!/bin/bash

sudo rfcomm bind hci0 20:17:09:18:52:58 1
sleep 10
sudo chown astroberry /dev/rfcomm0
kstars

Under path astroberry/Desktop/Startup, I have placed a file as follows:

[Desktop Entry]
version=0.1
Name=Startup
Comment=Bluetooth
Exec=/usr/local/sbin/startup
Icon=/home/astroberry/Pictures/Gold_Telescope.png
Terminal=false
Type=Application
Categories=Utility; Application;

Any ideas really appreciated!

Best, Helge

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.061 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica