Lampp/Xampp Stop/Start desktop launchers for Ubuntu

RootSudo – Community Ubuntu Documentation

Drag & Drop sudo

This is a trick from the this thread on the Ubuntu Forums.

Create a launcher with the following command:

gksudo “gnome-open %u”

When you drag and drop any file on this launcher (it’s useful to put it on the desktop or on a panel), it will be opened as root with its own associated application. This is helpful especially when you’re editing config files owned by root, since they will be opened as read only by default with gedit, etc.

I was looking for a way to get a desktop launcher to control xampp and had been unsuccessful with the bits I had found up to the above. Was able to modify these instructions and get the launchers to work as follows.

Create a desktop launcher (rightclick on the desktop and move down to create launcher), name it/them (I used Lampp Stop and Lampp Start on the two I made) then in the command line put

gksudo “/opt/lampp/lampp stop”

in the stop Lampp launcher and

gksudo “/opt/lampp/lampp start”

in the Start Lamp launcher. When you click on one you now get a dialog box for your password and then Lampp starts/stops without you having to go to a terminal window to get the job done.

I also changed the icons from the stock launcher icons and put links in the top panel to make it easier to access them when the desktop was covered. The icon I used for the start was one from /usr/share/icons/hicolor/scalable/apps/ and is called vinagre.svg. I then made a new one using Inkscape as Gimp doesn’t do .svg (scaled vector graphics) files with a red not symbol over the vinagre.svg and added not to the name and used it for the stop launcher. If you want a copy of vinagre-not.svg click here, and when the new window comes up right click on the picture that is displayed there and save it to your machine. Having to do it this way as WordPress doesn’t handle .svg files.

Questions? use the comments and I’ll try to answer. 😉

Advertisements

Tags: , , , , ,

4 Responses to “Lampp/Xampp Stop/Start desktop launchers for Ubuntu”

  1. vlado Says:

    tanks a lot. i was looking for this for a while

    Like

  2. kathy Says:

    Can’t seem to get this to work yet. http://localhost doesn’t load even after running the launcher. I miss the windows gui for windows Xampp… i’d love to see that come over to Linux.

    Like

    • depatty Says:

      What version of Ubuntu are you running. Don’t think I have checked these on 9.10 as my linux boxes are down right now. Have been working off of a iBook for the last couple of months. 😦 But am hoping to get the main box up and going this week so will check and make any necessary changes then.

      Like

  3. G Says:

    if you follow the steps above and use:
    gksudo “/opt/lampp/lampp panel”
    It gives a small graphical interface which allows you to start and stop xampp.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: