Joined: 27 Jun 2013 Posts: 1774 Location: In The Way
Posted: Wed 04 Jun 2014, 18:17 Post subject:
desktop button Subject description: script or install zarfy!
make a script: use a text editor, first line should be #!/bin/sh
then then write your command on the next line. Make sure you press enter so that cursor goes too the next line. Then save you script /root/my-applications/bin/lds1-off.sh, next you wil need to make that script executable by right clicking on it and selecting 'properties', then select Exec Owner. Now you can type in a terminal lvds1-off.sh nd it will execute. You can then drag your script from /root/my-applications/bin to the desktop and a menu will open, choose make a symlink. Then right click on that symlink and choose set-icon. Drag an icon into the box and that's all there is to it. I think. There's probably an easier way to do it.
to automate it you'd need to make the script a daemon, ie run in the background monitoring the connection.
o automat at startup copy the scriipt into /root/startup/ and it should fire up each time X Graphical desktop restarts.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum