Games with linux servers

Manage Your Game Server Easily With LinuxGSM

The command-line tool for quick, simple deployment and management of Linux dedicated game servers.

$ ./csgoserver install _

Linux

Works with your favourite Linux distros.

Easy to use

Designed to be simple to install and use.

Linux

Works with your favourite Linux distros.

Easy to use

Designed to be simple to install and use.

$ ./csgoserver install _

Many Games Supported

120 game servers are supported and counting.

Open Source

Written in BASH and using the MIT License.

Many Games Supported

120 game servers are supported and counting.

Open Source

Written in BASH and using the MIT License.

Traditionally game servers are not easy to manage yourself. Admins often have to spend hours messing around trying to get their server working. LinuxGSM is a command-line tool designed to be as simple as possible, allowing admins to spend less time on management and more time gaming.

Benefits

  • Easy to install
  • Simple CLI
  • Well documented
  • Automated
  • Regularly updated
  • Open source
  • Compatible

Features

  • Installer
  • Updater
  • Monitor
  • Alerts
  • Server Details
  • Backups
  • Console

The simple installer is designed to do all the hard work.

LinuxGSM checks dependencies, downloads game server files and loads default configs allowing a game server to be ready in minutes.

LinuxGSM makes configuring your game server simple.

Customise game server parameters and configs as well as LinuxGSM itself.

Controling a game server is a simple as telling it to start and stop.

cronjobs can be used to schedule common tasks such as monitor and update to automate management of a game server.

LinuxGSM keeps itself and your game server updated. Using methods available from game developers to update including, SteamCMD, custom JSON or file archives, LinuxGSM can make sure you are running the latest version of your game server.

SteamCMD is the command-line version of the Steam client. Its primary use is to install and update dedicated servers available on Steam. LinuxGSM integrates seamlessly with SteamCMD leaving no requirement for you to manage it.

Game servers can sometimes crash, however, LinuxGSM has a monitor that detects if your game server has stopped responding and take action to get it running again.

Receive alerts that keep you informed about the status of your server. Get alerted if your server has crashed or updated via email, Discord, Pushbullet, Slack, IFTTT, Pushover, Telegram or Mailgun.

If a game server crashes monitor will take action by automatically restarting the server.

LinuxGSM provides you with all the important information you need to know about your game server, to keep it up and running efficiently.

Example Info

  • Server Name
  • Distro details
  • Performance
  • Networking
  • Config Files
  • Online Status
  • Command-line Parameters

A basic backup feature is available that will allow you to create an archive of your server.

Useful if you plan on making any changes to your server and need to create a backup just in case.

LinuxGSM uses tmux to allow the server to run in the background. Console allows you to see what the server is currently doing.

If things go wrong you can use debug to figure out any issues. Debug will run the server directly in your terminal and will make is easier to diagnose issues.

Источник

Games

What’s the use in having a server if you can’t have any fun with it? As much fun as it is installing, running and trialling various applications and web-based apps, wouldn’t it be cool to run some actual games on it. There are a lot of search results for games servers on the web, many of which involve turning your server into a dedicated game hosting environment, or a MineCraft server.

Читайте также:  Шрифт times new roman для линукса

While I’m sure these are perfect solutions for people who want a dedicated gaming server, I wanted to see what games were available to play on a home server without having to install loads of additional software. I don’t want to impact other features of the server, such as the movie player, torrent server, etc., by having resources consumed by a gaming server which I wouldn’t be using quite so much. It’s a matter of priorities, and what you want to use your server primarily for.

It is important to note that, if you install a desktop on your linux server and use RDP to remote onto it, you can install and play any linux games on it. What I am focusing on here, are web-based games which your server serves up over the network, and which you play using a web browser.

I found that searching for ‘self hosted web games’ or ‘HTML5 self hosted games’ brought up a number of worthwhile results from both Github and Sourceforge. In particular I found a whole page of great results at https://github.com/leereilly/games. Below are a few simple examples I chose, you may want to try a few out also or browse further for some other that you prefer.

I created a directory called ‘games’ on my web server, and installed all games into sub-directories within this. I found I had to rename the folder which was created automatically by the zip file, and this is easily done using the mv command.

Browsing to the ‘games’ directory with your web browser will show you all the files within that browser, including the .zip files which have been downloaded. This is both not the most attractive ways of displaying the available sub-folders, and can also be considered a security risk, as you are displaying all the contents of the folder to whom ever happens to visit the games folder. We can use a simple php file to show just the folders, thus hiding any other files within the games folder.

Asteroids

This is a remake of the classic Asteroids game, which I have always loved. It is written in HTML5 and is beautifully simple and fun to play. To install it, go to your games directory and download the zip file from https://github.com/dmcinnes/HTML5-Asteroids [mirror].

The file is saved as master.zip, so rename it to something you will recognise and unzip it

The folder HTML5-Asteroids-master is created by the zip file, so rename this to something simpler:

To play, simply browse to the games directory on your web browser and click on the folder for asteroids. The Up arrow is your thruster, the Left and Right arrows spin your craft, and the Spacebar fires your gun. Enjoy!

Wolfenstein 3D

This is a web-based version of Wolfenstein 3D, the calssic First Person Shooter. It has a nice 8-bit graphic look, and is a fun run-around to kill some time with.

To install it, download the zip file from https://github.com/id-Software/wolf3d-browser [mirror], rename it to wolf3d and unzip this.

This will extract the contents of the zip file to a wolf3d directory. To play, browse to this directory with your web browser.

Within the game itself the controls are pretty simple. The Up, Down, Right and Left arrows control your movement. The Spacebar is your ‘Use’ action, as it will open doors and perform other actions. You can choose between your weapons using the number keys, 1-4, and finally Control will fire your weapon.

You can also jump left and right using the Alt key (Alt + Left arrow; Alt + Right arrow). This can sometimes cause your browser to go a bit funny, as the Alt key is used to highlight the menu options on your browser. I would recommend using it quickly and not holding down on Alt for too long.

Читайте также:  Что такое инженерное меню windows phone

HexGL

Hex GL is a cool single player futuristic style racing game in which you are racing a hovering craft around a track miles up in the sky. Not too long ago, online games required that your web browser had Flash player installed. With the endless security issues which plagued Flash, games are moving away from requiring Flash. WebGL is a javascript graphics library, and more and more games are now making use of this along with the added features which HTML5 provides.

Hex GL is playable online but you can also download the game from GitHub (mirror) and play it from your own server. To do so, SSH onto your server, move to your web games directory and download the file:

Unzip the file. When you do this, it will create a folder called HexGL-master. Lets rename this to something shorter also, like hexgl:

To play HexGL, you need to run a python web server from within the HexGL directory, which is a simple http server built into the Python programming language. This is seperate to the Apache web server which is running on your server. When you start it from the command line, the first line that follows the command tells you which port the server is running on. It is important to ensure that this port is open on your firewall (sudo ufw allow 8000/tcp comment “python web server – HexGl”)

Navigate into the HexGL directory and start the python web server

Источник

Games with linux servers

Tool for automatic installation of game servers. Wrapper for LinuxGSM.

The following packages must be preinstalled:

This tool was written for Debian-based distributions, but might work on other platforms.

After cloning this repository, you can list all supported games with

To install a game server interactively, run

  • GAME — short name of the game you want to install. You can see all supported games by running the script with the —list option.
  • USERNAME — username of the owner of game files. This can be you or any other user. Root can NOT own a game server for security reasons.
  • PATH — Directory for server files. Directory will be created if it doesn’t exist and assigned to USERNAME. Default: /home/$USERNAME/gameserver

You will be prompted to enter required data for setting up the server. If you want to avoid this, you can set all required data beforehand through environment variables.

To skip interactive data input during game server installation, you can use preset environment variables to provide all required info.

You can see all supported variables for each game in the Supported games list.

