How to Install Unturned on InfernoVM: A Complete Guide

How to Install Unturned on InfernoVM: A Complete Guide

Unturned is a multiplayer survival game set in a world overrun by zombies. By hosting your own Unturned server on InfernoVM, you gain the ability to customize game settings and invite friends for a unique gaming experience. This tutorial will guide you through the installation and configuration process.

Prerequisites

Before starting the installation, ensure you have the following:

  • InfernoVM VPS or Dedicated Server: A server with root or sudo access.
  • Operating System: This guide assumes you are using Ubuntu or CentOS.
  • SSH Access: You'll need SSH access to your server to run commands.
  • Steam Account: A Steam account is required to download Unturned and run the server.

Step 1: Update Your System

It’s always a good idea to update your server’s packages before installing new software. To do this, run the following commands:

For Ubuntu/Debian-based systems:

sudo apt update sudo apt upgrade -y

For CentOS-based systems:

sudo yum update -y

Step 2: Install Dependencies

Unturned requires SteamCMD, a command-line tool used to install and update games from Steam.

For Ubuntu/Debian-based systems:

sudo apt install -y wget lib32gcc1 lib32stdc++6

For CentOS-based systems:

sudo yum install -y wget glibc.i686

Step 3: Install SteamCMD

  1. Create a directory for SteamCMD:

     
    mkdir -v /opt/steamcmd cd /opt/steamcmd
  2. Download SteamCMD:

     
    wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
  3. Extract the SteamCMD files:

     
    tar -xvzf steamcmd_linux.tar.gz
  4. Navigate to the SteamCMD directory:

     
    cd /opt/steamcmd

Step 4: Install Unturned Server Files

Now that SteamCMD is set up, you can use it to install the Unturned server.

  1. Run SteamCMD:

     
    ./steamcmd.sh
  2. Log in to SteamCMD using your Steam account or anonymously:

    • To log in anonymously:

       
      login anonymous
    • To log in with your Steam credentials:

       
      login your_steam_username your_steam_password
  3. Set the installation directory for Unturned:

     
    force_install_dir /opt/unturned
  4. Install the Unturned server:

    app_update 1110390 validate

    This will download and install the Unturned server files.

  5. Exit SteamCMD:

     
    quit

Step 5: Configure Unturned Server

After installation, you will need to configure your Unturned server to set up game rules, world settings, and player preferences.

  1. Navigate to the Unturned server directory:

     
    cd /opt/unturned
  2. The Unturned server will have several configuration files in the Servers directory. To configure your server, navigate to the server configuration files:

     
    cd Servers
  3. Edit the server configuration file (for example, MyServer/Config.json):

     
    nano MyServer/Config.json

    Key configuration options include:

    • ServerName: Set the name of your server.
    • Password: If you want your server to be private, set a password.
    • MaxPlayers: Set the maximum number of players allowed on your server.
    • Port: Configure the server’s port (default is 27015).
    • Map: Choose the map you want to use.

    Example configuration:

     
    { "ServerName": "My Unturned Server", "MaxPlayers": 16, "Password": "your_password_here", "Port": 27015, "Map": "PEI" }
  4. Save and exit the file (CTRL + X, then Y to confirm).

Step 6: Start the Unturned Server

To start the Unturned server, run the following command:

cd /opt/unturned ./Unturned_Headless.sh -nographics -batchmode -server

This will start the server in headless mode (without graphics) and enable batch processing, allowing it to run smoothly on a VPS.

Step 7: Set Up Automatic Startup (Optional)

To ensure the server starts automatically when your server reboots, you can create a systemd service.

  1. Create a systemd service file:

     
    sudo nano /etc/systemd/system/unturned.service
  2. Add the following content:

     
    [Unit] Description=Unturned Server After=network.target [Service] Type=simple WorkingDirectory=/opt/unturned ExecStart=/opt/unturned/Unturned_Headless.sh -nographics -batchmode -server User=your_user Restart=always [Install] WantedBy=multi-user.target

    Replace your_user with your actual user.

  3. Reload systemd to apply changes:

     
    sudo systemctl daemon-reload
  4. Enable the service to start on boot:

     
    sudo systemctl enable unturned
  5. Start the Unturned server service:

     
    sudo systemctl start unturned
  6. Verify the server status:

     
    sudo systemctl status unturned

Step 8: Connect to Your Unturned Server

To connect to your Unturned server, follow these steps:

  1. Open Unturned from your Steam library.
  2. Go to Play > Multiplayer > Connect.
  3. Enter your server’s IP address and port (default is 27015).

You can also make your server publicly visible or keep it private with a password.

Step 9: Secure Your Server (Optional)

For additional security, you may want to set up a firewall and limit who can access your server.

  • Firewall Configuration: Make sure the necessary ports (default 27015) are open in your firewall to allow players to connect.

    To allow traffic on port 27015, you can run:

     
    sudo ufw allow 27015/udp
  • Password Protection: If you want to secure your server, ensure that you set a Password in the Config.json file.

Conclusion

You’ve successfully installed and configured Unturned on your InfernoVM server. Now you can host a multiplayer game with your friends, control game settings, and enjoy a custom experience tailored to your preferences. Whether you’re playing privately or hosting for the community, the Unturned server is fully configurable to meet your needs.

Key Takeaways:

  • SteamCMD is required to download and install the Unturned server.
  • Use systemd to ensure the server starts automatically.
  • Make sure to configure the server settings for a custom gameplay experience.
  • Firewall protection and passwords are essential for securing your server.

Now you can enjoy Unturned with your friends or the community, hosted on your InfernoVM server! Happy surviving!

Răspunsul a fost util? 0 utilizatori au considerat informația utilă (0 Voturi)

Powered by WHMCompleteSolution