Setting up a server
#15
I'll list the 2 approaches, I'm assuming the Raspberry uses LXDE.

Approach 1, boot at desktop boot (assuming LXDE):
  • Create a new file called:
    Code:
    /home/pi/.config/autostart/MCServer.desktop
    Note that "MCServer" was just a picked named, you could have named it whatever you want, but it should end with .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.
Approach 2, boot at system boot (but no interactive window)
  • 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
Reply
Thanks given by:


Messages In This Thread
Setting up a server - by Wildfire63010 - 11-20-2014, 03:57 AM
RE: Setting up a server - by nouseforname - 11-20-2014, 04:02 AM
RE: Setting up a server - by Wildfire63010 - 11-20-2014, 04:07 AM
RE: Setting up a server - by nouseforname - 11-20-2014, 04:09 AM
RE: Setting up a server - by Wildfire63010 - 11-20-2014, 04:18 AM
RE: Setting up a server - by nouseforname - 11-20-2014, 04:22 AM
RE: Setting up a server - by denbertuz - 05-05-2015, 07:26 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 08:01 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 08:19 PM
RE: Setting up a server - by denbertuz - 05-05-2015, 08:20 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 08:27 PM
RE: Setting up a server - by denbertuz - 05-05-2015, 08:43 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 09:11 PM
RE: Setting up a server - by denbertuz - 05-05-2015, 09:22 PM
RE: Setting up a server - by NiLSPACE - 05-05-2015, 08:54 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 09:22 PM
RE: Setting up a server - by denbertuz - 05-06-2015, 05:17 PM
RE: Setting up a server - by LogicParrot - 05-06-2015, 06:16 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 09:32 PM
RE: Setting up a server - by xoft - 05-05-2015, 09:45 PM
RE: Setting up a server - by LogicParrot - 05-05-2015, 11:13 PM
RE: Setting up a server - by NiLSPACE - 05-05-2015, 11:40 PM
RE: Setting up a server - by bearbin - 05-06-2015, 02:28 AM
RE: Setting up a server - by denbertuz - 05-06-2015, 07:36 PM
RE: Setting up a server - by tigerw - 05-06-2015, 03:39 AM
RE: Setting up a server - by bearbin - 05-06-2015, 04:00 AM
RE: Setting up a server - by LogicParrot - 05-06-2015, 08:51 PM
RE: Setting up a server - by denbertuz - 05-06-2015, 09:03 PM
RE: Setting up a server - by denbertuz - 05-11-2015, 06:20 PM
RE: Setting up a server - by LogicParrot - 05-09-2015, 09:57 PM
RE: Setting up a server - by LogicParrot - 05-09-2015, 10:43 PM
RE: Setting up a server - by Woazboat - 05-10-2015, 08:22 AM
RE: Setting up a server - by LogicParrot - 05-11-2015, 05:08 PM
RE: Setting up a server - by bearbin - 05-11-2015, 06:08 PM
RE: Setting up a server - by denbertuz - 05-11-2015, 06:35 PM
RE: Setting up a server - by xoft - 05-11-2015, 06:38 PM
RE: Setting up a server - by denbertuz - 05-11-2015, 06:45 PM
RE: Setting up a server - by Seadragon91 - 05-11-2015, 08:52 PM
RE: Setting up a server - by LogicParrot - 05-11-2015, 08:58 PM
RE: Setting up a server - by bearbin - 05-11-2015, 09:04 PM
RE: Setting up a server - by denbertuz - 05-12-2015, 01:43 AM
RE: Setting up a server - by LogicParrot - 05-12-2015, 02:23 AM
RE: Setting up a server - by Jammet - 05-14-2015, 09:20 PM
RE: Setting up a server - by NiLSPACE - 05-14-2015, 09:38 PM
RE: Setting up a server - by Jammet - 05-15-2015, 09:12 AM



Users browsing this thread: 13 Guest(s)