I'm a little bit noob. I can run a program in terminal with;
but I don't know how to create a shortcut that starts it with root privileges (They are installed in /opt so it needs root)
ALL of the default programs which come preinstalled with Ubuntu or which can be installed from repositories are "installed as root" in system directories, yet you do not need to superuser privileges to run them.
You're confusing the permissions necessary to read/execute a program with permissions necessary to override or delete the file. The program file may be owned by
This is an important security measure and running with super-user privileges should be reserved only for a small set of trusted applications which actually require this (i.e. the ones which make change to system configuration (Software Center and Update Manager) or directly access hardware devices (gparted).
Eclipse does not require root privileges regardless of whether it is installed in
Usually the easiest way is just making a shell script. What ever command you use to launch eclipse use the same.
You probably want to use "gksudo" and then your command which looks like
Then put that in a regular file with a .sh extension. Right click the file and add execution permissions. You can also use chmod +x filename.sh
Here is a good tutorial to get you the basics of bash scripts. Its really easy and powerful.
I haven't tried launching eclipse from the command line, but I believe it is built with java. If that is the case you might also need to specify java -jar in there some where, but I'm not sure.
Hope this helps.