Ark server manager linux

Ark server manager linux

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

ARK: Survival Evolved will run on popular distros as long as the minimum requirements are met.

  • Ubuntu 16.04 LTS
  • Debian 9
  • CentOS 7

Only 32-Bit game server binary is available.

SteamCMD by Valve is used to install and update this game server.

SteamDB

Steam uses appid 376030.
Update history is available from SteamDB.

Before installing, you must ensure you have all the dependencies required to run arkserver.

Ubuntu 64-bit

Debian 64-bit

EPEL is required to install some dependencies needed for using LinuxGSM on CentOS.

CentOS 64-bit

user with sudo access

root user

From the command-line do the following. Ensuring you have also installed the required dependencies.

1. Create a user and login.

For security best practice, ensure you set a strong password. Random password:

All Commands

Running

start

restart

console

To exit the console press CTRL+b d . Pressing CTRL+c will terminate the server.

Updating

update

validate

Debugging

Details

You can get all important and useful details about the server such as passwords, ports, config files etc.

Debug

Use debug mode to help you if you are having issues with the server. Debug allows you to see the output of the server directly to your terminal allowing you to diagnose any problems the server might be having.

Server logs are available to monitor and diagnose your server. Script, console and game server (if available) logs are created for the server.

Backup

Backup will allow you to create a complete tar bzip2 archive of the whole server.

Monitor

LinuxGSM can monitor the game server by checking that the proccess is running and querying it. Should the server go offline LinuxGSM can restart the server and send you an alert. You can use cronjobs to setup monitoring.

Configure LinuxGSM

For details on how to alter LinuxGSM settings visit LinuxGSM Config Files page.

Documentation

For detailed documentation visit the LinuxGSM docs.

GameserverApp is a LinuxGSM partner that offer features that compliment existing LinuxGSM game servers.

Using Rcon; control, monitor and automate your ARK: Survival Evolved LinuxGSM game servers from a web browser.

  • Easily setup automated RCON actions using the drag-and-drop editor.
  • Talk to in-game players or run RCON commands from Discord.
  • Track player stats, see online players and when they play.
  • Manage players, allowing you to kick and ban or send an in-game items.
  • Give other people in your community rcon access.

Add your first 5 LinuxGSM servers for free.

Ark server manager linux

If nothing happens, download GitHub Desktop and try again.

Читайте также:  Linux примонтировать диск ext4

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio

Latest commit

Git stats

Files

Failed to load latest commit information.

readme.md

This Ark Server Manager provides the following functionality via a Web Interface to manage your Ark Server:

  • Start Ark Server
  • Stop Ark Server
  • Update Ark Server
  • Status of the Ark Server (is it up and running?)
  • Backup Ark Server Save Game

The following image shows the interface.

The following configurations can be done in the Web Interface.

