Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RaspberryPi4 Server

#1
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!
Reply

#2
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.
Reply

#3
I am currently creating a docker image for arm64.

It is less than 300 MB big.
Reply

#4
(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/ma...COMPILE.md) and overclocked it (https://www.tomshardware.com/how-to/over...spberry-pi) It works, albeit, a bit on the laggy side of things.
I think I'm going to try that docker image...
Thanks for the help everyone!
Reply

#5
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.
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Lost server key, can't hold new key FlufyBuny 0 1,085 09-09-2021, 07:05 PM
Last Post: FlufyBuny
  Full server tutorial start-2-finish with maps & config from live server xonotic.us.to ballerburg9005 0 1,349 09-03-2021, 10:21 AM
Last Post: ballerburg9005
  Noob needs help running server. CORDUROY 3 663 07-01-2021, 02:31 PM
Last Post: CORDUROY
  Latest Beta Server evit 1 974 04-02-2021, 04:06 PM
Last Post: end user
  Server does not start saddesad 2 590 11-25-2020, 04:39 AM
Last Post: saddesad
  [NEED HELP] Server failed to open socket on address... Hexactinal 2 685 11-21-2020, 04:28 PM
Last Post: Hexactinal
  Server ideas drummyfish 9 2,254 11-18-2020, 02:36 AM
Last Post: BuddyFriendGuy
  Server Hosting Issue Saevus 3 1,326 11-11-2020, 02:53 PM
Last Post: :[:{b_e*r^f}:]:
  [SOLVED] Eris server ban? BuddyFriendGuy 3 830 10-18-2020, 06:40 PM
Last Post: BuddyFriendGuy
  Docker Xonotic Dedicated Server ich777 12 4,469 10-08-2020, 11:15 AM
Last Post: BuddyFriendGuy

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-