User Tools

Site Tools


dev:setup

Server setup

To simplify the distribution, the server is installed through docker. If you don't know what docker is, take time to learn it before continuing this tutorial.

  • first, you need a GNU/Linux machine with docker support (a recent kernel is needed for that, KVM VPS or a dedicated server will do).
  • install docker

Then :

# as root
# first create the shinsekai user
# you can change everything, but the uid "6127" needs to stay the same
useradd -u 6127 shinsekai -s /bin/bash --create-home
 
# create servers directories
su - shinsekai
mkdir server1
mkdir server2
exit
 
# create containers / run servers
# (only the first time or after a docker image update)
docker run --net=host -it --name shinsekai1 -v /home/shinsekai/server1:/shinsekai/data archzenvald/shinsekai-server 
# Ctrl-P Ctrl-Q to detach
docker run --net=host -it --name shinsekai2 -v /home/shinsekai/server2:/shinsekai/data archzenvald/shinsekai-server 
# Ctrl-P Ctrl-Q to detach
 
# examples
# stop server 1
docker stop shinsekai1
 
# start server 1
docker start shinsekai1
 
# attach to server 1
docker attach shinsekai1
# Ctrl-P Ctrl-Q to detach

The server have a built-in auto-update (at every launch) and auto-restart script in case of crash. If you can't connect to your server with an up to date client, you probably need to restart it to get the update.

If you have any issues or if you need help, you can open a thread on the forums.

You can now go to the server basics.

dev/setup.txt · Last modified: 2017/04/02 17:57 by archzenvald