Setting up an Enshrouded Dedicated Server on Ubuntu

In this tutorial, we will show you how to set up an Enshrouded dedicated server on the Ubuntu operating system.

Ubuntu Enshrouded Server

Enshrouded is a survival game featuring action RPG combat and crafting. It has a vast voxel-based world that you can craft to your desires. This game also has support for up to 16 players and dedicated servers.

Setting up a dedicated server for Enshrouded allows you to have a server that runs 24/7 without it having to run on your main computer.

You don’t even need to own Enshrouded to be able to host your own server. The dedicated server is distributed as its own application that we can download and install anonymously. This saves you either having to buy the game or logging in to your account to run it.

This tutorial will walk you through the various steps of installing and running the Enshrouded dedicated server on Ubuntu. This includes writing a service file to keep the server running and setting up Wine.

While at the time of publishing, Enshrouded doesn’t have a native Linux server, we can use Wine to get it running with little to no issue.

While these steps are written for Ubuntu, they should also work if you wanted to set up an Enshrouded server on other Linux distributions such as Debian.

Installing the Enshrouded Dedicated Server to Ubuntu

The following sections will show you how to install and set up a dedicated Enshrouded server on Ubuntu.

As this server does not have a native Linux binary, we will rely heavily on Wine to get this server to work. Luckily, installing the latest versions of Wine is a straightforward process.

Please note that the Enshrouded dedicated server uses ports 15636 and 15637 by default. You must port forward both ports to allow outside access to your server. Additionally, if you are using a firewall such as UFW you will need to allow these ports.

Preparing your Ubuntu system to run the Enshrouded Server

1. Your first step will be to ensure your operating system is up to date by using the following two commands.

The first command will update the package list cache. The second will upgrade any out-of-date packages.

sudo apt update
sudo apt update -y

2. Next, we will install some packages that we will require when setting up the Enshrouded server on Ubuntu.

These packages are typically pre-installed on Ubuntu, but running this command won’t hurt.

sudo apt install software-properties-common lsb-release wget

Installing the Latest version of Wine

3. To run the Enshrouded dedicated server we will need to use the latest version of Wine. The version distributed in the Ubuntu repository is typically quite out of date.

To add the official Wine repository, we must ensure that the “/etc/apt/keyrings/” directory exists.

sudo mkdir -pm755 /etc/apt/keyrings

4. With the directory created, our next step will be to download and store the Wine GPG key within the “/etc/apt/keyrings” directory. A GPG key is used to verify the authenticity of the packages.

You can download and store this key by using the following command.

sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

5. Now that the GPG key is saved to our Ubuntu system, our next step is to save the sources list for WineHQ. By using the “lsb_release” command, we can insert the operating system ID and codename.

We can grab an already written source file for our Ubuntu distribution using the following command.

sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/dists/$(lsb_release -cs)/winehq-$(lsb_release -cs).sources

By using the “-NP” option, we can tell wget to save the sources file to our specified directory.

6. Since we have made changes to the available repositories, we must run an update of the package list cache.

Updating the package list cache is as easy as using the command below.

sudo apt update

7. We are finally at the point where we can download the latest version of Wine to our Ubuntu device by using the following command.

Using the “--install-recommends” option, we will install all recommended Wine packages including Wine64.

sudo apt install --install-recommends winehq-staging

8. We need a few extra packages for Wine to work with the Enshrouded dedicated server on Ubuntu.

You can install these packages by using the following command.

sudo apt install cabextract winbind screen xvfb

Setting up SteamCMD

9. Since the SteamCMD tool is only available as a 32-bit executable, we must add “i386” to our available architectures.

You can add a new architecture by using the following command.

sudo dpkg --add-architecture i386

10. Next, we must add the multiverse repository to our Ubuntu device. This is because SteamCMD is a closed-source tool that is not included in the standard repositories.

Adding this repository is as simple as using the following command.

sudo add-apt-repository multiverse

If you are using a non-Ubuntu operating system such as Debian, you will instead want to use the command below.

sudo apt-add-repository non-free

11. Since we have changed the repositories, we will need to run an update again by running the following command.

sudo apt update

