LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to change directories in console using an desktop icon? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-directories-in-console-using-an-desktop-icon-901681/)

M$ISBS 09-07-2011 06:19 PM

How to change directories in console using an desktop icon?
 
What I am looking to do is click on a desktop icon, and have a terminal open up, change directories to /etc/rc.d then sudo and be able to startup the internet daemon.

Sometimes I have to do that manually through console to start up the internet daemon and I thought there should be a way to automate the process.

I tried several experiments but could not get the console to activate or get sudo to work.

I am running Slackware 1337 and XFCE.

savona 09-07-2011 08:02 PM

Are you using gnome? Also I am not sure what you mean by the internet daemon.

You can write a small script in your home directory like so:

cd /etc/rc.d
sudo <command to open internet daemon>

save the file as go.sh (or whatever you want to call it)

Then create a new launcher on the desktop, select <run application in terminal> when creating the launcher and point it towards your script.


Done.

M$ISBS 09-08-2011 08:32 PM

I am using XFCE. What you described is similar to what I tried. I will try your suggestion. Thanks.


All times are GMT -5. The time now is 05:29 AM.