This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to Start sudo command at loggin?

Tags: None
(comma "," separated)
wrender
Registered Member
Posts
108
Karma
1
OS
I want this command to run at startup.

sudo /usr/local/foundry/LicensingTools7.1/FoundryLicenseUtility -s start -t RLM


I have had no luck with the rc.local

Any help would be appreciated.


wrender, proud to be a member of KDE forums since 2008-Oct.
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS
wrender wrote:I want this command to run at startup.

When you mean "at startup" starting of KDE/Plasma session, then look at Autostart Manager
wrender
Registered Member
Posts
108
Karma
1
OS
I couldn't figure out how to get it to work that way...


wrender, proud to be a member of KDE forums since 2008-Oct.
wrender
Registered Member
Posts
108
Karma
1
OS
So It does work ...

I pointed it to the program then edited the command and told it to run in the terminal. The only problem is that it needs to be run as sudo. So when I log in a terminal pops up and asks for my password. How do I get it to just auto run as sudo without asking for my password?


wrender, proud to be a member of KDE forums since 2008-Oct.
User avatar
catweazel
Registered Member
Posts
15
Karma
0
The best way to do this is to create a systemd service.

Try this tutorial: https://forums.linuxmint.com/viewtopic.php?t=275464

Tip: You don't need to include the sudo command in your script.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]