Gaming Servers

Stationeers

Install and configure a Stationeers dedicated server on Linux with SteamCMD

Stationeers is a complex space station building and survival game with deep engineering systems. You can host a dedicated server on Linux for persistent multiplayer.

Requirements

  • Ubuntu 22.04 / Debian 12 (64-bit)
  • 4 GB RAM minimum (8 GB recommended)
  • 10 GB disk space
  • Ports: 27500/UDP (game), 27015/UDP (Steam query)

Install SteamCMD

sudo apt update
sudo apt install software-properties-common -y
sudo add-apt-repository multiverse
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install steamcmd -y

Create a dedicated user

sudo useradd -m -s /bin/bash stationeers
sudo su - stationeers

Install the server

/usr/games/steamcmd +force_install_dir /home/stationeers/server \
  +login anonymous \
  +app_update 600760 validate \
  +quit

App ID 600760 is the Stationeers Dedicated Server.


Create the start script

nano /home/stationeers/start.sh
#!/bin/bash
cd /home/stationeers/server

./rocketstation_DedicatedServer.x86_64 \
  -batchmode \
  -nographics \
  -loadworld "MyServer" \
  -worldtype "Moon" \
  -gameport 27500 \
  -updateport 27015 \
  -servername "My Stationeers Server" \
  -maxplayers 8 \
  -adminpassword "AdminPass123!" \
  -serverpassword "" \
  -autosave 5
chmod +x /home/stationeers/start.sh

Available world types

WorldDescription
MoonLow gravity, no atmosphere, classic start
MarsThin CO2 atmosphere, complex survival
EuropaIce moon, extreme cold
VulcanVolcanic, hot environment
MimasRings of Saturn moon
LoulanDesert biome
StationeersSpace station start (no planet)

Run as systemd service

Exit back to root:

exit
sudo nano /etc/systemd/system/stationeers.service
[Unit]
Description=Stationeers Dedicated Server
After=network.target

[Service]
Type=simple
User=stationeers
WorkingDirectory=/home/stationeers/server
ExecStart=/home/stationeers/start.sh
Restart=on-failure
RestartSec=15s

[Install]
WantedBy=multi-user.target

Enable and start:

sudo systemctl daemon-reload
sudo systemctl enable stationeers
sudo systemctl start stationeers
sudo systemctl status stationeers

Firewall rules

sudo ufw allow 27500/udp
sudo ufw allow 27015/udp

World save files

Save files are stored in:

~/.config/unity3d/Rocketwerkz/rocketstation/saves/

Backup regularly:

tar -czf stationeers-backup-$(date +%F).tar.gz \
  ~/.config/unity3d/Rocketwerkz/rocketstation/saves/

Server configuration file

After first launch, a setting.xml is created in the saves directory. Edit it to configure:

<ServerConfig>
  <ServerName>My Stationeers Server</ServerName>
  <ServerPassword></ServerPassword>
  <AdminPassword>AdminPass123!</AdminPassword>
  <MaxPlayers>8</MaxPlayers>
  <AutoSave>5</AutoSave>
  <GamePort>27500</GamePort>
  <UpdatePort>27015</UpdatePort>
</ServerConfig>

Admin commands (in-game)

Connect as admin using the admin password set at startup, then use the F3 console:

CommandDescription
kick <name>Kick a player
ban <name>Ban a player
respawnRespawn yourself
saveForce a world save
giveitem <item> <quantity>Spawn items

Server updates

sudo systemctl stop stationeers
sudo -u stationeers /usr/games/steamcmd \
  +force_install_dir /home/stationeers/server \
  +login anonymous \
  +app_update 600760 validate \
  +quit
sudo systemctl start stationeers

Auto-update script

nano /home/stationeers/update.sh
#!/bin/bash
echo "Stopping server..."
systemctl stop stationeers

echo "Updating..."
/usr/games/steamcmd +force_install_dir /home/stationeers/server \
  +login anonymous \
  +app_update 600760 validate \
  +quit

echo "Starting server..."
systemctl start stationeers
echo "Done."
chmod +x /home/stationeers/update.sh

Logs

journalctl -u stationeers -f

# Unity engine output
tail -f ~/.config/unity3d/Rocketwerkz/rocketstation/Player.log

On this page