Giter VIP home page Giter VIP logo

se-server's Introduction

Space Engineers on Linux

Docker container for running a Space Engineers server on a Linux machine.

Requirements

  • Debian 8 (to use these files as-is)
  • docker (this one is obvious)
  • systemd (you can use System V init, but you will have to write your own startup script).

Setup

Perform the following steps in the written order.

  • Create a new system user account which will own the container. The files in this repository assumes that the new user is named saiban. You can of course change this to whatever you prefer. Please note that the user ID must correspond to the ID specified in the Dockerfile. If you change it here, you should change it there.
adduser --system --home /home/se-server --uid 256 --group --gecos "Space Engineers" se-server
  • Change to the new user and move into its home directory by issuing the following commands.
su - se-server -s /bin/bash
cd
  • Create the required directory structure.
mkdir -p games/space-engineers/{docker,data}
mkdir -p games/space-engineers/data/Space\ Engineers/{Mods,Saves}
  • Clone this repository into the home directory of the new user account.
git clone https://github.com/g1franc/se-server.git games/space-engineers/docker
  • Obtain a copy of the most current DedicatedServer.zip and place it in ~/games/space-engineers/data. You will usually find it in [...]\SteamApps\SpaceEngineers\Tools\DedicatedServer.zip (do not extract its contents).

  • Upload your SpaceEngineers-Dedicated.cfg and place it in ~/games/space-engineers/data/Space Engineers. Use the one in this repository and edit it to your liking if you do not already have one or copy the one from the repository :

cp ./games/space-engineers/docker/SpaceEngineers-Dedicated.cfg ./games/space-engineers/data/Space\ Engineers
  • Copy space-engineers.service from this repository to /etc/systemd/system. Do not forget to change the User and Group setting in this file if you did not go with the defaults.
sudo cp games/space-engineers/docker/space-engineers.service /etc/systemd/system
  • Build the image!

This will take a while.

games/space-engineers/docker/build.sh

Updating

Update Space Engineers by replacing the DedicatedServer.zip with an updated version and restarting the server.

Managing the server

Starting the server

sudo systemctl start space-engineers

Stopping the server

sudo systemctl stop space-engineers

Monitoring the server

This will give you live output from the server, as if it was running locally in your terminal.

sudo journalctl --no-tail -f -u space-engineeers

Additional notes

Running Space Engineers this way requires a helper program called sigmap which I developed for this use specifically. It is cloned and built by the Dockerfile and should not add any additional overhead. Because Space Engineers ignores SIGTERM which is sent by Docker to shut down the service, sigmap catches that signal and forwards SIGINT to Space Engineers.

See here for more information.

Credits

The original Dockerfile was written by webanck and can be found here.

se-server's People

Contributors

g1franc avatar marjacob avatar ineentho avatar

Watchers

James Cloos avatar  avatar

Forkers

yohan460

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.