This question already has an answer here:
Basic Specs - Ubuntu 13.10, Gnome 3 (session fallback), Ambiance theme, Faenza icons.
I recently installed XAMPP, now everytime i want to use the program i have to run the
sudo /opt/lampp/lampp start command, im quite new at ubuntu but i know my way around some things and i knew i can make a shell script to start the program when i double click on it, so, i open nano in the terminal and write:
#!/bin/bash/ sudo /opt/lampp/lampp start
I save it as "lampp.sh" at my home dir and give it the proper permissions
chmod +x lampp.sh and
chmod +775 lampp.sh. When i double click on it absolutely nothing happens, in order for it to work i have to open a terminal and run the the script there
If i have to open the terminal each time i want to run the script then the script it self is worthless (specially when runing the
sudo /opt/lampp/lampp start is 1 line of code), is there anyway i can run it on double click?
Thanks in advance, i love this community.