LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-17-2007, 08:37 PM   #1
archive
LQ Newbie
 
Registered: Mar 2007
Location: EU (GR)
Distribution: Mandriva 2007, Ubuntu 6.10
Posts: 15

Rep: Reputation: 0
simple commands automation


Hi again people!

So I just installed xampp 1.6 on my ubuntu system to finally get working in linux.

When i need to start lamp i type:

sudo /opt/lampp/lampp start

Working! Got that.

How can I keep this command in a file which I double-click and have it running?

The same holds for phpmyadmin (i guess this can easily be solved by bookmarking the phpmyadmin page..)

Last edited by archive; 04-17-2007 at 08:40 PM.
 
Old 04-18-2007, 10:03 AM   #2
drewbug01
Member
 
Registered: Aug 2006
Location: Detroit!
Distribution: Ubuntu 7.04
Posts: 182

Rep: Reputation: 30
a simple shell script should do that just fine. open a text editor (like gedit, NOT Abiword or OpenOffice) and type
Code:
#!/bin/bash
gksudo /home/username/lampstart2.sh
now save that as lampstart.sh , and save it under /home/username/

open a terminal, and type
Code:
sudo chmod +x /home/username/lampstart.sh
open a text editor again, and type
Code:
#!/bin/bash
/opt/lampp/lampp start
save it as lampstart2.sh , and put it in /home/username/

open a terminal, and type
Code:
sudo chmod +x /home/username/lampstart2.sh
now just create a shortcut to /home/username/lampstart.sh on your desktop. right click it, and select properties, and somewhere there should be a box titled "enable to run as a program". check that, and close the properties box. now, double click on that icon, and if a password box pops up, then we're doing good. check to see if lamp is running. if not, we'll try something different.

--drew
 
Old 04-19-2007, 05:59 AM   #3
archive
LQ Newbie
 
Registered: Mar 2007
Location: EU (GR)
Distribution: Mandriva 2007, Ubuntu 6.10
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks a lot drew!

Your directions were clear and working...
 
Old 04-20-2007, 04:17 PM   #4
drewbug01
Member
 
Registered: Aug 2006
Location: Detroit!
Distribution: Ubuntu 7.04
Posts: 182

Rep: Reputation: 30
awesome! have fun!
 
  


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
Robot for automation threepwood Linux - Software 1 12-22-2006 09:34 AM
automation bong.mau Programming 2 09-06-2005 03:26 PM
Cdogg Automation goofyheadedpunk Linux - General 1 01-03-2005 06:56 PM
Mouse automation? Viper168 Linux - Software 6 11-11-2003 09:19 AM
Dma siple questions ? banana2 Linux - Software 2 03-29-2003 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:35 PM.

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