Setting up a server
#21
BTW, the recommended installation method for Linux (x86, Raspi etc) is the easyinstall script

Code:
curl -s https://raw.githubusercontent.com/mc-server/MCServer/master/easyinstall.sh | sh

If you just paste it in it will download the latest version for your computer and extract it ready to use.
Reply
Thanks given by:
#22
Aw, what about the autoupdate script?
Reply
Thanks given by:
#23
That is a good way of doing it, but it's more complicated and most people just want the bare minimum setup.
Reply
Thanks given by:
#24
(05-05-2015, 09:22 PM)Safwat Wrote: 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

Normally I would set up a user for such a service e.g. user minecraft - Hence I will try with:

Code:
-u minecraft -- "/home/minecraft/MCServer/MCServer" & disown

correct me if I'm wrong here?
Reply
Thanks given by:
#25
(05-06-2015, 05:17 PM)denbertuz Wrote: correct me if I'm wrong here?
You're completely right.
Reply
Thanks given by:
#26
(05-06-2015, 02:28 AM)bearbin Wrote: BTW, the recommended installation method for Linux (x86, Raspi etc) is the easyinstall script

Code:
curl -s https://raw.githubusercontent.com/mc-server/MCServer/master/easyinstall.sh | sh

If you just paste it in it will download the latest version for your computer and extract it ready to use.

Hi Again,

I've flashed my SD card and made a clean install of OSMC (as daddy would like to use the PI as a media center) added user MINECRAFT - changed to this user and installed the MCServer via the suggested curl command - worked like a charm, but getting this error trying to run the server:

minecraft@osmc:~/MCServer$ ./MCServer
pure virtual method called
terminate called without an active exception
[11:31:58] D: | MCServer has encountered an error and needs to close
[11:31:58] --- Started Log ---

[11:31:58] MCServer Jenkins gcc armhf Release build id: #141
[11:31:58] Details | SIGABRT: Server self-terminated due to an internal fault
[11:31:58] from commit id: 18a268a961d1a9d93fda2e4c0b18f9296f7dd768 built at: Tue May 5 17:41:06 EDT 2015
[11:31:58] MCServer Jenkins gcc armhf Release build id: #141
[11:31:58] from commit id: 18a268a961d1a9d93fda2e4c0b18f9296f7dd768 built at: Tue May 5 17:41:06 EDT 2015
[11:31:58] Creating new server instance...
./MCServer(_Z15PrintStackTracev+0x14)[0x1b57dc]
./MCServer(_Z14NonCtrlHandleri+0x8c)[0x1ae5f4]
/lib/arm-linux-gnueabihf/libc.so.6(+0x26ac0)[0x76ce6ac0]
/lib/arm-linux-gnueabihf/libc.so.6(+0x178e6)[0x76cd78e6]
/lib/arm-linux-gnueabihf/libc.so.6(gsignal+0x25)[0x76ce5ec6]
/lib/arm-linux-gnueabihf/libc.so.6(abort+0xbd)[0x76ce6bce]
Afbrudt (SIGABRT)

Any one got a clue?
Reply
Thanks given by:
#27
I pray it isn't my commitTongue
Reply
Thanks given by:
#28
Will install a fresh Raspbian, upgrade from wheezy to Jessie and then make a clean MCServer setup and report back Smile
Reply
Thanks given by:
#29
This was reported by two different users, I opened an issue here.
Reply
Thanks given by:
#30
What's your libc version? Can you please run the following bash command and report the output?
Code:
ldd --version
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)