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 -yCreate a dedicated user
sudo useradd -m -s /bin/bash stationeers
sudo su - stationeersInstall the server
/usr/games/steamcmd +force_install_dir /home/stationeers/server \
+login anonymous \
+app_update 600760 validate \
+quitApp 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 5chmod +x /home/stationeers/start.shAvailable world types
| World | Description |
|---|---|
Moon | Low gravity, no atmosphere, classic start |
Mars | Thin CO2 atmosphere, complex survival |
Europa | Ice moon, extreme cold |
Vulcan | Volcanic, hot environment |
Mimas | Rings of Saturn moon |
Loulan | Desert biome |
Stationeers | Space 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.targetEnable and start:
sudo systemctl daemon-reload
sudo systemctl enable stationeers
sudo systemctl start stationeers
sudo systemctl status stationeersFirewall rules
sudo ufw allow 27500/udp
sudo ufw allow 27015/udpWorld 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:
| Command | Description |
|---|---|
kick <name> | Kick a player |
ban <name> | Ban a player |
respawn | Respawn yourself |
save | Force 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 stationeersAuto-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.shLogs
journalctl -u stationeers -f
# Unity engine output
tail -f ~/.config/unity3d/Rocketwerkz/rocketstation/Player.log