Skip to content

Latest commit

 

History

History
61 lines (37 loc) · 1.19 KB

xonotic.md

File metadata and controls

61 lines (37 loc) · 1.19 KB

setting permissions on macOS:

sudo xattr -r -d com.apple.quarantine "/path/to/Xonotic.app"

setting up a dedicated server

install dependencies

sudo apt-get install autoconf automake build-essential curl git libtool libgmp-dev libjpeg-turbo8-dev libsdl2-dev libxpm-dev xserver-xorg-dev zlib1g-dev unzip zip

clone and build

git clone git://git.xonotic.org/xonotic/xonotic.git
cd xonotic
./all update -p
./all update -l best
./all compile -r

start the server

./all run dedicated xonotic

run in the background

nohup ./all run dedicated xonotic >/dev/null 2>&1 &

add server config

xonotic/data/server.cfg

add start script

<path to>/xonotic/run-dedicated.sh

#!/bin/bash
./all run dedicated xonotic >/dev/null 2>&1

add systemd service

add a service /etc/systemd/system/xonotic.service

[Unit]
Description=Xonotic
After=network.target

[Service]
WorkingDirectory=/<path to>/xonotic
Environment=""
ExecStart=/<path to>/xonotic/run-dedicated.sh
User=yogthos

[Install]
WantedBy=graphical.target

start dedicated server

sudo systemctl start xonotic