LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-24-2009, 12:40 AM   #1
ASTRAPI
Member
 
Registered: Feb 2007
Posts: 210

Rep: Reputation: 16
Question Create shortcut one for a program and one for a service


Hello

How can i create a shortcut in the desktop so i don't have to type those 2 commands always in the terminal?

command one:

Quote:
sudo /etc/init.d/wicd start
command two:

Quote:
sudo msnshadow
Thank you
 
Old 10-24-2009, 02:27 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

I'm going to start right off the bat by making a large amount of assumptions regarding your system. Primarily because you haven't included things like;
a. What Linux or UNIX distribution you're using.
b. What version of said distribution you're using.
c. The "Windows Manager" you're referring to when you say "Desktop".
d. If you are trying to setup an easy way to stop and start a service.
or
e. If you just need to make sure that service always runs at boot up.

In order to correct all of those issues, you'll need to visit this site, print it out, and put it somewhere handy. I know I had a large hard drive strung up to my copy back in "The Day" (which was before "The Start Button" came around).

Now, as for your question;

If you're running Fluxbox;
1. Pop open a terminal, then open ~/.fluxbox/menu in a text editor and add the following line somewhere near the top;
[exec] (XELEEMA_ROX) {sudo /etc/init.d/wicd start)
2. Right click to bring up your context menu, then select "Fluxbox Menu", followed by "Reload Config".
If you're running KDE 4.x;
Using your file manager, browse to the script/file/directory/whatever you want to create a shortcut to and right click on it.

Select something that sounds right, like maybe "Make a link" or "create a shortcut"
If you're running GNOME;
Using your file manager, browse to the script/file/directory/whatever you want to create a shortcut to and right click on it.

Select something that sounds right, like maybe "Make a link" or "create a shortcut"
If you running CDE on Solaris;
Go to blastwave.org, set it up, then install one of the aforementioned "Windows Manager". Seriously, no one uses CDE anymore.

If you have OpenWin on HP-UX, AIX, or Solaris;
Ping me back, I've been looking for an install disk that old.

If you have a "Start" button on your desktop, and your system is constantly asking you to "Allow" things;
Drag it out back and put it out if its misery.
If you see an image of a small TV in the center of your screen when you boot;
You have a mac, and might be in the wrong part of the Internet. Which is a large series of tubes.

Last edited by xeleema; 10-24-2009 at 02:44 AM.
 
Old 10-24-2009, 03:05 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
If you are running a Gnome, you can right click on desktop and choose Create Launcher. Type in the command. Click Ok.
 
Old 10-24-2009, 03:14 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Do you want to see any error messages the command may produce or are you OK with just running the commands?
 
  


Reply



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
Can't create a shortcut to my newest program Foundationstone ruguloo Linux - Desktop 0 07-25-2009 05:23 AM
how to create a send to shortcut nkd Linux - Desktop 2 10-24-2008 03:03 AM
how create a shortcut on the linux desktop for a executive program cy163 Linux - Newbie 2 12-10-2007 11:41 PM
How to create a shortcut? gmoney Linux - Software 3 10-08-2003 07:51 PM
create a shortcut/alias allelopath Linux - Software 6 04-01-2003 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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