Bonjour,
Voici comment installer Qanga.
Installer les dépendances :
apt install -y tar curl lib32gcc-s1
Configurer l'utilisateur Qanga :
mkdir -p /opt/qanga/steamcmd
groupadd -r qanga
useradd -r -g qanga -d /opt/qanga -s /sbin/nologin qanga
cd /opt/qanga/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
Installer Qanga :
nano /opt/qanga/run.sh
#!/bin/bash
# Move to the game directory
cd "$(dirname "$(realpath "$0")")" || exit
# Install / Update
./steamcmd/steamcmd.sh +force_install_dir /opt/qanga/ +login anonymous +app_update 1652070 validate +quit
# Example
#./QangaServer.sh /Game/Maps/Universe/L_Persistent_Universe -server -log -port=10000 -map=L_Persistent_Universe -sessionName=Survival -QueryPort=27016 -AdminId=<PlayerSteamId> -password=<password>
# Run the game
exec ./QangaServer.sh /Game/Maps/Universe/L_Persistent_Universe -server -log -port=7777 -map=L_Persistent_Universe -sessionName="My Qanga Server" -QueryPort=27016
exit 0
chmod +x run.sh
chown -R qanga: /opt/qanga
Créer le service de qanga :
nano /etc/systemd/system/qanga.service
[Unit]
Description=qanga
After=network.target
[Service]
WorkingDirectory=/opt/qanga/
User=qanga
Group=qanga
Type=simple
ExecStart=/opt/qanga/run.sh
RestartSec=120
Restart=always
[Install]
WantedBy=multi-user.target
systemctl enable --now qanga
Voilà vous pouvez vous connecter sur votre serveur qanga.