Setting up a Multiplayer Server: Difference between revisions

From Vintage Story Wiki
(Created page with "<span style="color:#FF0000"> '''Important-Importante-Wichtig-重要-重要-важно'''<br> If you have no clue how to use, monitor and maintain Linux,<br> then you should us...")
 
(RHEL change mono-utils to mono-devel package name)
Line 16: Line 16:
   rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
   rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
   yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
   yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
   yum -y install mono mono-utils
   yum -y install mono mono-devel
== Requirements Ubuntu (Debian, Mint, ...) ==
== Requirements Ubuntu (Debian, Mint, ...) ==
'''1. screen/wget/curl Install'''
'''1. screen/wget/curl Install'''

Revision as of 15:06, 23 January 2017

Important-Importante-Wichtig-重要-重要-важно
If you have no clue how to use, monitor and maintain Linux,
then you should use a professional gameserver hoster or
if you have to much time and leisure, you should get first basic hosting skills.

Requirements CentOS 7 (RHEL, Fedora, ...)

1. EPEL/screen/wget/curl Install

yum -y install epel-release screen wget curl

2. Mono Install

 yum -y install yum-utils
 rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
 yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
 yum -y install mono mono-devel

Requirements Ubuntu (Debian, Mint, ...)

1. screen/wget/curl Install

 apt install -y screen wget curl

2. Mono Install

 apt install -y mono-complete mono-utils


3. Add the port to the firewall

firewalld

 firewall-cmd --permanent --zone=public --add-port=42420/tcp
 firewall-cmd --reload

iptables

 iptables -A INPUT -p tcp -m tcp --dport 42420 -j ACCEPT

4. Download the game

Goto http://account.vintagestory.at/downloads
Copy the link of the newest "vs_server_*.*.*.tar.gz" package
Enter in the console "wget" and parse the link

Hint: Make for VS a own directory the tar have no subfolder

5. Open TarGZ package

tar -xzf vs_server_*.*.*.tar.gz

6. Make the server.sh executeable

 chmod 755 server.sh

7. Edit server.sh file

 USERNAME='<your-vs-server-username>'
 VSPATH='<your-vs-directory>'

8. Server start and first steps

 ./server.sh start
 # Wait for startup then you can give you OP
 ./server.sh command "/op <youusername>"

9. Connect to you IP/Domain and have fun