Skip to content

1. Basic setup

Jonathan Linat edited this page Mar 22, 2024 · 24 revisions

In this guide, we'll walk you through the steps to launch your own Day of Defeat server using LinuxGSM on a Linux-based Virtual Private Server (VPS).

By following this guide, you'll learn how to establish a secure connection to your VPS, update your system packages, prepare for LinuxGSM installation, and configure your server for optimal performance.

Whether you're setting up a server for friends or a wider community, these instructions will ensure a smooth setup process and a stable gaming environment.

💬 Do You Need Support?

1.1 Install the Server Files

Establish a Secure Connection

To securely connect to your VPS, use SSH by replacing <ip-address> with your server's actual IP:

ssh root@<ip-address> -p 22

Update System Packages

Keep your system packages current with the following commands:

apt update && apt dist-upgrade --auto-remove --purge -y

Prepare for LinuxGSM

Before installing LinuxGSM, you'll need to install its dependencies:

dpkg --add-architecture i386 && apt update && apt install -y curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux netcat lib32gcc-s1 lib32stdc++6 libsdl2-2.0-0:i386 steamcmd

Create a Secure User Environment

For enhanced security, set up a non-root user:

adduser dodserver && su - dodserver

Assign a strong password and leave the extra user information empty.

Acquire LinuxGSM

Download and set up LinuxGSM for Day of Defeat:

curl -Lo linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh dodserver

Kickstart Server Installation

Initiate the installation process for your server:

./dodserver auto-install

Note

This is what you should get.

Install Complete!

To start server type:
./dodserver start

Your server is now successfully installed!


1.2 Configure the Server

Fine-Tune LinuxGSM

To ensure optimal performance, adjust the LinuxGSM settings as follows:

Configure Template

cp -rf lgsm/config-lgsm/dodserver/_default.cfg lgsm/config-lgsm/dodserver/dodserver.cfg

Modify Configuration

nano lgsm/config-lgsm/dodserver/dodserver.cfg

Modify all the desired variables and save the changes.

Verify Configuration Success

Conduct a pre-launch test to confirm your configurations:

./dodserver start && ./dodserver monitor && ./dodserver stop

Note

This is what you should get.

[  OK  ] Starting dodserver: LinuxGSM
[  OK  ] Monitoring dodserver: Checking session: OK
[  OK  ] Monitoring dodserver: Querying port: gsquery: 0.0.0.0:27015 : 0/1: DELAY
[  OK  ] Stopping dodserver: Graceful: sending "quit": 3: OK
[  OK  ] Stopping dodserver: LinuxGSM

Complete Your Server Setup

Personalize Server Settings

Customize your server to fit your preferences:

nano serverfiles/dod/dodserver.cfg

Change settings like hostname to your desired server name and save the changes.

Activate Your Server

Get your server up and running:

./dodserver start

Note

This is what you should get.

[  OK  ] Starting dodserver: [DoD 1.3 Community] US (https://discord.gg/dodcommunity)

Confirm Server Status

Ensure your server is operational:

./dodserver monitor

Note

This is what you should get.

[  OK  ] Monitoring dodserver: Checking session: OK
[  OK  ] Monitoring dodserver: Querying port: gsquery: 0.0.0.0:27015 : 0/1: OK

Your basic Day of Defeat server is now ready for action! You can also decide to enhance it by installing additional tools and mods.