How to Set Up a Euro Truck Simulator 2 Dedicated Server on AnonVM Hosting

How to Set Up a Euro Truck Simulator 2 Dedicated Server on AnonVM Hosting

Introduction

Euro Truck Simulator 2 is a popular truck driving simulator where players can take control of a trucking company, delivering goods across a vast map of Europe. Setting up your own dedicated server lets you and your community enjoy custom settings, mods, and a more personalized multiplayer experience.

Prerequisites

  • An AnonVM VPS with at least 2GB of RAM and 2 CPU cores (recommended for stable performance).
  • SSH access to your VPS.
  • Basic knowledge of Linux command-line operations.
  • Euro Truck Simulator 2 server files (available through SteamCMD or through SCS Software’s official distribution method).

Step 1: Access Your AnonVM VPS

  1. Log in to your AnonVM dashboard and access your VPS details.
  2. Use SSH to connect to your VPS:
     
    ssh root@your-vps-ip
    Replace your-vps-ip with the actual IP address of your VPS.

Step 2: Install Required Dependencies

  1. Update your system: First, make sure your system is up to date:

     
    apt-get update && apt-get upgrade -y
  2. Install required libraries: Euro Truck Simulator 2 may require certain dependencies to run. Install the basic libraries with:

     
    apt-get install lib32gcc1 -y

Step 3: Install SteamCMD

SteamCMD is a tool used to install and update dedicated servers for many Steam games, including ETS2.

  1. Install SteamCMD: Create a directory to store SteamCMD and download it:

     
    mkdir -p /home/steam cd /home/steam wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
  2. Extract SteamCMD: Extract the files from the downloaded archive:

     
    tar -xvzf steamcmd_linux.tar.gz
  3. Run SteamCMD: Execute SteamCMD to initialize it:

     
    ./steamcmd.sh

    After this, you can exit SteamCMD by typing quit.


Step 4: Download Euro Truck Simulator 2 Server Files

  1. Install the server files: Use SteamCMD to download the Euro Truck Simulator 2 server files:

     
    ./steamcmd.sh

    Inside SteamCMD, run the following commands:

     
    login anonymous force_install_dir /home/ets2server app_update 227300 validate quit

    The 227300 app ID is for Euro Truck Simulator 2. This will download the dedicated server files to the /home/ets2server directory.


Step 5: Configure the Server

  1. Navigate to the server configuration files: Once the server files are downloaded, navigate to the ETS2 server folder:

     
    cd /home/ets2server
  2. Edit the configuration files: Euro Truck Simulator 2's server configuration files are typically located in the server folder, with files like server_config.sii. Open the configuration file to modify the server settings:

     
    nano /home/ets2server/server_config.sii

    Here are some common configuration options to adjust:

    • server_name: Set your server name.
    • max_players: Set the maximum number of players allowed on the server.
    • password: If you want to restrict access, set a password.
    • game_mode: Choose between "Freeroam" or "Convoy."

    Example of a configuration:

    ini
     
    server_name: "Euro Truck Simulator 2 - My Custom Server" max_players: 8 password: "mysecretpassword" game_mode: "Freeroam"

Step 6: Open Required Ports on Your VPS

To allow players to connect to your server, you need to open the necessary ports in your VPS firewall.

  1. Find out the necessary ports for Euro Truck Simulator 2. Typically, these ports are:

    • TCP/UDP Port 27015: For game traffic.
    • TCP/UDP Port 20810-20812: For Steam-related services.
  2. Open the required ports using UFW (Uncomplicated Firewall):

     
    ufw allow 27015/tcp ufw allow 20810:20812/tcp ufw reload

Step 7: Start the Server

  1. Start the server: After configuring everything, you can start your Euro Truck Simulator 2 dedicated server:

     
    ./start.sh

    This will launch the server with the settings from the configuration file.

  2. Running the server in the background: You can use screen or tmux to run the server in the background:

    • Install screen:

       
      apt-get install screen -y
    • Start a new screen session:

       
      screen -S ets2server ./start.sh
    • To detach from the screen session, press Ctrl + A, then D. To reattach later:

       
      screen -r ets2server

Step 8: Connect to Your Server

Once the server is running, players can join your server by entering the IP address of your VPS followed by the port (e.g., your-vps-ip:27015).

  1. Launch Euro Truck Simulator 2.
  2. Go to Multiplayer, then select Server Browser.
  3. Enter your server’s IP address or search for it by name if you’ve made it public.

Step 9: Update the Server

To ensure your server is up to date with the latest patches and updates, you should regularly check for updates through SteamCMD.

  1. Stop the server by pressing Ctrl + C in the screen session.

  2. Run the following commands to update the server:

     
    ./steamcmd.sh login anonymous force_install_dir /home/ets2server app_update 227300 validate quit
  3. Restart the server by running ./start.sh again.


Conclusion

By following these steps, you now have a Euro Truck Simulator 2 dedicated server running on your AnonVM VPS. You and your friends can now enjoy driving across Europe, delivering cargo in a persistent multiplayer world. Custom settings, mod support, and private access to the game make hosting your own server a great option.

If you encounter any issues during setup or need to make further customizations (like adding mods or custom maps), you can refer to community resources or the official Euro Truck Simulator 2 forums for additional help.

Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution