Setting up a Multiplayer Server: Difference between revisions
From Vintage Story Wiki
Line 61: | Line 61: | ||
'''7. Edit server.sh file''' | '''7. Edit server.sh file''' | ||
For security reasons you should not run the server as root user, so by default USERNAME is set to vintagestory. On most linux operating systems you can create | For security reasons you should not run the server as root user, so by default USERNAME is set to vintagestory. On most linux operating systems you can create a user with the command adduser | ||
USERNAME='<your-vs-server-username>' | USERNAME='<your-vs-server-username>' |
Revision as of 08:55, 30 October 2018
On Windows
- Enter your appdata folder, e.g. through %appdata%
- Start VintagestoryServer.exe
- You might need to set up port forwarding on your router if the server should be accessible from beyond your local network
On Linux
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
For security reasons you should not run the server as root user, so by default USERNAME is set to vintagestory. On most linux operating systems you can create a user with the command adduser
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