Can't help you with the DHCP function, but to answer your other question:
1. Create a Desktop Config File (right-click on your desktop and select
Create New >
Link to Application...2. Click on the
Application tab and enter the relevant command in the
Command box, e.g.
- Code: Select all
sh /home/soloingbastard/<file name of shell script>
(assuming you've put the shell script in /home/soloingbastard, of course)
3. Click on
Advance Options and then
Run as a different user and enter "root" (without the quotes) in the
Username box
4. I would also optionally tick
Run in terminal and
Enable launch feedback5. Click on the icon on the
General tab and select an icon you like
The above would prompt you to enter the root password when you double-click on the icon on the desktop. Alternatively, you could type "sudo" before the rest of the command in the
Command box and not tick
Run as a different user, and you would then be prompted to enter your password as you would if you had typed "sudo" interactively.