How to Set Up a Dedicated Enshrouded Server on AnonVM Hosting

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

  1. Log into your AnonVM dashboard.

  2. Use an SSH client (e.g., PuTTY for Windows or terminal for Linux/Mac) to access your VPS by running:

     
    ssh root@your-vps-ip

    Replace your-vps-ip with the actual IP address of your VPS. Enter your password when prompted.


Step 2: Install Dependencies

  1. Update your VPS: Update your system to make sure it is fully up-to-date:

     
    apt-get update && apt-get upgrade -y
  2. Install required libraries: Depending on the game server, you may need to install specific libraries (e.g., 32-bit libraries for certain game engines):

     
    apt-get install lib32gcc1 -y

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.

  1. Install SteamCMD:

    • Install wget if it's not already installed:

       
      apt-get install wget -y
    • Download SteamCMD:

       
      mkdir -p /home/steam cd /home/steam wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
    • Extract the downloaded file:

       
      tar -xvzf steamcmd_linux.tar.gz
    • Run SteamCMD to initialize:

       
      ./steamcmd.sh

    After running the above, you can exit by typing:

     
    quit
  2. Install Enshrouded Server: Assuming the server for Enshrouded is available via SteamCMD, you can use the following commands:

     
    ./steamcmd.sh

    Inside SteamCMD, log in as an anonymous user and specify the installation directory:

     
    login anonymous force_install_dir /home/enshrouded app_update <app_id> validate quit

    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

  1. 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:

     
    nano /home/enshrouded/server/config/server.cfg

    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:

    txt
     
    hostname "Enshrouded - My Survival Server" server_password "password123" max_players 16 game_mode "survival"
  2. 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):

     
    ufw allow 7777/udp ufw allow 27015/udp ufw reload

Step 6: Run the Server

  1. Start the server: After configuring everything, you can start the server by running the following command:

     
    cd /home/enshrouded ./server_start.sh

    Make sure to check the specific executable or script name based on your game’s server files.

  2. Run in the background: If you want to keep the server running after disconnecting from SSH, you can use screen or tmux.

    To install screen:

     
    apt-get install screen -y

    Then, run:

     
    screen -S enshrouded ./server_start.sh

    To detach from the screen session, press Ctrl + A, then D. To reattach:

     
    screen -r enshrouded
Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution