[Guide] [Debian] T6 Server on Linux VPS/Dedicated Server

Topic created ยท 22 Posts ยท 506 Views
  • Hello Everyone,

    Today I am going to show you my personal setup a Plutonium T6 Server using Linux.
    The distribution used is Debian10.

    Diclamer :
    To make this guide I used several existing topics ๐Ÿ˜‡ .
    I also want to apologize in advance for my English, it is not very good.

    VPS/Dedi Setup :
    First things first you need to get yourself a VPS/Dedicated Server with Debian10 installed.

    Login as root user by default

    su -
    

    Lets update the server and get it up to date.

    # Update repository and Upgrade software
    apt-get update && apt-get upgrade -y
    

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

    # Install firewall and allow 22 port
    apt install -y ufw fail2ban && \
    ufw allow 22/tcp && \
    ufw default allow outgoing && \
    ufw default deny incoming && \
    ufw enable
    

    Installing Wine

    # Allow i386 Architecture
    dpkg --add-architecture i386 && \
    apt-get update && \
    apt-get install wget gnupg2 software-properties-common -y
    
    apt install -y apt-transport-https
    
    # We will now setup the winehq key and repository
    wget -nc https://dl.winehq.org/wine-builds/winehq.key
    
    apt-key add winehq.key && \
    apt-add-repository 'deb https://dl.winehq.org/wine-builds/debian/ buster main'
    
    # Setup key and repository for dependency of wine
    wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key
    
    apt-key add Release.key && \
    apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./'
    
    # Update repository 
    apt-get update
    
    ## Now we will install wine
    apt-get install -y --install-recommends winehq-stable
    
    # Remove key files
    rm winehq.key Release.key
    

    Wine Configuration

    # 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.

    Graphical interface (not required if you already have one or if you don't want one)

    apt-get install xfce4 xfce4-goodies thunar-archive-plugin
    

    if you want web browser, firefox is better.

    apt-get install firefox-esr
    

    Install T6 Server File
    You can download my pre-installed pack.

    Included:

    • Required Server File
    • Required Bin File
    • IW4MAdmin

    Mega | Last Update: 25/07/2021 | 1.75 GB

    Decompress the file and Create shortcut for zone file in Zombie & Multiplayer game-file.

    ## I Decompress file with rar, if you don't have rar
    apt-get install rar
    
    ## Decompress file
    mv ~/Downloads/T6_Server.rar ~
    rar x T6_Server.rar
    
    ## Create Shortcut
    ln -s ~/T6_Server/Server/zone ~/T6_Server/Server/Zombie/zone
    ln -s ~/T6_Server/Server/zone ~/T6_Server/Server/Multiplayer/zone
    

    Now if you have download pre-installed pack go to Server Configuration

    Or Follow installation Step by step
    Step 1:
    Download Required Server File [Torrent] ( I advise you to use QBittorrent )
    Then put the folder in a directory named T6_server

    Alternative
    Download the complete Game File [Torrent]

    Step 2:
    Transfer your Binary File via FTP ( I advise you to use FilleZilla )

    1. Win + R -> %localappdata%\
    2. Copy Plutonium File and Paste in your home path VPS/Dedicated Server

    After these steps you should have this in your VPS/Dedicated Server :

    Configuration T6 Server
    Now configure the server to run it. Open your terminal.
    if you have download pre-installed pack, the file is already existing you just have to edit it.

    # Go in your Binary File
    cd T6_server/Plutonium
    
    # We need create server launcher
    touch T6Server.sh
    nano T6Server.sh
    
    # Paste this and replace the attributes
    #----------------------------------------------------#
    # Shell Script for Linux Server T6 Plutonium
    PAT=~/T6_Server/Server/ # Your Game Path (where there is binkw32.dll)
    KEY='AAAAAAAAAAAAAAAAAAAAA' # Paste the server key from https://platform.plutonium.pw/serverkeys
    CFG=dedicated_zm.cfg # Name of the config file the server should use. (default: dedicated.cfg)
    PORT=4976 # Port used by the server (default: 4976) -> Don't forget to allow server port in ufw fail2ban
    MODE=t6zm # Game Mode ( Multiplayer / Zombie ) -> ( t6mp / t6zm )
    
    wine .\\bin\\plutonium-bootstrapper-win32.exe $MODE $PAT -dedicated +start_map_rotate +set key $KEY +set net_port $PORT +set sv_config $CFG
    #----------------------------------------------------#
    
    #Close nano Ctrl + X and Save
    
    #Make the file executable
    chmod +x ./T6Server.sh
    
    # Allow server port in ufw fail2ban
    ufw allow 4976 comment T6Server1 && \
    ufw reload
    
    #Launch Server
    ./T6Server.sh
    

    Result

    Pre-Required for IW4MAdmin
    Documentation and Download link -> IW4MAdmin | .NET

    #Installation .NET Core 3.1
    wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
    dpkg -i packages-microsoft-prod.deb
    rm packages-microsoft-prod.deb
    
    #Install the SDK
    #The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following commands:
    
    apt-get update; \
    	apt-get install -y dotnet-sdk-3.1
    
    #Install the runtime
    #The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn't provide the runtime. The following commands install the ASP.NET Core Runtime, which is the most compatible runtime for .NET. In your terminal, run the following commands:
    
    apt-get update; \
    	apt-get install -y aspnetcore-runtime-3.1
    
  • This post is deleted!
  • @vSKAH You probably didn't set the right path to your game file.

    look:

    And I don't see why you want to create a config.json

  • This post is deleted!
  • @vSKAH Did you install wine correctly ?

    you can try to execute the commands :

    • wine --help
    • wine --version
  • This post is deleted!
  • @vSKAH re-install wine you need to have wine version 6.0.1 . Follow the instructions, if you don't managed to do it, add me on discord, u can find it on my profile

  • Thanks for putting this all in one spot, I have been running a server on a AWS free tier box and it seems to be holding up just fine. ๐Ÿ‘

  • @olie304 You're welcome. Thank you for your reply, it makes me happy ๐Ÿ˜Š

  • This post is deleted!
  • Screenshot.png

    I get this error while trying to start the server from the console.

  • @Crazy_Playz it tells you what's wrong, it can't find the bo2 game files in the folder you specified in the bash script (PAT variable).

  • Can you update the files please? I have an invalid error ui

  • My server is running normally, but it does not appear in the list of servers. when I try to connect by console: connect ip: port; I get the following error: incompatible UI version ... any help ???....jpg

  • @ff_1994 @4FriendZone Error UI comes from the Binary File. Update it following the instructions :

    1. Update your game on your main computer.
    2. Transfer your Binary File via FTP ( I advise you to use FilleZilla )

    • Win + R -> %localappdata%\

    • Copy Plutonium File and Paste in your server file

    3. Re-launch your server.

    If it doesn't work, let me know.

  • Guys I have some problem when start the script:

    0070:err:explorer:initialize_display_settings Failed to query current display settings for L"\\.\DISPLAY1".
    0024:err:d3d:wined3d_adapter_init Failed to initialise output, hr 0x80070057.
    Loading fastfile code_pre_gfx_zm
    Loading fastfile patch_zm
    Loading fastfile code_post_gfx_zm
    Parsing menu ui_mp/t6/hud/scoreboard.lua...
    connection with nix socket lost, reconnecting in 15s...
    [DW][Auth] Handling authentication request...
    [DW][Lobby] Handling hello request...
    Setting net_port to "4976" from command line.
    bound socket to localhost:4976
    Loading fastfile patch_ui_zm
    Loading fastfile ui_zm
    Loading fastfile common_zm
    Loading fastfile ffotd_tu13_zm_147
    scanning for plugins...
    Rotating to map "zm_buried"!
    server is changing maps, resetting stored team states...
    Loading fastfile dlczm0_load_zm
    Loading fastfile dlc1_load_zm
    Loading fastfile dlc2_load_zm
    Loading fastfile dlc3_load_zm
    Loading fastfile dlc4_load_zm
    Loading fastfile dlc0dd_load_zm
    Loading fastfile seasonpass_load_zm
    Sending heartbeat...
    Loading fastfile zm_buried_patch
    Loading fastfile zm_buried
    Loading fastfile so_zclassic_zm_buried
    Could not send heartbeat to nix! Error was: non-success status code: 401

    Sorry for my bad english. Someone can help me? I don't know what's wrong.

  • @Darlathan Did you correctly enter your server key or open your connection ports?

  • @Minami said in [Guide] [Debian] T6 Server on Linux VPS/Dedicated Server:

    Sorry i forgot my server key. Now this is the output:

    0054:err:ntdll:RtlpWaitForCriticalSection section 000000007BC64540 "dlls/ntdll/loader.c: loader_section" wait timed out in thread 0054, blocked by 0060, retrying (60 sec)
    0068:err:explorer:initialize_display_settings Failed to query current display settings for L"\\.\DISPLAY1".
    0104:err:explorer:initialize_display_settings Failed to query current display settings for L"\\.\DISPLAY1".
    0024:err:d3d:wined3d_adapter_init Failed to initialise output, hr 0x80070057.
    Loading fastfile code_pre_gfx_zm
    [DW][Auth] Handling authentication request...
    Loading fastfile patch_zm
    Loading fastfile code_post_gfx_zm
    Parsing menu ui_mp/t6/hud/scoreboard.lua...
    [DW][Lobby] Handling hello request...
    Setting net_port to "4976" from command line.
    bound socket to localhost:4976
    Loading fastfile patch_ui_zm
    Loading fastfile ui_zm
    Loading fastfile common_zm
    Loading fastfile ffotd_tu13_zm_147
    scanning for plugins...
    Rotating to map "zm_buried"!
    server is changing maps, resetting stored team states...
    Loading fastfile dlczm0_load_zm
    Loading fastfile dlc1_load_zm
    Loading fastfile dlc2_load_zm
    Loading fastfile dlc3_load_zm
    Loading fastfile dlc4_load_zm
    Loading fastfile dlc0dd_load_zm
    Loading fastfile seasonpass_load_zm
    Sending heartbeat...
    Loading fastfile zm_buried_patch
    Loading fastfile zm_buried
    Loading fastfile so_zclassic_zm_buried
    Heartbeat successful.

  • @Dss0 I don't know if everything is correct. I don't know how to connect to my server.

Log in to reply