From V Rising Wiki
Raiding | Builds | Modding | Dedicated Server Setup | Admin Commands |
Dedicated Server Setup: Ubuntu 20.04 and Wine
Introduction
This guide is an collection of all steps that can or need to be taken to set up an working V Rising Server. Additionally side info about settings and adding mods ins included.
Basic Requirements
- A computer with the minimum dedicated server system requirements is required.
- Basic knowledge of the OS you will be using. (Linux/Ubuntu)
- Basic knowledge of SteamCMD.
- Knowledge of Wine.
- Knowledge of Shell scripts and how they work.
- Knowledge of Screen and Screen commands. (more info)
Installation
Dependencies
You need to install some dependencies and enable 32bit binaries:
sudo apt-get install lib32gcc1 software-properties-common -y sudo apt install wine64 wine32 -y sudo apt-get install libstdc++6 xvfb sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get upgrade
SteamCMD
Now you can finally install SteamCMD:
sudo apt-get install steamcmd
Do not run SteamCMD while operating as the root user - to do so is a security risk. To run SteamCMD and your Servers in an safe environment, create an user account named 'steam':
sudo useradd -m -s steam
Login to 'steam' account:
sudo -u steam -s
Create the server folder:
mkdir Vrising
Use steamcmd to install server files, you can also use this command to update the server files.
steamcmd +force_install_dir /home/steam/Vrising +login anonymous +app_update 582400 +quit
Make sure the files are installed, change back to your account (default is ubuntu)
su ubuntu
Server Initilazation
Go to server location and start the server using xvfb-run:
cd /home/steam/Vrising export WINEARCH=win64 find /tmp -name ".X99*" -exec rm -f {} \; > /dev/null 2>&1 xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine64 VRisingServer.exe -persistentDataPath ./save-data -logFile server.log
You should create new file to start the server:
export WINEARCH=win64 find /tmp -name ".X99*" -exec rm -f {} \; > /dev/null 2>&1 xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine64 VRisingServer.exe -persistentDataPath ./save-data -logFile server.log
Make the file executable:
chmod ug+x server.sh
Now you can run your server by:
sudo ./server.sh
Ports
Enable ports (default: 9876-9877)
sudo ufw enable sudo ufw enable OpenSSH sudo ufw allow 9876:9877/udp sudo ufw status