05-05-2015, 09:22 PM
(This post was last modified: 05-05-2015, 09:33 PM by LogicParrot.)
I'll list the 2 approaches, I'm assuming the Raspberry uses LXDE.
Approach 1, boot at desktop boot (assuming LXDE):
Note that all double-quotes are to be kept, the only thing you need to modify is the uppercase PATH TO THE MCSERVER EXECUTABLE
Approach 1, boot at desktop boot (assuming LXDE):
- Create a new file called:
Note that "MCServer" was just a picked named, you could have named it whatever you want, but it should end with .desktop.Code:/home/pi/.config/autostart/MCServer.desktop
- In that file, put the following:
Code:[Desktop Entry]
Type=Application
Name=MCServer autostart
Exec=xterm -e /bin/bash -c "PATH TO THE MCSERVER EXECUTABLE" - Done.
- edit /etc/rc.local, note that you must be root to edit that, possible commands that achieve this are sudo leafpad /etc/rc.local or sudo nano /etc/rc.local
- Put the following inside, just above the last line which is exit 0
Code:sudo -u pi -- "PATH TO THE MCSERVER EXECUTABLE" & disown
Note that all double-quotes are to be kept, the only thing you need to modify is the uppercase PATH TO THE MCSERVER EXECUTABLE