Xonotic Forums
RaspberryPi4 Server - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16)
+--- Thread: RaspberryPi4 Server (/showthread.php?tid=8398)



RaspberryPi4 Server - ablyveiled - 08-10-2020

Hello all.
I have a Raspberry Pi 4 with 8GB RAM, and wish to host a xonotic server on it.
Has anyone had experience with this sort of setup and has any pointers?
Would it be possible to begin with?
Cheers!


RE: RaspberryPi4 Server - Freddy - 08-10-2020

I've recently tested the (then) current dev version on my 4GB Pi4. The client runs way below 30FPS if at all, but the server runs pretty smoothly. I tested it with 8 Bots and it used about 30% CPU.
You need to compile the engine yourself, but that shouldn't be a problem. For the gamedata you can simply copy the pk3s from the release or autobuild zips.
The biggest problem will probably your internet connection. It might not be able to handle many players or cause a lot of jitter.


RE: RaspberryPi4 Server - ballerburg9005 - 08-19-2020

I am currently creating a docker image for arm64.

It is less than 300 MB big.


RE: RaspberryPi4 Server - cushinga - 05-13-2021

(08-10-2020, 10:59 PM)ablyveiled Wrote: Hello all.
I have a Raspberry Pi 4 with 8GB RAM, and wish to host a xonotic server on it.
Has anyone had experience with this sort of setup and has any pointers?
Would it be possible to begin with?
Cheers!

I just used box86 (https://github.com/ptitSeb/box86/blob/master/docs/COMPILE.md) and overclocked it (https://www.tomshardware.com/how-to/overclock-any-raspberry-pi) It works, albeit, a bit on the laggy side of things.
I think I'm going to try that docker image...


RE: RaspberryPi4 Server - ballerburg9005 - 06-27-2021

To anyone who wants to try their luck, it is very easy with docker:

Code:
export XONOTIC_DIR_ON_HOST=/srv/xonotic

docker run --name xonotic-server -p 26000-26010:26000-26010 -p 26000-26010:26000-26010/udp --cap-add=sys_nice -v ${XONOTIC_DIR_ON_HOST}:/root/.xonotic ballerburg9005/xonotic-server-arm64

Now you can put map pk3 files in /srv/xonotic/data/ or edit the server.cfg file. Go to your internet router, find your box and open ports 26000-26010 TCP and UDP. You will then see your server in the official server list with the "hostname" you provided in the server.cfg file.

But beware: My Cortex-A55 box can only handle 4 players until it maxes out the CPU. It will also suffer from brief CPU spikes every few minutes, so that the game stutters for all players for a split second. It will consume 10-20% CPU idle. But it will not get very hot. On the map Xoylent there is a custom weapon as easter egg (Tuba). This will crash the server for unknown reasons.

I would say the Pi4 could be viable for duel servers, if it can handle the occasional CPU spikes. It would be nice if someone could actually try it.