PVKII got released on Steam with version 2.3, but the existing server tutorial is still referring to the old version, where you had to install the PVKII files manually. So here's an updated instruction on how to install a PVKII Linux Dedicated Server. This tutorial will guide you through the whole installation process, which starts right after you bought your root/virtual server. You don't need any linux knowledge to get your server up and running. I'll mostly use text to explain, but insert links with images on certain parts - in case you get confused.
In this tutorial we'll use PuTTY
. I'd highly recommend to download both programms.
After you bought a server, you should receive your server's IP (e.g. 22.214.171.124) and the "root" login details (e.g. login: root; password: example) from your provider.
Adding a user in Linux
- Start "PuTTY", type in your server's IP adress and click on "Open" to connect to your server. (Image)
- Login as "root" and press Enter. (Image)
- The server will ask you for a passwort. Type in the passwort your provider sent you and confirm with Enter again. Don't worry, you can't see what you typed, not even "*****". Linux doesn't show anything! (Image)
- If you did everything correctly, you're logged in as "root". You should see some general information and a command line for your user. (Image)
Since it's highly unsecure to run your server as the "root" user, we should now move on and add a new user on your server. The user will be named "pvkii" in this tutorial, but you can choose any username you desire. If you choose a different username, please edit the commands in the quotes to fit your username (e.g. the "pvkii" part). Furthermore, I'll use the the beginner-friendly "adduser" command to add a user. This command may not be available in your Linux distribution. If your server doesn't recognize the command, jump to Method 2: "useradd"
Method 1: "adduser"
Press "Enter", choose a password for your user and follow the automatic creation process. You don't have to fill in all the details it'll ask you for. Use "Enter" to skip them.
Method 2: "useradd"
useradd -d /home/pvkii/ pvkii
Press "Enter" and it'll add the user.
Press "Enter", choose a password for your new user and you're done.
Logging in as your new user
That's easy now. You already know how to login as "root".
Installing the PVKII server
Note: This part is outdated. hldsupdatetool was replaced by SteamCMD in a recent update. See https://developer.valvesoftware.com/wiki/SteamCMD for SteamCMD installation and usage details.
- Leave the current PuTTy window open, start another "PuTTY", put in your server's IP and connect.
- Login as "pvkii" and enter the password you set for your new user.
- You should now be logged in as "pvkii" and able to enter commands.
Make sure you're in the new user's home directoy.
Download the "hldsupdatetool" into your current directory.
Make the "hldsupdatetool" executable.
chmod +x hldsupdatetool.bin
Run "hldsupdatetool" and follow the instructions.
The "./steam" command could take a while. As soon as it's finished, you'll be presented with the command line to insert commands again. Press "Arrow Up" on your keyboard and then hit "Enter" to run the "./steam" command again. You need to repeat this step two or three times to make sure Steam is fully updated.
As soon as Steam has updated itself, let it download the PVKII files into the current directory.
./steam -command update -game "pvkii" -dir .
Steam will now start to download the necessary serverfiles. This should usually take a while - ofcourse depending on your server's connection speed. Don't close the PuTTY window!