Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Server Hosting Support
  3. [Headless] Plutonium IW5 Linux Server Setup

[Headless] Plutonium IW5 Linux Server Setup

Scheduled Pinned Locked Moved MW3 Server Hosting Support
linuxiw5server
6 Posts 2 Posters 4.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on Apr 15, 2020, 1:04 AM last edited by A Former User May 6, 2020, 4:00 AM
    #1

    Hello Everyone,

    Today I am going to show you how to setup a Plutonium IW5 Server using Linux.
    The distro I will be using is Ubuntu 18.04 Bionic however anything above 16.04 should be fine. You will probably be able to infer these commands to Centos/RHEL Distros.

    VPS/Dedi Setup

    First things first you need to get yourself a VPS/Dedicated Server with Ubuntu installed and Ideally have root access.

    Lets update the server and get it up to date.
    apt-get update && apt-get upgrade -y

    We will then setup a basic firewall with fail2ban to automatically ipblock users trying to brute force into the server.

    apt install -y ufw fail2ban && \
    ufw allow 22/tcp && \
    ufw default allow outgoing && \
    ufw default deny incoming && \
    ufw enable
    

    Installing Wine

    Wine has been around for a long time, but its still awkward as ever to get setup nicely. The latest version has had a lot of fixes so we are going to be installing that.

    ## Allow i386 Architecture
    dpkg --add-architecture i386 && \
    apt-get update && \
    apt-get install wget gnupg2 software-properties-common -y
    
    • Ubuntu 16.04
    apt install -y apt-transport-https
    
    ## We will now setup the winehq key and repo
    wget -qO - https://dl.winehq.org/wine-builds/winehq.key | apt-key add - && \
    apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
    
    apt-get update
    
    ## Now we will install wine
    apt-get install -y --install-recommends winehq-stable
    
    • Ubuntu 18.04
    ## We will now setup the winehq key and repo
    wget -qO - https://dl.winehq.org/wine-builds/winehq.key | apt-key add - && \
    apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
    
    apt-get update
    
    ## Now we will install wine
    apt-get install -y --install-recommends winehq-stable
    

    The next part of this guide should be conducted on the user you want to run the IW5 Server. e.g. plutouser. For this example I will be using the root user.

    Wine Configuration

    We are now going to configure a wine prefix and some env variables to get rid of those pesky warnings.

    ## Add Variables to the environment at the end of ~/.bashrc
    echo -e 'export WINEPREFIX=~/.wine\nexport WINEDEBUG=fixme-all\nexport WINEARCH=win64' >> ~/.bashrc
    
    ## Update our session
    source ~/.bashrc
    
    ## Configure our wine environment
    winecfg
    

    Congratulations, wine is now installed and enabled with a 64 bit prefix.

    Plutonium Dedicated Server Setup

    Installing Plutonium Bootstrapper

    We are now going to install the bootstrapper which we only need one installation for if configured correctly when it comes to logging. However we will touch on that later.

    ## Change to the home directory
    cd ~/
    
    ## Install the plutonium files into ~/pluto
    wget https://cdn.plutonium.pw/updater/plutonium -O plutonium && \
    chmod +x ./plutonium && \
    ./plutonium -install-dir ./pluto
    

    Now the bootstrapper is installed and ready to use.

    Installing the base game server files.

    So before we can start configuring our server we first need to source the files. I recommend using SteamCMD.

    ## Install SteamCMD
    add-apt-repository multiverse && \
    apt update && \
    apt install lib32gcc1 steamcmd -y
    
    ## Install the server files into ~/server e.g. /root/server
    steamcmd +@sSteamCmdForcePlatformType windows +login <STEAMUSERNAME> +force_install_dir ~/server +app_update 42750 validate +quit
    
    ## Delete steam_api.dll from the directory
    rm ~/server/steam_api.dll
    

    Once the above is complete we have the bootstrapper and the server files ready. We can now start configuring.

    Creating the server.cfg
    Now you can name this whatever you want however for simplicity I am going to use server.cfg

    Head over to the ~/server/admin folder and delete/replace the server.cfg with the following:

    ENSURE TO READ THE WHOLE CONFIG LINE BY LINE AND MAKE MODIFICATIONS

    // Pluto IW5 Server Configuration
    
    // Server host name
    // This is only used for the title of the command window/IW4MAdmin. To set the hostname for the server go to:
    // https://platform.plutonium.pw/serverkeys
    seta sv_hostname "Plutonium Server IW5"
    
    // Server MOTD
    // This is displayed on the loading screen below the loading bar.
    seta sv_motd "My default server MOTD"
    
    // Map Rotation
    seta sv_maprotation "dsr TDM_default map mp_alpha map mp_bootleg map mp_bravo map mp_carbon map mp_dome map mp_exchange map mp_hardhat map mp_interchange map mp_lambeth map mp_mogadishu map mp_paris map mp_plaza2 map mp_radar map mp_seatown map mp_underground map mp_village"
    
    // Maximum number of clients that may connect to this server (range 1-18)
    seta sv_maxclients 18
    
    // Server password. If set, users will be prompted on join attempt.
    seta g_password ""
    
    // Default Gametype
    // seta g_gametype "ffa"
    
    // Server Log File
    // This can also be set on the command line, which may be better for hosting.
    seta g_log "games_mp.log"
    
    // Remote console password. If set, users will have access to a remote console, allowing server administration from a connected client.
    seta rcon_password "plutonium"
    
    // Change the name of the console
    seta sv_sayName "Server"
    
    // Allow double tap on weapon switching.
    seta sv_enableDoubleTaps "1"
    
    // Disable bounces.
    // seta sv_enableBounces "0"
    
    // Toggle voting for [player kick/map restart/next map] (0 or 1 (default) )
    seta g_allowVote 1
    
    // Toggle allowing dead players to chat with living players (0 (default) or 1)
    seta g_deadChat 0
    
    // Time in seconds before the server will kick a user for inactivity (range 0 - 10000)
    seta g_inactivity 120
    
    // Toggle flood protection (throttling of user commands - should be enabled for non-password-protected Internet servers) (0 or 1 (default))
    seta sv_floodProtect 1
    

    Key Things:
    seta sv_enableDoubleTaps "1"
    This enables doubletaps on weapon changes, if you want to disable this comment the line out or set to 0.

    seta g_log "games_mp.log"
    This must be unique per server instance, so if you are running multiple servers change this for example to server1.log

    ENSURE TO READ THE WHOLE CONFIG LINE BY LINE AND MAKE MODIFICATIONS

    Getting a server key

    In Plutonium we have built our own tooling, and as such to authenticate and tie a server to a specific person and allow us to control blacklisting. You will need to get a server key from: https://platform.plutonium.pw/serverkeys

    First you need to set a hostname and also the game, which in this case is IW5MP

    620f8b6b-d291-4dac-b2cf-2dd3b90e041f-image.png

    Once you click create, a new row will be added to the table below. Which will contain the hostname, server key, last used date and creation date. The hostname can be editted by clicking the green cog on the right hand side.
    firefox_Jxq1VaNcQc.png

    If you hover of the key field, it will show you your key which you will need to copy/need in the next step.

    Starting the server

    Awesome, we are so close to getting our server online and showing in the server list. We need to decide on the port our server will run. The default is 27016 however this can be changed / if you want to host multiple servers.

    I am going to use 27016, now if you remember we locked down the ports for incoming traffic, which our server now needs. To do this I will open up traffic on port 27016 with the following command.

    ufw allow 27016 comment PlutoIW5Server1 && \
    ufw reload
    

    Our port is now open so when we start the server people will be able to connect to it.

    Next up the server run command

    • You will need to know your Server Key
    • You will need to change server.cfg to whatever you called your config. (if you followed this guide its server.cfg)
    • The port you chose e.g. 27016
    ## Head back to our plutonium directory.
    cd ~/pluto
    
    ## Start our first server
    wine .\\bin\\plutonium-bootstrapper-win32.exe iw5mp ~/server/ -dedicated +start_map_rotate +set key <SERVERKEY> +set net_port 27016 +set sv_config server.cfg
    

    Give it a few seconds to boot up.... and boom there it is in the server list waiting for you and your friends to join.

    1 Reply Last reply
    2
    • ? Offline
      ? Offline
      A Former User
      wrote on Apr 15, 2020, 1:04 AM last edited by A Former User Apr 19, 2020, 3:37 AM
      #2

      How can I make my server install smaller?

      Main Folder
      Only these files are needed in the main folder to run a server.

      387a6a8c-b596-404a-bfdb-99c5942db0f3-image.png

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on Apr 15, 2020, 1:04 AM last edited by
        #3

        reserved

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on Apr 15, 2020, 1:04 AM last edited by
          #4

          reserved

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on Apr 15, 2020, 1:04 AM last edited by
            #5

            reserved

            1 Reply Last reply
            0
            • luigistyleundefined Offline
              luigistyleundefined Offline
              luigistyle Plutonium Staff
              wrote on Apr 16, 2020, 4:09 PM last edited by
              #6

              reserved

              1 Reply Last reply
              0
              • undefined Example6428 referenced this topic on Sep 28, 2024, 4:49 AM

              1/6

              Apr 15, 2020, 1:04 AM

              • Login

              • Don't have an account? Register

              • Login or register to search.
              1 / 1
              • First post
                1/6
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Donate