12. Finally, to install the SteamCMD tool, you only need to use the command below.

We will use this tool shortly to install the Enshrouded dedicated server to Ubuntu.

sudo apt install steamcmd

Creating a User to Run the Server on Ubuntu

13. As the SteamCMD tool is not meant to be run by the root user, we must create one. As a bonus, it makes setting up a service easier.

Use the following command to create a user called “enshrouded” on your system.

sudo useradd -m enshrouded

By using the “-m” option, we are telling the useradd command to create the home directory for our new user.

14. With the user created, we will want to use the sudo command to change to that user.

Using the “enshrouded” user will ensure we don’t mess up permissions while setting up the Enshrouded dedicated server.

sudo -u enshrouded -s

15. After changing to the “enshrouded” user we just created, you will want to change to its home directory using the cd command.

cd ~

Installing the Enshrouded Dedicated Server on Ubuntu

16. We are finally at the point where we can download the Enshrouded dedicated server to our Ubuntu device.

All we need to do to get SteamCMD to download the server is to use the following command.

/usr/games/steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir /home/enshrouded/enshroudedserver +login anonymous +app_update 2278520 +quit

You will notice here that we have to force the platform type to “windows“. The reason for this is that at the time of publishing, Enshrouded did not have a build for a Linux-based system like Ubuntu.

Starting the Enshrouded Server

17. We can start the Enshrouded server on our Ubuntu device using the command below. You will notice that we must use “wine64” at the start to ensure we launch the server using Wine.

wine64 ~/enshroudedserver/enshrouded_server.exe

Once your server has started, the following two lines should appear within the terminal. While you can connect to the server now, you will likely want to adjust the configuration file.

[Session] 'HostOnline' (up)!
[Session] finished transition from 'Lobby' to 'Host_Online' (current='Host_Online')!

You can stop the server at any time by pressing CTRL + C on your keyboard.

Configuring the Enshrouded Dedicated Server on Ubuntu

18. 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.

To begin editing this configuration file, use the following command.

nano ~/enshroudedserver/enshrouded_server.json

19. Within this file, you will find a few different options. We will focus on three in particular.

a. The first of these options allows you to choose a name for your server. This is useful for making your Ubuntu Enshrouded Dedicated server easier to find within the browser.

        "name": "Enshrouded Server",

For example, if we wanted our server to have the name “PiMyLifeUp Enshrouded Server“, we would change this line to look like the following.

        "name": "PiMyLifeUp Enshrouded Server",

b. The password option is the other option you will likely be interested in within this file. Setting a password helps stop just anyone from connecting to your server.

By default, the password option is empty (""), meaning anyone can connect without issue.

        "password": "",

If we wanted to lock our Enshrouded server behind the password “pimylifeup“. Adjust the line to look like the following.

        "password": "pimylifeup",

c. The final option we are looking at is the “slotCount” option. Using this option, you can limit the number of players that can join your Enshrouded server. This value has a maximum of 16.

As a general rule of thumb, the Enshrouded server will consume 4GB of RAM without any users, then up to 6GB if you are using all 16 slots. It’s about 100MB of RAM required per connected player.

        "slotCount": 16

For example, to limit the number of players to 8, you would adjust this line to the following.

        "slotCount": 8

20. After adjusting the configuration file, you can save and quit by pressing CTRL + X, Y, and then ENTER.

Setting up a Service for the Enshrouded Server on Ubuntu

21. If you are trying to self-host your Enshrouded server on Ubuntu, you will likely want to set up 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

22. Within this file, you will want to type out the following lines. These lines set up how we want the system manager to start and manage the Enshrouded server.

[Unit]
Description=Enshrouded Server
Wants=network-online.target
After=network-online.target

[Service]
User=enshrouded
Group=enshrouded
WorkingDirectory=/home/enshrouded/
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
Restart=always

[Install]
WantedBy=multi-user.target

23. After typing the above lines, you can save and quit by pressing CTRL + X, Y, and then ENTER.

24. With the service file now written you will likely want to enable it. Enabling the Enshrouded service will ensure the server starts when your Ubuntu device powers on.

All you need to do to enable the service is run the below command.

