How to Set Up Your Enshrouded Dedicated Server on Ubuntu

Embark on a journey to set up your own dedicated server for the mystical survival action RPG, Enshrouded, on an Ubuntu system. This comprehensive guide aims to equip beginners with the knowledge and tools necessary to bring the enchanting world of Embervale to life, allowing you and your friends to dive into its vast, voxel-based open world filled with danger, crafting, and cooperative adventures.

Preparing Your Environment: Prerequisites and System Update

Before we start, ensure your Ubuntu system (preferably Ubuntu 22.04) is up to date to avoid any compatibility issues. This preparation involves updating your system and installing essential packages. It’s crucial to have sudo privileges and to configure your ufw settings to allow ports 15636 and 15637, which the Enshrouded server uses by default.

sudo apt update
sudo apt upgrade -y

Wine Installation: Running Windows Applications on Ubuntu

Since the Enshrouded server application is designed for Windows, we’ll use Wine to run it on Ubuntu. This process includes creating a keyring directory, downloading the Wine GPG key, adding the Wine repository, and installing Wine along with necessary packages like cabextract, winbind, screen, and xvfb. Additionally, adding the multiverse repository is essential for accessing SteamCMD, a tool required for the server setup.

sudo apt install software-properties-common lsb-release wget
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key
sudo wget -NP /etc/apt/sources.list.d/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/dists/$(lsb_release -cs)/winehq-$(lsb_release -cs).sources
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install --install-recommends winehq-staging
sudo apt install cabextract winbind screen xvfb
sudo add-apt-repository multiverse

SteamCMD and Server Installation: The Heart of Your Enshrouded Server

With Wine and the necessary packages in place, the next step is installing SteamCMD. This tool allows you to download the Enshrouded dedicated server. After installing SteamCMD, you’ll create a user specifically for running the server, avoiding the use of the root user for security reasons. The server installation then proceeds with specific SteamCMD commands to download and set up the Enshrouded server on your system.

sudo apt update
sudo apt install steamcmd
sudo useradd -m enshrouded
sudo -u enshrouded -s
cd ~
/usr/games/steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir /home/enshrouded/enshroudedserver +login anonymous +app_update 2278520 +quit

Running and Managing Your Server: From Startup to Adventure

Once the server is installed, starting it involves using Wine to run the enshrouded_server.exe file. Configuring the server is straightforward, with a json file allowing you to set parameters such as the server IP, name, password, and player slots to tailor the gaming experience to your preferences.

To ensure your server runs smoothly, creating a service file for the Enshrouded server is recommended. This service file will help manage the server’s operation, allowing it to restart automatically in case of crashes and to boot with the system. Detailed instructions are provided for creating this service file, enabling, starting, disabling, and stopping the service, ensuring full control over your server’s lifecycle.

wine64 ~/enshroudedserver/enshrouded_server.exe
[Session] 'HostOnline' (up)!
[Session] finished transition from 'Lobby' to 'Host_Online' (current='Host_Online')!

After running the Enshrouded Dedicated Server on Ubuntu, it will automatically create a configuration file.

  • You can edit this configuration file to control the number of players and set a password for the server.
  • Set the server ip (important!), server name, password, and slot count as desired.
nano ~/enshroudedserver/enshrouded_server.json

Creating a Service

A service file helps ensure that your server restarts if it crashes and also means it will automatically start when your server powers on.

sudo nano /etc/systemd/system/enshrouded.service

Add the following configuration:

Description=Enshrouded Server

ExecStartPre=/usr/games/steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir /home/enshrouded/enshroudedserver +login anonymous +app_update 2278520 +quit
ExecStart=/usr/bin/wine64 /home/enshrouded/enshroudedserver/enshrouded_server.exe


Enable and Start the Service

sudo systemctl enable enshrouded
sudo systemctl start enshrouded

Disable and Stop the Service

sudo systemctl disable enshrouded
sudo systemctl stop enshrouded

Conclusion: Your Gateway to Embervale

By following this guide, you’ve taken the first steps into the world of server hosting, specifically tailored for the survival action RPG, Enshrouded. This setup not only allows you to host your adventures in the magical world of Embervale but also opens the door to shared experiences with friends, all from the comfort of your dedicated Ubuntu server. Whether crafting, exploring, or battling the creatures of Embervale, your dedicated server is the backbone of your adventure, ready to support your journey through this captivating game.

Series Navigation<< Enshrouded Dedicated Server auf Ubuntu einrichten

Was this helpful?

Thanks for your feedback!