Enshrouded is an open-world survival RPG where players explore, craft, and survive in a harsh environment. Setting up a dedicated server allows you to host a game that you and your friends can join, with full control over game settings. In this guide, we’ll outline the steps for setting up an Enshrouded server on your AnonVM VPS.
Prerequisites
Ensure you have:
- A VPS from AnonVM with at least 2 GB of RAM and 2 CPU cores (recommended for a small server).
- SSH access to your VPS.
- Basic knowledge of Linux command line.
- Enshrouded game server files (either through SteamCMD or a specific distribution method from the game's developers).
Step 1: Access Your AnonVM VPS
-
Log into your AnonVM dashboard.
-
Use an SSH client (e.g., PuTTY for Windows or terminal for Linux/Mac) to access your VPS by running:
Replace
your-vps-ip
with the actual IP address of your VPS. Enter your password when prompted.
Step 2: Install Dependencies
-
Update your VPS: Update your system to make sure it is fully up-to-date:
-
Install required libraries: Depending on the game server, you may need to install specific libraries (e.g., 32-bit libraries for certain game engines):
Step 3: Install Game Server Files
If Enshrouded offers a server installation through SteamCMD (similar to other multiplayer games), you’ll need to download the server files.
-
Install SteamCMD:
-
Install
wget
if it's not already installed: -
Download SteamCMD:
-
Extract the downloaded file:
-
Run SteamCMD to initialize:
After running the above, you can exit by typing:
-
-
Install Enshrouded Server: Assuming the server for Enshrouded is available via SteamCMD, you can use the following commands:
Inside SteamCMD, log in as an anonymous user and specify the installation directory:
Replace
<app_id>
with the actual app ID for Enshrouded (you can find this on Steam’s database if it's available).
Step 4: Configure the Server
-
Edit the server configuration files: After installing the server, you’ll likely have configuration files in
/home/enshrouded/server
.Edit files such as
server.cfg
to customize the server’s settings:Typical settings to configure:
- hostname: Set your server’s name.
- server_password: Set a password for your server if needed.
- max_players: Adjust the maximum number of players allowed.
- game_mode: Select the game mode (e.g., PvP or PvE).
Example:
-
Map rotation and server settings: If there is a map rotation or other server-specific settings, they will likely be configured in separate files like
mapcycle.txt
or similar.
Step 5: Open Ports on Your VPS
To allow other players to join your server, you need to open the necessary ports.
-
Find out which ports Enshrouded uses (usually listed on the official documentation or community forums). You can open these ports using UFW:
Example for opening common game ports (e.g., 7777, 27015):
Step 6: Run the Server
-
Start the server: After configuring everything, you can start the server by running the following command:
Make sure to check the specific executable or script name based on your game’s server files.
-
Run in the background: If you want to keep the server running after disconnecting from SSH, you can use
screen
ortmux
.To install
screen
:Then, run:
To detach from the screen session, press
Ctrl + A
, thenD
. To reattach: