Posts: 721
Threads: 77
Joined: Apr 2014
Thanks: 113
Given 130 thank(s) in 91 post(s)
05-05-2015, 08:27 PM
(This post was last modified: 05-05-2015, 08:32 PM by LogicParrot.)
Direct ARMv6 (Raspberry-pi) download: http://builds.cuberite.org/job/MCServer%...Server.tar
The homepage, where you have a selection of downloads: http://mc-server.org/
You just need to extract the tar file and then run it, here's how to do that via console:
Code: tar -xvf MCServer.tar #Extract
cd MCServer #Go to the directory
./MCServer #Run
If you don't want the console: The raspberry Pi's desktop might allow you to extract via right clicking the tar and hitting extract, not sure about that though.
Posts: 16
Threads: 1
Joined: May 2015
Thanks: 1
Given 0 thank(s) in 0 post(s)
05-05-2015, 08:43 PM
(This post was last modified: 05-05-2015, 08:51 PM by denbertuz.)
(05-05-2015, 08:27 PM)Safwat Wrote: Direct ARMv6 (Raspberry-pi) download: http://builds.cuberite.org/job/MCServer%...Server.tar
The homepage, where you have a selection of downloads: http://mc-server.org/
You just need to extract the tar file and then run it, here's how to do that via console:
Code: tar -xvf MCServer.tar #Extract
cd MCServer #Go to the directory
./MCServer #Run
If you don't want the console: The raspberry Pi's desktop might allow you to extract via right clicking the tar and hitting extract, not sure about that though.
GREAT - You are my new personal minecraft herobrine
(05-05-2015, 08:27 PM)Safwat Wrote: tar -xvf MCServer.tar #Extract
cd MCServer #Go to the directory
./MCServer #Run
[/code]
If you don't want the console: The raspberry Pi's desktop might allow you to extract via right clicking the tar and hitting extract, not sure about that though.
Do you have a startup script - would like to ad it so it starts up when the PI is booting.
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
I moved this thread to MCServer Discussions
I appearantly forgot to move it earlier
Posts: 721
Threads: 77
Joined: Apr 2014
Thanks: 113
Given 130 thank(s) in 91 post(s)
05-05-2015, 09:11 PM
(This post was last modified: 05-05-2015, 09:12 PM by LogicParrot.)
(05-05-2015, 08:43 PM)denbertuz Wrote: GREAT - You are my new personal minecraft herobrine Wohoo
(05-05-2015, 08:43 PM)denbertuz Wrote: Do you have a startup script - would like to ad it so it starts up when the PI is booting.
Yes, this is possible. Do you want the server to run in a window after you log in to the desktop? or do you want it to keep running in the background regardless of whether you've logged in to the desktop or not? The second approach is more automatic; if the PI reboots, the server reboots. The first approach requires you to log in to the desktop before the server starts running, but it has a window, allowing you to input commands and such.
Posts: 721
Threads: 77
Joined: Apr 2014
Thanks: 113
Given 130 thank(s) in 91 post(s)
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): - 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
Posts: 16
Threads: 1
Joined: May 2015
Thanks: 1
Given 0 thank(s) in 0 post(s)
(05-05-2015, 09:11 PM)Safwat Wrote: Yes, this is possible. Do you want the server to run in a window after you log in to the desktop? or do you want it to keep running in the background regardless of whether you've logged in to the desktop or not? The second approach is more automatic; if the PI reboots, the server reboots. The first approach requires you to log in to the desktop before the server starts running, but it has a window, allowing you to input commands and such.
I'm a huge fan of headless debian, hence I prefer the "correct" second solution
Posts: 721
Threads: 77
Joined: Apr 2014
Thanks: 113
Given 130 thank(s) in 91 post(s)
05-05-2015, 09:32 PM
(This post was last modified: 05-05-2015, 09:37 PM by LogicParrot.)
Note that I fixed a command error in approach 2.
I accidentally deleted this remark: If you want to execute server commands / see the server console while using approach 2, there could be an Rcon plugin or something, but I'm not sure, the other devs know better.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1074 thank(s) in 852 post(s)
Actually RCON is built into MCServer itself, but is not enabled by default. You can find the settings in the settings.ini file. However, the preferred way to interact with the server is via the WebAdmin - that one has to be enabled as well through the webadmin.ini file which also defines the usernames and passwords for logging in.
Posts: 721
Threads: 77
Joined: Apr 2014
Thanks: 113
Given 130 thank(s) in 91 post(s)
I tried typing /destroyentities in the webchat but that did not work. Is it possible to call the commands that can be called from console?
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
05-05-2015, 11:40 PM
(This post was last modified: 05-05-2015, 11:42 PM by NiLSPACE.)
No, you can't use the console commands from the webchat.
EDIT:
We could however change the webchat command handlers to return a bool and a string. Then the webchat would show the returned string. That way we could simply bind the console commands to the webadmin.
|