Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-07-2011, 07:19 PM   #1
Registered: Aug 2003
Posts: 834

Rep: Reputation: 30
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.
Old 09-07-2011, 09:02 PM   #2
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 195

Rep: Reputation: 50
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 (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.

Old 09-08-2011, 09:32 PM   #3
Registered: Aug 2003
Posts: 834

Original Poster
Rep: Reputation: 30
I am using XFCE. What you described is similar to what I tried. I will try your suggestion. Thanks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to change icon on Desktop folder in KDE george-lappies Slackware 4 07-04-2011 08:40 AM
How to change desktop icon on XFCE? phys Slackware 1 02-22-2009 05:43 PM
Gnome - Change icon text position on desktop ma1069 Linux - Desktop 3 03-06-2008 05:25 AM
How can I change the icon of a desktop shortcut nightrider Linux - Newbie 1 06-15-2006 08:30 PM
change font in gmc icon desktop rainman Linux - Software 0 04-22-2001 01:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration