I am trying to make a minecraft server on a raspberry pi 3. I cannot build a spigot server so far and I have looked a lot around the web.
Here is what I did :
installed dietpi on the rpi then installed mineos
connected to the webui>profile>downloaded mojang 1.10.2 jar (I tried the whole process on 1.10 as well)
created a vanilla 1.10 server using a seed
then run the server with (Xmx=800 xms=400 and nogui) worked ok. ThenI stop the server to go spigot
on Spigot / Craftbukkit > download latest then build spigot 1.10.2. But I can not build :
BuildTools jar compilation failed Error undefined (undefined): undefined
in the log I have : Loading BuildTools version: git-BuildTools-afc7566-52 (#52) fatal: $HOME not set Git name not set, setting it to default value. fatal: $HOME not set Exception in thread “main” java.lang.RuntimeException: Error running command, return status !=0: [git, config, --global, user.name, BuildTools] at org.spigotmc.builder.Builder.runProcess(Builder.java:547) at org.spigotmc.builder.Builder.main(Builder.java:161)
But I had some more errors supervisorctl reread
gave me ERROR: CANT_REREAD: not a valid boolean value: ‘trueenvironment=HOME="/root"’
so I edited the file /etc/supervisor/conf.d/mineos.conf to add the missing “carriage return” (I mean enter) between true and environment in the last line.
Now it’s working and I am really impressed O_o
The raspberry pi 3 is a good and effective way to host a minecraft server regarding cost, power saving and even size.
I will post a tuto to help creating an optmizied minecraft spigot server on the raspberry using mineos. Hope it will help someone.
It seems that mineos.conf is missing a carriage return after the final line, so when the command you linked to above is fired, the new text is added in directly after the value of the previous variable.
I think the echo-command probably should be: echo -e '\nenvironment=HOME="/root"' >> /etc/supervisor/conf.d/mineos.conf
If you are making changes to how the .conf is set up, then maybe the “\n” should be at the end of each line, in stead of in the start like in my example.
My example was made to handle mineos.conf as it is now, when we use echo to add a line. Since the last line before addition is missing a carriage return, we need to add it, therefore I added the \n at the start of the line. This is really more of a workaround.
I meant more that environment=HOME=/root should be in the file for all setups. I tried it on my MineOS Turnkey, my Ubuntu and my Arch and it causes no (apparent) unfavorable effects, so I added the line in a commit just now.
Also, I added the trailing newline to the file (because it should be there, no matter what).