Overview
DayZ is an open-world survival game set in a post-apocalyptic world. Dedicated servers allow customized gameplay with mods, custom loot tables, and community rules.
Requirements
- A Breeze with at least 6 GB RAM
- 4 CPU cores
- 25 GB disk space
Step 1: Install the Server
sudo useradd -r -m -d /opt/dayz dayzserver
sudo -u dayzserver steamcmd +force_install_dir /opt/dayz/server \
+login anonymous \
+app_update 223350 validate \
+quitStep 2: Create a Start Script
sudo -u dayzserver tee /opt/dayz/start.sh <<'EOF'
#!/bin/bash
cd /opt/dayz/server
./DayZServer -config=serverDZ.cfg \
-port=2302 \
-profiles=/opt/dayz/profiles \
-BEpath=/opt/dayz/battleye \
-dologs -adminlog -netlog \
-freezecheck
EOF
chmod +x /opt/dayz/start.shStep 3: Configure the Server
sudo -u dayzserver tee /opt/dayz/server/serverDZ.cfg <<EOF
hostname = "My DayZ Server";
password = "";
passwordAdmin = "adminpass";
maxPlayers = 40;
verifySignatures = 2;
forceSameBuild = 1;
disableVoN = 0;
vonCodecQuality = 20;
disable3rdPerson = 0;
disableCrosshair = 0;
serverTime = "2024/4/15/08/00";
serverTimeAcceleration = 4;
serverNightTimeAcceleration = 8;
serverTimePersistent = 0;
guaranteedUpdates = 1;
loginQueueConcurrentPlayers = 5;
loginQueueMaxPlayers = 500;
instanceId = 1;
storageAutoFix = 1;
EOFFirewall
sudo ufw allow 2302:2305/udp
sudo ufw allow 27016/udp