In the scripts folder, shell scripts can be found, that actually do the execution. You can modify those files, if you want the server to be started with other or additional parameters, etc.

  • Linux (so far only tested on Ubuntu, but all Unix-based systems could work)
  • Nodejs (see NodeJS Website or install via package manager of your OS, see NodeJS Package Manager Installation. E.g. for Ubunut/Debian: curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash — sudo apt-get install -y nodejs
  • Git (https://git-scm.com/ or install via package manager of your OS, e.g. apt-get install git on Ubuntu)
  • Ark Server must be installed and steamcmd must be available
  • Ports 3000 and 3001 must be accessible for everyone who shall use the web interface. It might be necessary to configure an according Port forwarding in your router.
  • git clone https://github.com/skanatiker/ark_server_manager to download the program
  • npm install to load all required dependencies
  • node server.js to start the server
  • Go to https:// :3001 . The first call will take a while, don’t worry. Currently you have to accept the certificate, because it is not valid at the moment. See next section about HTTPS. Then login with default username admin and password admin .
  • After your first login the configuration dialog will open up. Please configure all required fields and change your admin password!

Let’s encrypt is being used to generate an individual SSL certificate for everyone who runs the server. For now only the testing mode is used, which only provides non validated certificates. I am working on switching to production ready certificates. It will just take some more time.

As soon as it is available, you will also have to configure your ports a bit differently. Let’s encrypt requires the server to run on Port 80. Therefore you will have to configure a local port forwarding on your server. This could look like:

sudo iptables -t nat -I PREROUTING -p tcp —dport 80 -j REDIRECT —to-port 3000 sudo iptables -t nat -I PREROUTING -p tcp —dport 443 -j REDIRECT —to-port 3001

If any questions come up or you just want to give some feedback about the server, please don’t hesitate to contact me via skanatiker.dev@gmail.com.

Intention of this server manager

This server manager has been developed with the intention of playing on a private server with some friends. The server shall not be running all the time. It’ll only be started, when someone actually wants to play. For avoiding SSH connections to the server and the execution of shell scripts manually, i created the server manager. All my friends can login to the web interface and can quickly see whether the server is up and running and if it is not running they can simply start and later on stop server.

Читайте также:  Форматы файловых систем linux

Perhaps there are other usecases for it. Just let me know 🙂

I’ve created a Trello Board, where i collect new feature ideas and everyone can vote for these features to identify the most important ones.

For all the developers out there, i also want to give a short overview on what i used for the Development. Basically it is a Nodejs Express application. The REST services and websockets are secured via JWT. I used express-jwt and jsonwebtoken for this. The SSL handling for HTTPS is done via letsencrypt-express. NEDB has been used for persistence, which uses the MongoDB API, but can be run embedded in the node server.

The frontend is written with AngularJS.

About

Linux based Web Interface to manage your private Ark Server (Beta)

Источник

Introduction

The survival game «ARK» has been given for free by Epic Games in June 2020. We started playing it — both local and on servers operated by friends of us. After two weeks of vacation without the possibility to play we where rather disappointed that a lot of things got lost during that time. We continued playing localy then — in this case the game stops as soon as the player exits. But that’s not comparable to the multi player game.

So we decided to bring up an ARK server locally on our home server. This ARK server, so the intention, shall be started when we want to play and stopped when the last of us stops playing. We don’t want to have it public in the internet, a local server is fine for us.

So this page shows how to set up the ARK server on an Ubuntu based machine. To have the administration easy I am using the ark manager.

Installation

Before doing the game server installation there are some preconditions to fulfill.

Preconditions

First thing is setting upe the regular Ubuntu installation as you want to get it.

After that the system requires some additional packages, all coming out of the official Ubuntu resources:

sudo apt install curl libc6-i386 lib32gcc1 libsdl2-2.0-0:i386 steamcmd

Next thing to do is the cration of the user which shall run the ARK server. I call it steam . My decission is to give this user the uid 10000. The following commands have to be executed with an acoount having sudo rights.

sudo adduser --uid 10000 steam

This new user requires sudo abilities

sudo usermod -aG sudo steam

Now the steam client has to be installed. This is also included in the standard Ubuntu resources.

sudo apt install steamcmd

This is the last thing to do with the regular account. The following part has to be done with the user steam , so either log off and log in as steam or do su steam and cd ~ .

Читайте также:  Arch linux package dependencies

Install the ARK manager

First we do an update of the steam client and check if it works fine.

steamcmd "> login anonymous quit

Now we do the installation of ARK manager. I want to start the game server manually, so I use

curl -sL https://git.io/arkmanager | sudo bash -s steam
curl -sL https://git.io/arkmanager | sudo bash -s steam --install-service
  • steamcmdroot=»/usr/games»
  • steamcmdexec=»steamcmd»
  • steamcmd_appinfocache=»/home/steam/.steam/appcache/appinfo.vdf»
  • steamcmd_workshoplog=»/home/steam/.steam/logs/workshop_log.txt»
  • arkflag_crossplay=true
  • arkflag_NoBattlEye=true
  • ark_SessionName
  • serverMap
  • ark_ServerPassword
  • ark_ServerAdminPassword
  • ark_MaxPlayers

Install the ARK server

Now we’re ready for the game server installation.
Be patient! This may take LONG!

Configure the server

We prefer playing the server in a way that no player can harm another player. Therefore we want to configure the server to PvE and disable «friendly fire».

To configure the server to PvE edit the file ARK/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini and add serverPVE=True to the section [ServerSettings] .

With this you can’t harm players of different teams. But you can still harm players of your own team.

If you don’t want that edit the file ARK/ShooterGame/Saved/Config/LinuxServer/Game.ini . Add the config tag bPvEDisableFriendlyFire=True to the section [/script/shootergame.shootergamemode] . In the default installation this file is empty. So in that case you have to write the following lines into the file:

[/script/shootergame.shootergamemode] bPvEDisableFriendlyFire=True

Other configuration possibilites can be found in various pages in the internet 🙂

Administrate the server

After having the game server installed there are some commands to supervise the game. Here I show the most important once.

arkmanager start

Use this command to start the server. The server is not directly usable! It takes several minutes until the server can be used. If it is accessable can be detected with arkmanager status .

arkmanager status

This command shows the status of the ark server. As long as the server is not accessable it will print

Running command 'status' for instance 'main' Server running: Yes Server PID: 99315 Server listening: No Server build ID: 6011539 Server version: 320.38

This is an example when the server is accessable:

Running command 'status' for instance 'main' Server running: Yes Server PID: 99315 Server listening: Yes Server Name: XxXxXxX - (v320.38) Steam Players: 0 / 70 Active Steam Players: 0 Server online: Yes ARKServers link: http://arkservers.net/server/111.222.33.44:27015 Steam connect link: steam://connect/111.222.33.44:27015 Active Players: 0 Server build ID: 6011539 Server version: 320.38

The IP addresses are the addresses of the server as they are seen from the internet.
So in the case your machine is directly connected you’ll see the IP of your machine, otherwise you’ll see the IP your router received.

arkmanager stop

Use this command to stop the server. The server saves the actual game during shutdown.

Next steps

Next goal for my personal ARK server is to add it to the automatic shut down mechanism. That means that the automatic shut down — or better — suspend shall only be done if there’s no player connected to the server.

Источник

Оцените статью
Adblock
detector