Hi everyone, I'm a first time Kubuntu Forums poster, and a novice Kubuntu user (and I have to say that Microsoft need to watch out - I'm THIS close to saying goodbye to Windows permanently!)
Anyway, I digress. I have a few shell commands that I would like to create desktop shortcuts for. I know I can just open a terminal and run them there, but I'd like to create desktop shortcuts purely for convenience.
The commands are as follows:
Shutdown/Reboot:
sudo shutdown -h now
sudo reboot
Xampp (PHP/Apache Server):
sudo /opt/lampp/lampp start
sudo /opt/lampp/lampp stop
Now, the problem is, as you can see, that these commands need SUDO in order to run. I'm not TOO concerned about this for the Xampp commands, because Xampp is something I'm only planning to start if I need to use it, so I'm happy to create a shell script that runs these commands (and then prompts for a password each time. But how can I run shutdown and reboot commands without needing sudo? Is this even possible?
Anyway, I digress. I have a few shell commands that I would like to create desktop shortcuts for. I know I can just open a terminal and run them there, but I'd like to create desktop shortcuts purely for convenience.
The commands are as follows:
Shutdown/Reboot:
sudo shutdown -h now
sudo reboot
Xampp (PHP/Apache Server):
sudo /opt/lampp/lampp start
sudo /opt/lampp/lampp stop
Now, the problem is, as you can see, that these commands need SUDO in order to run. I'm not TOO concerned about this for the Xampp commands, because Xampp is something I'm only planning to start if I need to use it, so I'm happy to create a shell script that runs these commands (and then prompts for a password each time. But how can I run shutdown and reboot commands without needing sudo? Is this even possible?
Comment