This guide covers how to set up and configure enshrouded on a Linux VPS. Whether you're running a production environment or a development setup, these instructions will help you get started quickly and securely.
Server Installation
It's recommended to test this configuration in a staging environment before deploying to production. This helps identify potential compatibility issues and allows you to benchmark performance differences.
# Create a dedicated game server user
sudo useradd -m -s /bin/bash gameserver
sudo su - gameserver
# Install SteamCMD
mkdir -p ~/steamcmd && cd ~/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
# Install the game server
./steamcmd.sh +force_install_dir ~/servers/enshrouded +login anonymous +app_update 1234567 validate +quit
The configuration above sets the recommended values for a VPS with 2-4GB of RAM. Adjust the memory-related settings proportionally if your server has different specifications.
- Use strong, unique passwords for all services
- Use SSH keys instead of password authentication
- Enable firewall and allow only necessary ports
- Set up fail2ban for brute force protection
- Keep all software components up to date
Configuration File Setup
After applying these changes, monitor the server's resource usage for at least 24 hours to ensure stability. Tools like htop, iostat, and vmstat can provide real-time insights into system performance.
# Server configuration file
[Server]
ServerName=My enshrouded Server
MaxPlayers=32
ServerPort=27015
Password=
AdminPassword=changeme
SaveInterval=300
This configuration provides a good balance between performance and resource usage. For high-traffic scenarios, you may need to increase the limits further.
- Test disaster recovery procedures regularly
- Set up monitoring before going to production
- Document all configuration changes
- Maintain runbooks for common operations
Firewall and Port Configuration
For production deployments, consider implementing high availability by running multiple instances behind a load balancer. This approach provides both redundancy and improved performance under heavy load.
# Create systemd service for auto-start
sudo tee /etc/systemd/system/enshrouded.service << 'EOF'
[Unit]
Description=enshrouded Dedicated Server
After=network.target
[Service]
User=gameserver
WorkingDirectory=/home/gameserver/servers/enshrouded
ExecStart=/home/gameserver/servers/enshrouded/start.sh
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable enshrouded
sudo systemctl start enshrouded
The output should show the service running without errors. If you see any warning messages, address them before proceeding to the next step.
Common Issues and Solutions
- Permission denied errors: Ensure files and directories have the correct ownership. Use
chown -Rto fix ownership andchmodfor permissions. - Service won't start: Check the logs with
journalctl -xe -u enshrouded. Common causes include port conflicts, missing configuration files, or insufficient permissions. - High memory usage: Review the configuration for memory-related settings. Reduce worker counts or buffer sizes if running on a low-RAM VPS.
Summary
You've successfully configured enshrouded on your VPS. Remember to monitor performance, keep your software updated, and maintain regular backups. If you run into issues, consult the official documentation or open a support ticket for assistance.