Game Code Supported variables Default port
Assetto Corsa ac
Action Half-Life ahl
Action: Source ahl2
ARK: Survival Evolved ark
ARMA 3 arma3
Avorion av
BrainBread bb
BrainBread 2 bb2
Base Defense bd
Battlefield 1942 bf1942
Battlefield: Vietnam bfv
Black Mesa: Deathmatch bmdm
Ballistic Overkill bo
Blade Symphony bs
Barotrauma bt
Battalion 1944 bt1944
Codename CURE cc
Chivalry: Medieval Warfare cmw
Call of Duty cod
Call of Duty 2 cod2
Call of Duty 4 cod4
Call of Duty: United Offensive coduo
Call of Duty: World at War codwaw
Colony Survival col
Counter Strike 1.6 cs 27015
Counter-Strike: Condition Zero cscz
Counter-Strike: Global Offensive csgo
Counter-Strike: Source css
Double Action: Boogaloo dab
Deathmatch Classic dmc
Day of Defeat dod
Day of Defeat: Source dods
Day of Infamy doi
Don’t Starve Together dst
Dystopia dys
Eco eco 3000, 3001
Empires Mod em
ET: Legacy etl
Factorio fctr
Fistful of Frags fof
Garrys Mod gmod
GTA San Andreas Multiplayer samp GAME_RCON_PASS
GAME_SERVER_NAME
7777
Half-Life 2: Deathmatch hl2dm
Half-Life: Deathmatch hldm
Half-Life Deathmatch: Source hldms
Hurtworld hw
Insurgency ins
Insurgency: Sandstorm inss
IOSoccer ios
Just Cause 2 jc2
Just Cause 3 jc3
Jedi Knight II: Jedi Outcast jk2
Killing Floor kf
Killing Floor 2 kf2
Left 4 Dead l4d
Left 4 Dead 2 l4d2
Minecraft Java Edition mc GAME_ADMIN
GAME_SERVER_NAME
25565
Minecraft Bedrock Edition mcb 19132
MORDHAU mh
Medal of Honor: Allied Assault mohaa
Memories of Mars mom
Multi Theft Auto mta
Mumble mumble
Nuclear Dawn nd
No More Room in Hell nmrih
Natural Selection ns
Natural Selection 2 ns2
NS2: Combat ns2c
Onset onset
Opposing Force opfor
Project Cars pc
PaperMC pmc
Post Scriptum: The Bloody Seventh pstbs
Pirates Vikings & Knights II pvkii
Pavlov VR pvr
Project Zomboid pz
Quake 2 q2
Quake III Arena q3 27960
Quake Live ql
Quake World qw
Ricochet ricochet
Red Orchestra: Ostfront 41-45 ro
Return to Castle Wolfenstein rtcw
Rust rust
Rising World rw
Starbound sb
StickyBots sbots
SCP: Secret Laboratory scpsl
SCP: Secret Laboratory ServerMod scpslsm
7 Days to Die sdtd
SourceForts Classic sfc
Soldier Of Fortune 2: Gold Edition sof2
Soldat sol
Squad squad
Stationeers st
Sven Co-op sven
Terraria terraria
Team Fortress 2 tf2
Team Fortress Classic tfc
The Specialists ts
Teamspeak 3 ts3
Tower Unite tu
Teeworlds tw
Unturned unt
Unreal Tournament ut 7777-7788, 27900
Unreal Tournament 2004 ut2k4
Unreal Tournament 3 ut3
Unreal Tournament 99 ut99
Valheim vh
Vampire Slayer vs
Vintage Story vints
Wolfenstein: Enemy Territory wet
Warfork wf
WaterfallMC wmc
Wurm Unlimited wurm
Zombie Master: Reborn zmr
Zombie Panic! Source zps

Contributions are welcome. Adding a game is simple:

  1. Go to LinuxGSM supported games and open the Install page of your selected game server.
  2. Clone this repository into a clean Debian-based system (VM is recommended).
  3. Create a new folder in /games/ . Its name must be the short game name found on LinuxGSM Install page (for example mc for Minecraft).
  4. Create a new file in the folder named game_properties.sh with the following contents:

Fixing missing dependencies

In case the auto installer doesn’t install all required dependencies, find the missing packages and create a pre_install.sh script in the game directory.

If you created a snapshot of your VM, restore it and try installing the server again with your new script.

Changing server settings

If a game server requires post-install configuration, you can do it using a post_install.sh script. You can also use it to load configuration from environment variables. When asking the user for input, make sure you also support environment variables and default values for non-interactive installation.

Several variables are available in post_install.sh script, such as:

  • $GAME — short game name
  • $GAME_LONG_NAME — full game name
  • $GAMEDIR — absolute path to the server directory
  • $GAMEUSER — username of the game files owner

Do not modify or create server files directly as this would assign them to the root account. Instead, use provided run_as_user function.

Check if environment variable GAME_ADMIN is set. If not, prompt user for input. If user input can’t be read, set empty admin.

Источник

Читайте также:  Kmsauto для windows 10 инструкция
Оцените статью