Managing Game Servers with LinuxGSM
LinuxGSM (Linux Game Server Manager) simplifies installation and management of dozens of game servers with a unified command-line interface.
Supported Games Include
Minecraft, CS2, Rust, Valheim, ARK: Survival Evolved, Garry's Mod, FiveM, 7 Days to Die, Project Zomboid, and many more.
Step 1 — Install Dependencies
apt update
apt install curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux netcat-openbsd lib32gcc-s1 -y
Step 2 — Create a User for Your Game
Replace csgoserver with the shortname for your game (e.g., mcserver, rustserver):
adduser --disabled-password --gecos "" csgoserver
su - csgoserver
Step 3 — Download LinuxGSM
wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh csgoserver
Step 4 — Install the Game Server
./csgoserver install
Common Commands
./csgoserver start # Start the server
./csgoserver stop # Stop the server
./csgoserver restart # Restart the server
./csgoserver status # Check server status
./csgoserver update # Update to latest version
./csgoserver monitor # Auto-restart if server crashes
./csgoserver details # View server connection info
./csgoserver console # Attach to the server console
For a full list of supported game server scripts, visit: https://linuxgsm.com/servers/