{"id":28245004,"url":"https://github.com/bonsaibauer/enshrouded_server_ubuntu","last_synced_at":"2025-08-07T16:10:31.410Z","repository":{"id":287213042,"uuid":"764631809","full_name":"bonsaibauer/enshrouded_server_ubuntu","owner":"bonsaibauer","description":"Setting up an Enshrouded Dedicated Server on Ubuntu","archived":false,"fork":false,"pushed_at":"2025-05-13T09:31:27.000Z","size":3168,"stargazers_count":35,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T11:41:16.677Z","etag":null,"topics":["apache2","beginner","beginner-friendly","dedicated","dedicated-server","enshrouded","enshrouded-server","games","gameserver","gaming","guide","server","server-setup","steamcmd","steamcmd-servers","ubuntu","ubuntu-server","ubuntu2204","ubuntu2404","wine"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bonsaibauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-28T12:39:02.000Z","updated_at":"2025-06-10T17:00:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"2204f581-2e20-42ef-b279-1c33e21ef691","html_url":"https://github.com/bonsaibauer/enshrouded_server_ubuntu","commit_stats":null,"previous_names":["bonsaibauer/enshrouded_server_ubuntu"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bonsaibauer/enshrouded_server_ubuntu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsaibauer%2Fenshrouded_server_ubuntu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsaibauer%2Fenshrouded_server_ubuntu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsaibauer%2Fenshrouded_server_ubuntu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsaibauer%2Fenshrouded_server_ubuntu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bonsaibauer","download_url":"https://codeload.github.com/bonsaibauer/enshrouded_server_ubuntu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonsaibauer%2Fenshrouded_server_ubuntu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262685118,"owners_count":23348409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache2","beginner","beginner-friendly","dedicated","dedicated-server","enshrouded","enshrouded-server","games","gameserver","gaming","guide","server","server-setup","steamcmd","steamcmd-servers","ubuntu","ubuntu-server","ubuntu2204","ubuntu2404","wine"],"created_at":"2025-05-19T08:14:35.883Z","updated_at":"2025-08-07T16:10:31.389Z","avatar_url":"https://github.com/bonsaibauer.png","language":null,"funding_links":["https://buymeacoffee.com/bonsaibauer"],"categories":[],"sub_categories":[],"readme":"[![Repository](https://img.shields.io/badge/Repository-enshrouded__server__ubuntu-blue?style=flat\u0026logo=github)](https://github.com/bonsaibauer/enshrouded_server_ubuntu)\n![License](https://img.shields.io/badge/License-MIT-blue)\n![Visitors](https://visitor-badge.laobi.icu/badge?page_id=bonsaibauer.enshrouded_server_ubuntu)\n![Ubuntu 22.04](https://img.shields.io/badge/Ubuntu-22.04-4CAF50?style=flat\u0026logo=ubuntu\u0026logoColor=white)\n![Ubuntu 24.04](https://img.shields.io/badge/Ubuntu-24.04%20(tested)-4CAF50?style=flat\u0026logo=ubuntu\u0026logoColor=white)\n\n[![Report Problem](https://img.shields.io/badge/Report-new_Problem_or_Issue-critical?style=flat\u0026logo=github)](https://github.com/bonsaibauer/enshrouded_server_ubuntu/issues/new)\n![GitHub Stars](https://img.shields.io/github/stars/bonsaibauer/enshrouded_server_ubuntu?style=social)\n![GitHub Forks](https://img.shields.io/github/forks/bonsaibauer/enshrouded_server_ubuntu?style=social)\n\n\u003ca href=\"https://github.com/bonsaibauer/enshrouded_server_docker\" target=\"_blank\" style=\"display: inline-block; padding: 16px 24px; background-color: #007bff; color: white; text-decoration: none; border-radius: 8px; font-size: 18px; font-weight: bold; box-shadow: 0 4px 6px rgba(0,0,0,0.1);\"\u003e\n  🐳 Use Docker? Go to bonsaibauer/enshrouded_server_docker →\n\u003c/a\u003e\n\n# Setting Up an Enshrouded Dedicated Server on Ubuntu: A Beginner's Guide\n\nEmbark on an adventure in the mystical world of Embervale with your own dedicated Enshrouded server. This guide will walk you through setting up a dedicated server for Enshrouded on Ubuntu, ensuring you and your friends can enjoy this survival action RPG to its fullest.\n\n## Enshrouded: A Vast World of Survival and Magic\n\nEnshrouded is an immersive survival action RPG set in a vast, voxel-based open world. Players must navigate through dangerous terrains, craft items for survival, and battle against various creatures. The game supports cooperative play for up to 16 players, allowing for a shared adventure in the magical world of Embervale.\n\n![Enshrouded Ubuntu Server Setup](enshrouded_ubuntu.png)\n\u003csub\u003eImage generated with the help of [ChatGPT](https://openai.com/chatgpt)\u003c/sub\u003e\n\n# 0. Preparing Your Environment\n\n## Prerequisites\n\n- ✅ Ubuntu 22.04 (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.)\n- ✅ Ubuntu 24.04 (tested)\n- sudo privileges\n- ufw settings (Please note that the Enshrouded dedicated server uses port 15637 by default. You must port forward to allow outside access to your server. Additionally, if you are using a firewall such as UFW you will need to allow these port.)\n\n### System Update\n\nEnsure your Ubuntu system is up-to-date to avoid any compatibility issues.\n\n```bash\nsudo apt update\nsudo apt upgrade -y\n```\n\n### Install Required Packages\n\nInstall essential packages for setting up your server.\n\n```bash\nsudo apt install software-properties-common lsb-release wget\n```\n\n# 1. Wine Installation\n\nWe'll use Wine to run the Enshrouded server application, designed for Windows, on Ubuntu.\n\n### Create Keyring Directory\n\nThis directory stores the Wine GPG key.\n\n```bash\nsudo mkdir -pm755 /etc/apt/keyrings\n```\n\n### Download Wine GPG Key\n\nSecurely download the Wine repository GPG key.\n\n```bash\nsudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key\n```\n\n### Add Wine Repository\n\nFetch the latest Wine version by adding its repository.\n\n```bash\nsudo 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\n```\n\nYou can add a new architecture by using the following command.\n```bash\nsudo dpkg --add-architecture i386\n```\n### Update and Install Wine\n\nRefresh your package list and install Wine.\n\n```bash\nsudo apt update\nsudo apt install --install-recommends winehq-staging\n```\n\nWe need a few extra packages for Wine to work with the Enshrouded dedicated server on Ubuntu.\n\n\n```bash\nsudo apt install cabextract winbind screen xvfb\n```\n\nNext, 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.\n\n\n```bash\nsudo add-apt-repository multiverse\n```\n\n\n# 2. SteamCMD and Enshrouded Server Installation\n\n## SteamCMD Setup\n\nInstall SteamCMD, required to download the Enshrouded dedicated server.\n\n```bash\nsudo apt update\nsudo apt install steamcmd\n```\n### Creating a User to Run the Server on Ubuntu\nAs the SteamCMD tool is not meant to be run by the root user, we must create one. \n- Use the following command to create a user called “enshrouded” on your system.\n\n```bash\nsudo useradd -m enshrouded\nsudo -u enshrouded -s\ncd ~\n```\n\n### Server Installation\n\nUse SteamCMD to install the Enshrouded dedicated server.\n\n```bash\n/usr/games/steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir /home/enshrouded/enshroudedserver +login anonymous +app_update 2278520 +quit\n```\n\n# 3. Running and Managing Your Server\n\n### Starting the Server\n\nWe 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.\n\n```bash\nwine64 ~/enshroudedserver/enshrouded_server.exe\n```\nThanks to [dingodeluxe](https://github.com/dingodeluxe):  \nAfter auto wine updates, you might need to use `wine` instead of `wine64`:\n```bash\nwine ~/enshroudedserver/enshrouded_server.exe\n```\nOnce 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.\n\n```bash\n[Session] 'HostOnline' (up)!\n[Session] finished transition from 'Lobby' to 'Host_Online' (current='Host_Online')!\n```\n\n# 4. Configuring the Enshrouded Dedicated Server on Ubuntu\n\nAfter running the Enshrouded Dedicated Server on Ubuntu, it will automatically create a configuration file.\n\n- You can edit this configuration file to control the number of players and set a password for the server.\n- Set the server ip (important!), server name, password, and slot count as desired.\n\n```bash\nnano ~/enshroudedserver/enshrouded_server.json\n```\n\n---\n\n### General Server Settings\n\n| Setting            | Description                                | Example / Default Value | Options / Notes          |\n|--------------------|--------------------------------------------|--------------------------|---------------------------|\n| **name**           | Name of the server                         | \"Enshrouded Server\"      | Any string                |\n| **saveDirectory**  | Directory where savegames are stored       | \"./savegame\"             | File path                 |\n| **logDirectory**   | Directory for log files                    | \"./logs\"                 | File path                 |\n| **ip**             | Server IP binding                          | \"0.0.0.0\"                | Server ip adress          |\n| ...                | ...                                        | ...                      | ...                       |\n\n... [View full server settings here](https://github.com/bonsaibauer/enshrouded_server_ubuntu/blob/main/enshrouded_server.md)\n\n# 5. Creating a Service\nA service file helps ensure that your server restarts if it crashes and also means it will automatically start when your server powers on.\n\n```bash\nsudo nano /etc/systemd/system/enshrouded.service\n```\n\nAdd the following configuration:\n\n```ini\n[Unit]\nDescription=Enshrouded Server\nWants=network-online.target\nAfter=network-online.target\n\n[Service]\nUser=enshrouded\nGroup=enshrouded\nWorkingDirectory=/home/enshrouded/\nExecStartPre=/usr/games/steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir /home/enshrouded/enshroudedserver +login anonymous +app_update 2278520 +quit\nExecStart=/usr/bin/wine64 /home/enshrouded/enshroudedserver/enshrouded_server.exe\nRestart=always\n\n[Install]\nWantedBy=multi-user.target\n```\n\n### Enable and Start the Service\n\nEnsure your server starts with your system.\n\n```bash\nsudo systemctl enable enshrouded\nsudo systemctl start enshrouded\n```\n### Disable and Stop the Service\n\n```bash\nsudo systemctl disable enshrouded\nsudo systemctl stop enshrouded\n```\n# 6. Scheduled Restart for Enshrouded Server\nThe **Scheduled Restart** setup is designed to **automatically shut down and restart** the Enshrouded server at a specific time during the night. This helps improve server performance by clearing potential memory leaks, closing open processes, and ensuring that any minor issues or resource locking are resolved. \n\n**Note**: This process is experimental, and no guarantees are made regarding its effectiveness in all cases: [Scheduled Restart - Enshrouded Server](https://github.com/bonsaibauer/enshrouded_server_ubuntu/tree/main/scheduled_restart)\n\n# Conclusion\n\nBy following this guide, you've set up your own Enshrouded dedicated server on Ubuntu, ready to host your adventures in the mystical world of Embervale. Gather your friends and start your journey in this captivating survival action RPG.\n\n## Buy Me A Coffee\nIf this project has helped you in any way, do buy me a coffee so I can continue to build more of such projects in the future and share them with the community!\n\n\u003ca href=\"https://buymeacoffee.com/bonsaibauer\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonsaibauer%2Fenshrouded_server_ubuntu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonsaibauer%2Fenshrouded_server_ubuntu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonsaibauer%2Fenshrouded_server_ubuntu/lists"}