Update - The Pi 3 takes it up a step and provides more stability and connectivity is a lot easier.
I tried both the vanilla server and a spigot server, both similar results, both performed reasonably well, but Spigot seemed a little more stable (but this is only based on feeling). I was only able to test with up to 3 players but it worked well under those conditions.
Setting up your own server is pretty simple.
You will need to download either the vanilla server from Mojang or build your own spigot server jar file.
Note - The instructions below, will take you through how to create a vanilla server, if you have built spigot the only difference will be the name of the 'jar file' you put into the start.sh file
1. Make a directory for your Minecraft server
mkdir ~/MinecraftServer
cd ~/MinecraftServer
2. Download the 1.8.1 vanilla Minecraft server jar file
wget https://s3.amazonaws.com/Minecraft.Download/versions/1.8.1/minecraft_server.1.8.1.jar
3. Create a script to run the server jar file
nano start.sh
Enter the following command which will run the server
java -Xmx1024M -Xms512M -jar minecraft_server.1.8.1.jar nogui
Ctrl X to exit & save
4. Make the script executable:
chmod +x start.sh
5. Run the server
./start.sh
You should receive a message asking you to accept the EULA.
6. Accept the EULA (end user license agreement), open eula.txt
nano eula.txt
Change:
eula=false
To:
eula=true
Ctrl X to save and exit
7. Run the server
./start.sh
The first time the server runs it will take a while to start as it creates a new world.
Once you see the word "Done", the server is up and running and you should be able to connect to the server using Minecraft choosing Multiplayer, Direct Connect and entering the IP address of the Pi.
You can shutdown the server by typing the command "stop" in the command window .
If you find the server is slow, particularly when generating chunks (i.e. creating new bits of the world when you get to the edge), you could try reducing the view distance. I reduced it from 10 to 7 and this seemed to make the server more responsive.
8. Edit view-distance in server.properties
nano server.properties
Change:
view-distance=10
To:
view-distance=7
Ctrl X to save and exit
Restart the server for the change to take effect.
If you find the server is slow, particularly when generating chunks (i.e. creating new bits of the world when you get to the edge), you could try reducing the view distance. I reduced it from 10 to 7 and this seemed to make the server more responsive.
8. Edit view-distance in server.properties
nano server.properties
Change:
view-distance=10
To:
view-distance=7
Ctrl X to save and exit
Restart the server for the change to take effect.
Excellent! Did you overclock/overvolt at all?
ReplyDeleteNo, that was on a 'normal' Pi2
DeleteGot it running ... couple things. I was running Apache, PHP, MySQL and PostSwitch on it ... it would load up, and run for a few minutes, but as I started walking around the server kept falling behind and would eventually crash.
DeleteAt first it was doing it regularly, so I Overclocked it - roughly the same effect. Then I changed the memory swap ... all the way down to 16 for GNU - this died quick ...then all the way up to 256.
at 256 it lasted about 5 minutes longer. I think a fresh install will be my next test, and ONLY running Minecraft.
I'll update with results
I tried using the vanilla server on my B+ but it was super slow to start up and crashed when I went on it. I then disabled a lot of extras like animals, mobs, and villages in the server.properties file. I also overclocked my Pi to "turbo." Even then, it crashed after about a minute. I wasn't running anything else at the time. The only other thing I have installed is the tightvncserver. What could I try to make the server work?
DeleteI have previous run a Minecraft server on a Raspberry Pi 1 (not the 2 which this post is about) http://www.stuffaboutcode.com/2013/09/raspberry-pi-setup-minecraft-server.html using Spigot.
DeleteI had to change the memory config and turn the view distance down considerably to make it stable.
in the terminal:
Deletesudo nano /etc/rc.local
then add:
bash /home/minecraft-start.sh
^ change that to whatever your sh file's path & name is
What distribution did you use?
ReplyDeleteWhat OS on the Raspberry Pi? Raspbian.
DeleteDid you use the standard .cfg file? I have tried this but the server lags and eventually crashes.
DeleteThe only thing I did was change the view distance from 10 to 7. Ill update the post with a how-to
DeleteI would also recommend trying the spigot build, it does tend to be perform better than the vanilla build but in my limited tested I didnt really notice a big difference.
DeleteThanks, i used a view distance of 5 and allowed flight but if i flew to far and to fast it crashed. I did try the spigot build but ran into difficulties. I followed your link and eventually it seemed to of built but going to the spigot folder shows no .jar files
DeleteYou can also use MCServer. It's a C++ Minecraft server. We managed to get around 7 players with the previous Pi (although we did disable some things like entities, water/lava physics and redstone).
ReplyDeleteI'm running MCServer too now, and even though it is not feature complete, it is MUCH more performant, and runs without a hitch. Download, untar, run, works. Seriously, this one is awesome!
DeleteThanks for trying :) We put a lot of free time and effort in the project, but it's hard to keep up with vanilla, so we're still looking for more developers.
DeleteMCServer... I thought I was running that, but mine is the 1.8.3 .jar...
DeleteThat sounds like java, not C++...
Where can I download a C++ MCServer from? That should (could) be a lot faster than the Java-server!
You can find it here. Download the arm version for the Pi. :)
Deletehttp://mc-server.org
There are six people (me included) playing on MCServer every day now, and we had only very few problems. There are some bugs, but everyone is enjoying, and willing to wait. I just wish the thing had version numbering. I never know when a new version is out. With actual changes, not a snapshot.
DeleteBugs: Doors fall out of frames if they're not placed in a specific way. Chests, doors and beds multiply or re-appear in your inventory. We have monsters disabled after we encountered invisible creepers. Pictures disappear, and item frames cause errors and nearby blocks get deleted.
But once you know these things you're good! I just wish I knew when something is fixed so I could redownload.
One last note ... I tried downloading the latest Linux arm package and the binary is broken. Can't be executed.
DeleteThanks for pointing me towards http://mc-server.org
DeleteI managed to build the executable from source (on my Pi2).
Will ask my son, who is a MineCraft user, to give it a try one of these days.
No problem! This time it should really create a world.ini for you, that you can modify as well. By default the world has a specific default seed, is endless, has monsters, and is uncompressed - and really large. My world.ini download link in the older comment should still work.
DeleteIt'll have no monsters at night (they are horribly bugged), a max world radius of about 70 chunks, and compression enabled.
On a sidenote, it makes sense to download the plugin "NoChunkFall" from the link below, for installations on the Pi, so people do not fall through the empty world or suffocating in rocks when spawning, and it loads too slow.
Deletehttps://github.com/DevToaster/NoChunkFall/archive/master.zip
There is a Plugins directory with subdirectories for each. Unzip this one into a folder called NoChunkFall, and then edit settings.ini -- find the plugins section and add what you need:
[Plugins]
; Plugin=Debuggers
; Plugin=HookNotify
; Plugin=ChunkWorx
; Plugin=APIDump
; Plugin=NoFireSpread
Plugin=Core
Plugin=TransAPI
Plugin=ChatLog
Plugin=NoChunkFall
@Jammet
DeleteWhen installing the NoChunkFall stuff, as you suggested, it looks like I get a NoChunkFall-master (not a NoChunkFall) so the settings.ini should be edited adding: Plugin=NoChunkFall-master
Is that correct?
When I start the server using that I see:
[10:57:30] -- Loading Plugins --
[10:57:30] Initialised NoChunkFall for RasPi v0.3
[10:57:30] WARNING: IT IS NOT ADVISED THAT YOU RELOAD THE SERVER WITH NoChunkFall ACTIVATED!!!
Yes that's the correct one. I just forgot that I renamed it so that the -master isn't in the name anymore. :) Sorry about that.
DeleteSeems to be running well and fast! I have one question though…
DeleteWe live in The Netherlands and my son, the real MineCraft Player here, prefers a flat world to build on. I have tried to set: level-type=FLAT in the [general] part of the world.ini and also in the settings.ini, but that doesn't seem to work.
Can you give me a hint? Is there any docs somewhere about the structure and possibilities of both .ini-files?
I have created a script that installs MCServer from scratch and I am having quite some fun building and rebuilding it just about everyday… It takes about an hour on my Pi2, which is connected to the internet over a 4Mbps ADSL link.
To be honest, I have no idea. Maybe - just maybe, you could pre-generate a flat world in standard Minecraft, spend some time wandering and generating a lot of chunks, before then copying the world data to MCServer, and see if that works out reasonably well? The world files are compatible, even if the generators don't produce the same results.
DeleteMaybe using a search-engine you could find seeds that generate a world that's more level than other ones, but the world generator here is not at all likethe one in original Minecraft and it could look awkward.
Amazing work on the build script. I could imagine the people at the MCserver Forum (the actively developing people there) might be interested in such a thing as well. At the very least they'll be able to provide definite answers world generator questions. :)
I've asked for what you are looking for on the MCServer Forum. Here is how you do it:
DeleteYou do that by going to your world's world.ini and changing the values in [Generator] to:
BiomeGen=Constant
ConstantBiome=Plains
HeightGen=Flat
FlatHeight=5
CompositionGen=Classic
ClassicSeaLevel=0
ClassicBeachHeight=-1
Finishers=
Thanks! Will try that tomorrow!
DeleteThe fact that the server-commands appear to be different from 'the other server' makes it hard for me to get my son to play with it, although he did say that this C++ version appears to be a lot faster.
DeleteThere is a Plugin called essentials that might introduce the commands he is looking for, fingers crossed. I wish I could help,but at that point, they're really different by design ..
Deletehttps://github.com/tonibm19/Essentials
(Download ZIP button on the right)
Thanks! Just installed the plugin. Will ask my son to reconsider ;-)
DeleteI used to run a Spigot server with a reduced map distance and pre-generated light map with reduced max-height test with 5 players, ran well... but i wonder, there used to be automatic builds of Spigot jars.. They don't exist anymore? I guess i'm gonna try to build the server later. Just in case, would you be nice enough to provide the build of Spigot you ran? :)
ReplyDeleteUnfortunately, legally, you cant provide a prebuilt spigot server.
DeleteOw :( After quite some time... Spigot compilation ended up with a "BUILD FAILURE".
ReplyDeleteJust in case it could help someone else, i could finally build Spigot.
DeleteFrom the buildtool page, they say to do
"sudo apt-get install git openjdk-7-jdk tar"
So i had installed openjdk-7-jdk and i don't know which version was installed before that. By removing that package (and autoremove the rest) and because i couldn't run a vanilla server anymore, i could then successfuly build Spigot.
Thanks for the info
DeleteAnyone have a clean Pi 2 specific Spigot build document? I tried to remove the JDK, but the build is still failing and my vanilla server will no longer run now. Will have to start over again.
Deletehttps://pimylifeup.com/raspberry-pi-minecraft-server/
Deletethe link above is perfectly detailed in setting up a spigot server on the pi 2
Hi Guys, I'm getting the following error when trying to setup vanilla minecraft server - at step 5 above ... i have got this working on my mint 17 box, but i'm stumped on the pi - does this point to a corrupt micro sd card?
ReplyDeleteThanks in advance :)
pi@pi2 ~/MinecraftServer $ ./start.sh
./start.sh: line 1: 3128 Segmentation fault java -Xmx1024M -Xms512M -jar minecraft_server.1.8.1.jar nogui
Segmentation fault has the smell of something seriously wrong.
DeleteI was getting the segmentation fault when I used the old version of n00bs on the new pi 2 b ... put on 1.4 and it went away.
Deletenow i've got my pi2 b build ... followed your instructions, and when i run .start.sh i get:
Initial heap size set to a larger value than the maximum heap size.
any advice?
Could you try this while the raspberry pi 2 is overclocked(core_freq and arm_freq) with view-distance 10?
ReplyDeleteFor some reason trying to start the vanilla Minecraft server doesn't work at all. It doesn't ask me for the EULA. It doesn't say anything. It just keeps loading stuff and then stops loading stuff and before it takes a dirtnap. :(
ReplyDeleteIs there anyone who might have an idea about why this could be? We're running the exact same software on the same hardware ... you'd think this would behave the exact same.
DeleteHoping you can help me out with this. I'm also having difficulty after trying to start the server with ./start.sh as above. After running it, I get the following:
ReplyDeleteERROR Cannot access RandomAccessFile {}) java.io.FileNotFoundException: logs/latest.log (Mo such file or directory)
ERROR Unable to invoke method createAppender in class org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender for element
RollingRandomAccessFile java.lang.reflect.InvocationTargetException
Followed by a wall of text that just scrolls continuously until I hit ctrl+pause/break
I've got Raspbian/Debian Wheezy that I downloaded from the Pi downloads page last week.
Java 1.8.0
JRE build 1.8.0-b132
HotSpot Client VM build 25.0-b70 mixed mode
Mmmm - Im wondering if think the error you have picked out above is not the error that is actually causing the problem. I have a feeling that the minecraft server reports this error on first boot before then creating the logs/latest.log file. What does the wall of text say? Anything interesting?
Delete@Martin I am getting the following warning during startup of the Vanilla server. Any suggestions?
ReplyDeleteJava HotSpot(TM) Client VM warning: You have loaded library /tmp/libnetty-transport-native-epoll4577557247436507689.so which might have disabled stack guard. The VM will try to fix the stack guard now.
Sorry I dont, other than rebuild from the latest version of raspbian and try again!
DeleteSame here after simply downloading the 1.8.3 server file and activating that. It gives:
Delete[13:31:40] [Server thread/INFO]: Starting Minecraft server on *:25565
Java HotSpot(TM) Client VM warning: You have loaded library /tmp/libnetty-transport-native-epoll4321536857884905119.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
[13:31:40] [Server thread/INFO]: Using default channel type
Now how do we 'rebuild from the latest version of raspbian'?
Download the latest version of raspbian / noobs and reflash your card.You might want to try upgrading the OS first see http://www.raspberrypi.org/documentation/raspbian/updating.md
DeleteThe card I use just got the latest raspbian 4 days ago.
DeleteIn that case I am out of ideas. Sorry
Delete@Adam - Is the warning causing any problems that you can detect? Or does it seem to be benign so far? It sounds like you and I are in the same boat... brand new raspbian... mine was from Sunday. I'm not sure if the warning is causing me any real problems yet.
DeleteSo far I did not see any problems caused by this although it was good to see you reported it. At least one of the developers might take a look at it now.
DeleteAlso: I've got 2 RPi2's here. Both show the same error although the filenames (/tmp/libnetty-transport-native-…….so) varies on each and every occasion while these files themselves are NOT real files, they don't exist.
I suggest we "do not worry" as is suggested here:
Deletehttps://groups.google.com/forum/#!topic/fusionreactor/iRsnTT3al04
The files are in the /tmp folder. They seem to appear after you start the game and get removed when stopped.
DeleteSince all the original Java based servers keep crashing no matter what, I gave MCServer a go (mentioned above) and this one really blows them all out of the water with how performant it is. Set the view distance to 7, like here, and edited the world.ini file so that compression was set to 6 (best setting, really).
ReplyDeleteAnd that's that. Seriously, if anyone else, like me, fiddled around with spigot, vanilla and Java for hours and hours, only to see them crashing time and time again, get MCServer instead.
I'm a newbie in the MCServer world. Just put up the 1.8.3 server on a Pi2 for my son. It appears to run well with the distance set to 7. Wanted to implement your compression=6 mod too but it looks like I don't have a file world.ini!
DeleteWhere does that go? What exactly should be in there?
I agree MCServer runs a treat (even on an original Pi). Its just a shame it doesnt support the full feature set (yet - hopefully)
DeleteThis comment has been removed by the author.
DeleteOnce you started MCServer once, and it has created a new world, stop it with the stop command.
DeleteIt will have created that new world in a directory called "world".
Inside that directory is the world.ini file.
It contains the compression setting as well as the seed for that world.
Remove everything here except the world.ini file, change the compression setting to 6, and - if you want - change the seed, save the file, and restart MCServer to get the new world in compressed format, and the seed of your choice.
Oh yes, and one more thing: Right now, the monsters in the game are very buggy. You should change the difficulty setting to 0 (peaceful) and then you can enjoy the basic survival mode. Chests, doors, and beds have placement and dublication bugs in many positions, but once I figured that out, it was alright. And I am sure these bugs are going to be fixed in the coming releases.
DeleteAfter first starting the server all files I see are:
Delete14:58 quadberrypi: Command? cd world
14:58 quadberrypi: Command? ls -la
total 40
drwxr-xr-x 7 pi pi 4096 Feb 26 14:56 .
drwxr-xr-x 5 pi pi 4096 Feb 26 14:56 ..
drwxr-xr-x 2 pi pi 4096 Feb 26 14:55 DIM-1
drwxr-xr-x 2 pi pi 4096 Feb 26 14:55 DIM1
drwxr-xr-x 2 pi pi 4096 Feb 26 14:56 data
-rw-r--r-- 1 pi pi 621 Feb 26 14:56 level.dat
-rw-r--r-- 1 pi pi 621 Feb 26 14:56 level.dat_old
drwxr-xr-x 2 pi pi 4096 Feb 26 14:55 playerdata
drwxr-xr-x 2 pi pi 4096 Feb 26 14:55 region
-rw-r--r-- 1 pi pi 8 Feb 26 14:56 session.lock
Not a world.ini here...
That is strange. Here is a link to mine. Try if this works, if you change it as needed.
Deletehttps://www.dropbox.com/s/7tpxlqy1ujkxouf/world.ini?dl=0
I think that worked, thanks. I've put your file inside the 'world' directory and restarted the server…The world looks different now, so I bet it processed your world.ini properly. Thanks!
DeleteIt wasn't completely obvious to me, how to ge the other Minecraft Pi edition to connect to the server.
ReplyDeleteThis isn't a server for Minecraft: Pi Edition is a server for the full PC version of Minecraft.
DeleteIf you want to play multiplayer on the Pi Edition just start a game on one Pi and the 'Join' the game from the other Pi(s).
An alternative would be to start a Minecraft Pocket Edition game or server from version 0.3.3 if MCPE. That is Pi version compatible, or largely so.
DeleteI'm missing a Java install instruction - please help?
ReplyDeleteI believe Java is installed by default on the Raspbian "wheezy" image...
ReplyDeleteI can't remember installing it, yet it's there!
/usr/bin/java
Ok - I'll check with Raspbian - I'm currently trying to install it on OSMC as I'm using it as a media center - The Mincraft Server is for my son :)
ReplyDeleteInstalled Java and ran the ./start.sh - getting ./start.sh: linje 1: 10167 Segmentfejl - fejl is error on danish :)
ReplyDeleteAnd what does your start.sh look like?
ReplyDeletetype: head -2 start.sh | od -c
and: cat start.sh
Hi Adam - Installed Xbian distro and added Java - and followed the howto and accepted the eula.txt - Now I'm getting this one:
ReplyDelete[17:25:34] [Server thread/INFO]: Starting minecraft server version 1.8.1
[17:25:34] [Server thread/INFO]: Loading properties
[17:25:34] [Server thread/INFO]: Default game type: SURVIVAL
[17:25:34] [Server thread/INFO]: Generating keypair
[17:25:55] [Server thread/INFO]: Starting Minecraft server on *:25565
[17:25:55] [Server thread/INFO]: Using default channel type
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (os_linux_zero.cpp:285), pid=23560, tid=782234736
# fatal error: caught unhandled signal 11
#
# JRE version: 6.0_34-b34
# Java VM: OpenJDK Zero VM (23.25-b01 mixed mode linux-arm )
# Derivative: IcedTea6 1.13.6
# Distribution: Debian GNU/Linux 7.8 (wheezy), package 6b34-1.13.6-1~deb7u1+rpi1
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
xbian@xbian ~/MinecraftServer $ head -2 start.sh | od -c
ReplyDelete0000000 j a v a - X m x 1 0 2 4 M -
0000020 X m s 5 1 2 M - j a r m i n
0000040 e c r a f t _ s e r v e r . 1 .
0000060 8 . 1 . j a r n o g u i \n
0000076
xbian@xbian ~/MinecraftServer $ cat start.sh
java -Xmx1024M -Xms512M -jar minecraft_server.1.8.1.jar nogui
I've completely stopped trying to run any java based Minecraft servers on the known distributions. It takes forever to launch, if it does, and is prone to crashes. At least that's my experience. :/
DeleteOK - is there another solution for running the Minecraft server on my Rasp Pi 2
ReplyDeleteIf you're running om a Pi2 then use these values:
ReplyDeleteSTARTMEM = 512M
MAXMEM = 896M
Also: There is a 1.8.4 available! Try that!
Also: I installed both the Java and the C++ version. My son, the MC-player, prefers the java-variant because he know how to control it (commands and stuff).
And believe me, on a Pi2 it works. Although you do need to make some adjustments to the server.properties file.
My son uses (don't ask me why):
gamemode=1
difficulty=0
max-tick-time=-1
view-distance=7
Hi Adam,
ReplyDeleteWhere do I set the STARTMEM and MAXMEM values - I'm on PI 2
Do you have a wget url for getting the 1.8.4 server?
java -Xmx896M -Xms512M -jar minecraft_server.1.8.1.jar nogui
ReplyDeletehttps://s3.amazonaws.com/Minecraft.Download/versions/1.8.4/minecraft_server.1.8.4.jar
Hi Adam
ReplyDeleteI grapped the 1.8.4 from minecraft.net - and updated my .start.sh file accordingly.
Still crashes:
./start.sh: line 1: 10966 Aborted java -Xmx896M -Xms512M -jar minecraft_server.1.8.4.jar nogui
My Java is this one:
ReplyDeletejava version "1.6.0_34"
OpenJDK Runtime Environment (IcedTea6 1.13.6) (6b34-1.13.6-1~deb7u1+rpi1)
OpenJDK Zero VM (build 23.25-b01, mixed mode)
come try my 1.8.3 server out... beerme.no-ip.org:25555 its running 24/7 on my pi 2.
ReplyDeleteUm. That's verynice, but you spawn in a tiny hole there, and you can't get out. At all. Can't break the rock, because it's rock _and_ it's spawn protected ...
Deletesh*t.... then one of my plugins is messed up. i will work on it tomorrow.
Deletei just dug out the spawn spot for now.
Deletetook a lil bit but some one came on the server and messed up a few things and wrecked my bed and chests as well as a few other small things. oh well its happens lol
Deletetook a lil bit but some one came on the server and messed up a few things and wrecked my bed and chests as well as a few other small things. oh well its happens lol
DeleteHello,
ReplyDeleteI got a problem when I run the server: after clicking on "play", I receive this message in "game output":
OpenJDK Zero VM warning: You have loaded library /home/pi/.minecraft/versions/1.8.4/1.8.4-natives-1089459863716/liblwjgl64.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It’s highly recommended that you fix the library with ‘execstack -c ‘, or link it with ‘-z noexecstack’.
Exception in thread « main » java.lang.UnsatisfiedLinkError: /home/pi/.minecraft/versions/1.8.4/1.8.4-natives-1089459863716/liblwjgl.so: /home/pi/.minecraft/versions/1.8.4/1.8.4-natives-1089459863716/liblwjgl.so: Can't open the shared object file: No file of this type (Possible cause: can’t load IA 32-bit .so on a ARM-bit platform)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at org.lwjgl.Sys$1.run(Sys.java:72)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
at org.lwjgl.Sys.loadLibrary(Sys.java:96)
at org.lwjgl.Sys.(Sys.java:117)
at ave.J(SourceFile:2524)
at net.minecraft.client.main.Main.main(SourceFile:41)
I use a Raspberry Pi 2 with raspbian and my java version is:
java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~deb7u1+rpi1)
OpenJDK Zero VM (build 24.75-b04, mixed mode).
My version of Minecraft is the 1.8.4 (the last one at this date).
I've tried the commands "execstack -c" and "-z noexecstack" without results.
If someone could help me please, it would be very nice.
Please excuse me for my faults, I'm french.
It looks like you are trying to run the minecraft server 'gui'. This wont run on an ARM computer as it requires an x86 java library liblwjgl.
DeleteYou have to run the jar file directly using the command java -Xmx1024M -Xms512M -jar minecraft_server.1.8.1.jar nogui
You can.. Its just VERY VERY slow. In fact I couldnt even get past the main menu.
DeleteHi All
ReplyDeletecan you run a modded server with this system? like forge-1.8-11.14.1.1334-universal.jar?
M
No idea, I dont see why not though, canarymod, bukkit and spigot are all basically modded minecraft servers. Have a go!
DeleteIf I get one I let you know how i go Thank :)
DeleteI've been hosting a Pi2 server for about a month now. Made it an 8 player server with about 40 plugins. View distance is 4 which is adequate. Slight over clocking to 1000MHz ARM and Core at 500MHz.
ReplyDeleteSee what you think here:
81.99.59.115:25566
This comment has been removed by the author.
Deleteor check out the Dynmap: http://81.99.59.115:8124
DeletePlugins (38): NetherRoofProtect, AsyncWorldEditInjector, WorldEdit, Simple-AutoSave, mcjobs, AutoShutdown, PermissionsBukkit, RemoteBukkit, Vault, Multiverse-Core, WorldGuard, Jail, dynmap, AntiSwear, IPLog, TimeFold, Lockette, ClearLag, RoyalAuth, ProtocolLib, BlockThatName, TeleportRequest, Essentials, WorldBorder, AsyncWorldEdit, NoCheatPlus, EssentialsSpawn, EssentialsGeoIP, SkinsRestorer, FramePicture, dynmap-mobs, ScoreboardStats, EssentialsAntiBuild, CommandBlockerUltimate, Residence, Lift, ChestShop, dynmap-residence
DeleteHi. Hopefully someone can help me. I am getting the segmentation fault error as others have when following the instructions. I agree it smells rather aquatic, but can someone give me any idea what to do about it? Does it suggest that my new raspberry pi is damaged or maybe a rubbish micro-sd card?
ReplyDeleteYour pi is fine. Sometimes you need a very specific Java runtime environment. I rid myself of these troubles by using the MCServer instead of the original Minecraft server. Though it's changing it's name to Cuberite. www.cuberite.org
DeleteIf nothing else helps, give it a go.
Thanks. Looks like I've got MCServer running okay. I've a port clash / forwarding issue going on at the moment but it should be easy to resolve that. I'd still like to know where I went wrong on the vanilla and Spigot installs but I'll leave my investigations to another day! Thanks again.
Deletei don't get asked to accept eula ?
ReplyDeletenvm idk what happend i got it
ReplyDeleteAll i get is this when i try to boot it.
ReplyDelete"2015-08-26 02:58:29,912 ERROR Error processing element Queue: CLASS_NOT_FOUND
2015-08-26 02:58:36,806 ERROR Unable to locate appender ServerGuiConsole for logger
Exception in thread "main" java.lang.ClassFormatError: Unknown constant tag 226 in class file org/apache/commons/io/IOUtils
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at fj.(SourceFile:27)
at fj.(SourceFile:19)
at fi.(SourceFile:7)
at aln.k(SourceFile:250)
at aln.a(SourceFile:321)
at amg.q(SourceFile:458)
at amg.C(SourceFile:774)
at ua.c(SourceFile:116)
at ua.a(SourceFile:69)
at oe.c(SourceFile:483)
at net.minecraft.server.MinecraftServer.main(SourceFile:646)
"
And sometimes this, "
2015-08-26 03:04:40,664 ERROR Error processing element Queue: CLASS_NOT_FOUND
2015-08-26 03:04:48,358 ERROR Unable to locate appender ServerGuiConsole for logger
#
# A fatal error has been detected by the Java Runtime Environment:"
Then I dont get to the rest of that because my ssh server crashes before I can, but I imagine its a similar error to the first one. Any help is appreciated!
This comment has been removed by the author.
ReplyDeletewhen i try to connect to the server it tells me
ReplyDeleteInternal Exception: java.lang.NullPointerException
I have a probleme too, when i type "chmod + x start.sh" , the pi say "bash: ./start.sh: Permission denied" . Need help here !
ReplyDeleteThere is no space between + and x.
DeleteSo chmod +x start.sh. Do you see any errors when running this command to make the script eXecutable?
This comment has been removed by the author.
Deletei writ ./start.sh and the pi say Error: Unable to access jarfile minecraft_serveur 1.8.8.jar ( i install the 1.8.8 version) (sorry for my bad english)
DeleteIs it spelt correctly in start.sh? including capital letters? Is it in the same directory as your start.sh. Type ls to see a directory listing. check the file is there.
DeleteIn my folder "MinecraftServer" i have only start.sh
ReplyDeleteThen you failed to download the minecraft server jar. If you want 1.8.8 you need to use the command
Deletehttps://s3.amazonaws.com/Minecraft.Download/versions/1.8.8/minecraft_server.1.8.8.jar
How would I upload a custom map into the RaPi 2 and the server?
ReplyDeleteNoSpawnChunks doesn't work I repeat NoSpawnChunks DOES NOT WORK. It's all a placebo. This plugins only loads up and pretends to unload chunks but the memory still fills up with time until it uses up all the swap and crashes the server.
ReplyDeleteYou can try it yourself by removing the plugin and comparing the perfromance, it will be identical.
Install htop:
sudo apt-get install htop
That way you can monitor closely the memory and cpu usage.
I also found out that spigot has a memory leak for quite a while now that devs still need to fix.
Deletei get "bad login" when i try to login
ReplyDeleteDo you have an official paid for Minecraft Login? The server will check you are 'allowed' before logging you in.
Delete