Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to make sudo remember my password and how to add an application to startup

I have lampp installed on my Ubuntu 12.04 Everything works very fine and now I would like to start the lampp-server on startup.

I have a script with this:

cd /opt/lampp
sudo ./lampp start

code in it. It is enabled for execution and when I run it in terminal I am asked for the password and finally it starts lampp.

Can I include the password in the script that it runs on startup?

Greetings philipp

share|improve this question

marked as duplicate by Nitin Venkatesh, Alvar, Marco Ceppi Aug 17 '12 at 20:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Your question is very much similar to How to make sudo remember my password and how to add an application to startup? – Nitin Venkatesh Aug 15 '12 at 10:01

You can edit the rc.local file to auto start lampp.

use root login and edit /etc/rc.local file and add line /opt/lampp/lampp start to end of the file.

Reboot the machine and you can check the status of the lampp using /opt/lampp/lampp status

Hope this helps you!

share|improve this answer
/etc/rc does not exist. Should I make it? – philipp Aug 15 '12 at 12:04
check etc/rc.local if you don't find it then please refer this link – devav2 Aug 15 '12 at 17:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.