How do I run a GUI app in Ubuntu linux with sudo and do no prompt the user to enter password?
I have run.command in application directory and myapp.desktop on desktop but I don't know how to make it run with admin rights.
When I double click myapp.desktop it runs but no admin rights. Without admin rights, my app cannot work with serial ports.
I need to start a script and a binary file from /usr/bin at startup with sudo/root privileges. I've tried many guides from this forum but nothing worked (rc.local and systemd style, Upstart) - mayb...
Doing sudo without password seems to be a sledgehammer approach to your issue. I would first try to give the user rights to the serial port(s), see https://www.b4x.com/android/forum/threads/serial-in-linux.84714/post-536563 . Note: You may need to research the proper group to add the user to for your distro.
I need to start a script and a binary file from /usr/bin at startup with sudo/root privileges. I've tried many guides from this forum but nothing worked (rc.local and systemd style, Upstart) - mayb...
Doing sudo without password seems to be a sledgehammer approach to your issue. I would first try to give the user rights to the serial port(s), see https://www.b4x.com/android/forum/threads/serial-in-linux.84714/post-536563 . Note: You may need to research the proper group to add the user to for your distro.