How to setup a dedicated server for Conan Exiles
Publisher: Psychz Networks, March 01,2021Conan Exiles is an online multiplayer survival game, with the custom playable character being rescued by Conan, set in the lands of Conan the Barbarian. The game was developed and published by Funcom for Microsoft Windows, PlayStation 4, and Xbox One.
Officially, Conan: Exiles servers only support Windows. However, there is a workaround to this via Wine. This guide is a collection of all steps that can or need to be taken to set up a working Conan Exiles Server. Officially, Conan: Exiles servers only support Windows. Workarounds exist via Wine, but you should generally avoid this unless you don't have a Windows 7/8.1/10 license.
- System Requirements
- Ports required Open
- Create a new user
- Install the dependencies
- Install SteamCMD
- Install and Configure Wine
- Configure Conan: Exiles
System Requirements
- CPU: 2.4 GHz/3.4GHz Turbo
- RAM: 8 GB
- Disk space: 35 GB
Ports required Open
You'll want to open the following ports:
Game Client: UDP 7777; Raw UDP Port: UDP 7778; Steam Query Port: UDP 27015; RCON Port: TCP 25575
To make this happen, you can run the following command from your command prompt.
# iptables -P INPUT ACCEPT && iptables -P OUTPUT ACCEPT && iptables -F && iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT && iptables -A INPUT -p udp --dport 7777 -j ACCEPT && iptables -A INPUT -p udp --dport 7778 -j ACCEPT && iptables -A INPUT -p udp --dport 27015 -j ACCEPT && iptables -A INPUT -p tcp --dport 25575 -j ACCEPT
# sudo apt-get install iptables-persistent -y
# invoke-rc.d iptables-persisent save
Now your firewall is properly configured to allow Conan: Exiles traffic from outside sources.
Create a new user
It is highly recommended to create a new user to login and create Conan Exile server. This way you can avoid security threats for root user.
# sudo adduser conanserver
# su - conanserver
# mkdir ssudo@server
Install the dependencies
If you are using 64-bit distribution, you need to install a package named lib32gcc1 or ia32-libs. This is because Steam is compiled for i386 architecture only.
# sudo apt-get install lib32gcc1 software-properties-common -y && sudo dpkg --add-architecture i386 && sudo apt-get update
Install SteamCMD
# sudo apt-get install steamcmd
We need to change steamcmd's platform type to Windows, as we'll be using Wine to run the server as a windows application. While we're there, we can bundle the server installation into the command with:
# cd /usr/games
# steamcmd +@sSteamCmdForcePlatformType windows +login anonymous +force_install_dir /home/conanserver/server +app_update 443030 +exit
Output
Update state (0x101) committing, progress: 23.32 (680000017 / 2916535514)
Update state (0x101) committing, progress: 24.30 (708608257 / 2916535514)
Update state (0x101) committing, progress: 24.49 (714120412 / 2916535514)
Success! App '443030' fully installed.
Install and Configure Wine
Conan Exiles was explicitly made for the Windows platform, but Wine made it possible to deploy it on Linux.
First, we must install the key that is used to sign Wine packages. Without it, we'll get a security error when trying to install it. The recommended way to do this is:
# wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
Output
demouser@conanserver:/usr/games# wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
you will get the following output 'OK'
Now we can add the repository for Wine. You'll need to replace the word after the URL depending on your Ubuntu version. If you do not know the version name of your Ubuntu, please run the following command.
# lsb_release -a
Output
demouser@conanserver:/usr/games# lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
As you can see, we are using Ubuntu 18.04 (codename Bionic); we will add 'bionic' to the command as follows.
# sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main' && sudo apt-get update && sudo apt-get install winehq-stable
Output
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Ign:2 http://mirrors.linode.com/debian stretch InRelease
Get:3 http://mirrors.linode.com/debian stretch Release [118 kB]
Get:4 http://mirrors.linode.com/debian stretch Release.gpg [2,410 B]
Ign:4 http://mirrors.linode.com/debian stretch Release.gpg
Get:5 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6,259 B]
Get:6 https://dl.winehq.org/wine-builds/ubuntu bionic/main amd64 Packages [807 kB]
Get:7 https://dl.winehq.org/wine-builds/ubuntu bionic/main i386 Packages [842 kB]
Hit:8 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Reading package lists... Done
W: GPG error: http://mirrors.linode.com/debian stretch Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY EF0F382A1A7B6500
E: The repository 'http://mirrors.linode.com/debian stretch Release' is not signed.
N: Updating from such a repository can't be done securely and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Now you will want to install screen and xvfb:
# sudo apt-get install screen xvfb
Configure Conan: Exiles
# cd server
# xvfb-run --auto-servernum --server-args=’-screen 640x480x24:32’
To run the game, fire following command
# wine ConanSandboxServer.exe -log
Once the process completes, press Crtl+C to stop the server. Check that your .ini files are present with:
# cd conanserver/conansandbox/saved/config/windowsserver
# ls
You can edit the config files with nano, followed by their file name, e.g., nano windowsserver. You'll want to at least change basic values like the name and admin password.
It would be best if you also restart your server now and then, preferably daily, at times when the players are unlikely to be active. We always recommend performing period maintenance on your server, installing the latest security patches and drivers, defragmenting your drives, and giving the physical hardware a clean if you have access to it.
We hope you have found this guide helpful and could successfully deploy Team Fortress 2 on your Ubuntu server. Please click on the up-vote button to show your appreciation.