Here am I again after successfully installing Ubuntu MATE 14.04 with the help of AskUbuntu (thanks a bunch!)
What am I trying to achieve now is the following:
- Launch a Terminal with root privileges at startup
- Change the working directory to Desktop
- Execute Jar file with the "java -jar filename.jar" command
What is the easiest way to do this, preferably without installing any third parties?
EDIT: I am not only looking how to run a script at startup, but also launching a command line and executing a command.
java -jar /full/path/to/filename.jar
before the lineexit 0
of/etc/rc.local
, it will do the job for you..why would you want to all these when what are you trying to do could be easily achievable.. – heemayl May 11 '15 at 19:57