sudo systemctl enable enshrouded

25. Enabling the service won’t automatically start the Enshrouded server. If you want the server to start immediately, use the command below.

sudo systemctl start enshrouded

26. If, for some reason, you don’t want the server to start automatically, you can disable the service by typing in the following command.

sudo systemctl disable enshrouded

27. You can also stop your Enshrouded server by running the following command.

sudo systemctl stop enshrouded

Connecting to your Ubuntu Enshrouded Dedicated Server

The following section will show you how to add and connect to your Ubuntu Enshrouded Dedicated server.

At the time of publishing, Enshrouded is missing the ability to specify an IP to connect to. To work around this, we can add the server as a favorite.

Adding your Server to Favorites

1. With the Steam client open on your computer, click the “View” option (1.) in the top toolbar.

A drop-down menu should appear. Select the “Game Servers” option (2.) within this list.

Open Steam Game Servers Panel

2. With the “Game Servers” dialog now open, change to the “Favorites” tab (1.).

After swapping tabs, click the select box in the top-right corner (2.). You will see a list of all the games that you own. Scroll down till you see “Enshrouded” (3.) and click it.

Select Enshrouded Within Favorites Screen

3. Now that we are within the favorites list for Enshrouded, click the plus (+) symbol down near the bottom of the dialog box.

Begin adding new favorite server

4. A box should appear asking you to add your server’s IP address.

Type in the IP address to the machine where you are hosting your dedicated Enshrouded server followed by the port “:15637” (1.). For example, we are connecting locally, so we used the local IP address “192.168.0.73:15637“.

After filling in the details for your Ubuntu Enshrouded server, click the “OK” button (2.).

Add your Ubuntu Enshrouded Server to your Steam

5. Within the game servers list, you should now see your server. If that is the case, you can now happily launch Enshrouded.

Ubuntu Enshrouded Dedicated Server added to your list

Connecting to your Enshrouded Server

6. Now that you have Enshrouded open, click the option labeled “PLAY“.

Open play menu in Enshrouded

7. You will see three options, click the one on the right labeled “JOIN“.

Select Join game option

8. If you followed our steps previously, you should now see your server at the top of the list.

You can connect to the server by clicking it or the “Join” button.

Connect to the self-hosted Ubuntu Enshrouded server

9. You should now be connected to your Ubuntu Enshrouded server.

Successfully connected to the server

Conclusion

Hopefully, at this stage, you will now have the Enshrouded dedicated server running on the Ubuntu operating system.

Running this server allows you to host a server for you and your friends without keeping the game running.

Please feel free to leave a comment below if you need any help with getting the Enshrouded server to run.

If you found this tutorial to be helpful, we recommend checking out our many other Ubuntu guides.

Print Friendly, PDF & Email

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Server Status

Aradippou Chat 1 Chat 2 Larnaca Limassol Nicosia

Chat Links

Official Links.

1. Chat 1.
2. Chat 2.

Alternative Mirror Links.

1. KiwiIRC 1.
2. KiwiIRC 2.

Other Web Clients.

1. IrcCloud.

Recent Posts

Related Posts:

Advertisement

Archives

Super Club Radio

Mighty Deals

CyIRC

CyIRC Tweets

Scroll Up
Fatal error: Uncaught WMAC\JSMin_UnterminatedStringException: WMAC\JSMin: Unterminated String at byte 1180: "+o.accessToken}}).then(e=>{if(!e.ok)throw e;return e});return a.catch(e=>{console.error(`Failed to logout chatrix session. deviceId: ${o.deviceId}`)}),a}})(); in /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php:215 Stack trace: #0 /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php(157): WMAC\JSMin->action(2) #1 /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php(96): WMAC\JSMin->min() #2 /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/class-main.php(375): WMAC\JSMin::minify('(function(){"us...') #3 /home/bszucbfe/public_html/wp-includes/class-wp-hook.php(324): WMAC_PluginMain->jsSnippetcacher('(function(){"us...', '/home/bszucbfe/...') #4 /home/bszucbfe/public_h in /home/bszucbfe/public_html/wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/ext/php/jsmin.php on line 215