Conan Exiles

Conan Exiles

Not enough ratings
Running a Conan Exiles Server on Ubuntu Linux using WINE
By Runningman
This guide is based on How to run a Conan Exiles server on your Linux Box with WINE and helps with installing the windows binaries of Conan Exiles on a Ubuntu Linux Box using WINE 2.x.
I am publishing this guide to help Admins of Ubuntu Linux Servers to quickly and flawlessly install a Conan Exiles Server. It is based on my experience and the commands do match Ubuntu Linux.

This is the video tutorial using the guide, you can leave comments if you have any questions:
What you need
You need a Ubuntu Linux Server running Ubuntu 16.04 LTS 64-bit, here are the hardware requirements[].

Also keep in mind, this entire config is expecting you know your way around ubuntu linux, I am not going to hold your hand.
Create steam account
Use the adduser command to add a new user to your system, then add this user to the admin group. Purpose is to be able to run sudo commands from this new user.

adduser steam addgroup admin usermod -aG admin steam
Installing WINE
Wine is an open source and free application for Linux that enables users to run any windows based application on Unix/Linux like operating system. Wine team is releasing their versions every two weeks.

In this section I will guide you to the simplest way to install latest stable release of Wine 2.x version in Ubuntu 16.04 LTS.

This is based on the WineHQ Wiki[] for Ubuntu.

You needed this package to add a repository:

sudo apt-get install software-properties-common

The following command is for Ubuntu 64-bit only:

sudo dpkg --add-architecture i386

Now add the repository and download the binaries:

sudo add-apt-repository ppa:wine/wine-builds sudo apt-get update sudo apt-get install --install-recommends winehq-staging
Installing Conan Server in your Linux Box
The following commands should be executed as user steam.

Install steamCMD

wget mkdir /home/steam/steamcmd tar -zxvf steamcmd_linux.tar.gz -C /home/steam/steamcmd

Download the Windows binaries

Downloads the binaries and installs them into ~/exiles subfolder:

/home/steam/steamcmd/ +@sSteamCmdForcePlatformType windows +force_install_dir /home/steam/exiles +login anonymous +app_update 443030 validate +quit

First run

For the first run of the Conan Server, you need to have Xvfb program installed:

sudo apt-get install xvfb

Then start the server for the first time manually in a screen session:

sudo apt-get install screen

screen xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine /home/steam/exiles/ConanSandboxServer.exe -log

The server will run, and will create a bunch of config files. It will also spit out a bunch of errors or garbage. Just ignore it.

Now detach from the screen session with CTRL + A + D

Leave it running for a minute or two, then send the screen session CTRL + C with the following command:

screen -X stuff ^C

Wait about 10 seconds, then send the screen session another CTRL + C:

screen -X stuff ^C

That's it!
Setting up Conan to run as a system service
The following assumes that you've created a user called steam and installed the Conan Exile server files into /home/steam/exiles/.

1) Install Xvfb if you did not already:

sudo apt-get install xvfb

2) Create the startup script:

Next, create a script that will contain all of the commands that must be run to start Conan. Create /home/steam/exiles/ and add the following to it:

#!/bin/sh export WINEARCH=win64 export WINEPREFIX=/home/steam/.wine64 xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine /home/steam/exiles/ConanSandboxServer.exe -log

Finish up by making the script executable:

chmod +x /home/steam/exiles/

3) Create a systemd service

The following assumes you're doing everything as root (or just add sudo to every command).

We can use systemd to run Conan in the background. To begin, create /etc/systemd/system/conan.service and add the following:

[Unit] Description=Conan - dong sliders to MAX [Service] ExecStart=/home/steam/exiles/ User=steam Type=simple Restart=on-failure RestartSec=42s [Install]

Next, tell systemd to update its list of services:

systemctl daemon-reload

4) Start the service

Interact with the service via the systemctl command:

systemctl start conan.service

To set the Conan service to start automatically on boot, enable it:

systemctl enable conan.service

If you don't want it to start automatically, just disable it:

systemctl disable conan.service

You can see logs generated by the service with the following:

journalctl -u conan.service
Updating Conan Server with SteamCMD
If you have followed the steps till here, you know now how to run the Conan Exiles server as a Service within your Linux box.

The next step is to have a script that automates upgrading your server painlessly without losing any configuration files and brings the server back on gracefully via Services.

Update Script /home/steam/exiles/

#!/bin/sh # Script by: Rejd @ # Goon Engineering NetWorks # # NOTE: This script might need to be run with sudo, due to systemctl requiring root privileges # # Stop conan.service and wait until ConanSandboxServer has shut down # echo "Stopping conan.service..." sudo systemctl stop conan.service while ps axg | grep -F 'Z:\home\steam\exiles\ConanSandbox\Binaries\Win64\ConanSandboxServer-Win64-Test.exe' | grep -v -F 'grep' > /dev/null; do sleep 1; done # Backup configuration files # echo "Backing up configuration files" tarballName="configBackup_$(date +%Y-%m-%d_%H-%M).tar.gz" tarball2Name="savedConfigBackup_$(date +%Y-%m-%d_%H-%M).tar.gz" mkdir -p /home/steam/exiles/configBackups tar -zcvf /home/steam/exiles/configBackups/$tarballName -C /home/steam/exiles/ConanSandbox/Config . tar -zcvf /home/steam/exiles/configBackups/$tarball2Name -C /home/steam/exiles/ConanSandbox/Saved/Config/WindowsServer . # Run steam update # echo "Updating..." /home/steam/steamcmd/ +@sSteamCmdForcePlatformType windows +force_install_dir /home/steam/exiles +login anonymous +app_update 443030 validate +quit # Restore backup, keep tarball just incase (Might autodelete later when we know they aren't really needed) # temporarily commented out, need to test if configs in saved will suffice #echo "Restoring backup" #tar -zxvf /home/steam/exiles/configBackups/$tarballName -C /home/steam/exiles/ConanSandbox/Config #tar -zxvf /home/steam/exiles/configBackups/$tarball2Name -C /home/steam/exiles/ConanSandbox/Saved/Config/WindowsServer # Start conan.service # echo "Starting conan.service" sudo systemctl start conan.service

Finish up by making the script executable:

chmod +x /home/steam/exiles/
Basic configuration of your new Conan Exiles server
Change directory to the Conan Exiles config directory:

cd /home/steam/exiles/ConanSandbox/Saved/Config/WindowsServer

Now edit the Engine.ini and add the following to the end of the file:

[OnlineSubsystemSteam] ServerName="Conan Exiles Test Server by Runningman" ServerPassword=mypassword AsyncTaskTimeout=300

Then edit the Game.ini and put in the following:

[ConanSandbox] UserID=steam [/script/engine.gamesession] MaxPlayers=10 [/script/engine.gamenetworkmanager] TotalNetBandwidth=4000000 MaxDynamicBandwidth=100000 MinDynamicBandwidth=40000

You can also tweak the ServerSettings.ini, but it's easier to do that ingame as Admin.
Many thanks to the authors of the source of this article! It was very inspiring and helped me a lot to create this guide.

Also thanks to my german Communities Einmal mit Profis[] and Fraktion13[] for having so much fun together on our servers. For more info, please visit the Links above.
< >
Bear with Hat Jun 26, 2019 @ 4:55pm 
Wenn ich die starte kommt das ohne das er das Update macht. Bitte um Hilfe
When I start the that comes without the update. Please help

Redirecting stderr to '/home/steam/.steam/logs/stderr.txt'
[ 0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...../steamnetworkingsockets/clientlib/steamnetworkingsockets_lowlevel.cpp (117) : Assertion Failed: SteamDatagramTransportLock held for 34.9ms!
"@sSteamCmdForcePlatformType" = "windows"
Usage: force_install_dir <directory>

tobasium Feb 16, 2019 @ 11:16am 
Hello Team,

since the last days conan stops after 2-5 min working after server restart. I start with screen and it shows the folowing:

0026:fixme:advapi:ReportEventW (0xcafe4242,0x0002,0x0000,0x80000002,(nil),0x0001,0x00000000,0x60c5d8,(nil)): stub
0057:fixme:winhttp:get_system_proxy_autoconfig_url no support on this platform
0057:fixme:winhttp:WinHttpDetectAutoProxyConfigUrl discovery via DHCP not supported
wine: Unhandled page fault on read access to 0x00000010 at address 0x7b44e217 (thread 0057), starting debugger...

Could someone help.

only updated this:

openssh-client from 7.4p1-10+deb9u4 to 7.4p1-10+deb9u5

openssh-server from 7.4p1-10+deb9u4 to 7.4p1-10+deb9u5

openssh-sftp-server from 7.4p1-10+deb9u4 to 7.4p1-10+deb9u5
Fastorro Feb 15, 2019 @ 1:17am 
For Ubuntu 18.04 LTS you need this changes (new dependences)

### Ubuntu 18.04
sudo apt-add-repository 'deb bionic main'

### Ubuntu 16.04
sudo apt-add-repository 'deb xenial main'

### Ubuntu 14.04
sudo apt-add-repository 'deb trusty main'

and installing WINE:

sudo apt-get update
sudo apt-get install --install-recommends winehq-stable

If you face unmet dependencies error during installation, use the following commands to install winehq using aptitude.

sudo apt-get install aptitude
sudo aptitude install winehq-stable
jusola Jun 13, 2018 @ 4:11am 
Any idea on why the server gets stuck on Setting breakpad minidump AppID = 440900, I have increased the open files limit in /etc/security/limits.conf.
noz.geek May 17, 2018 @ 12:35am 
Great tutorial, I have been able to make the server running under 10 minutes! I have a little issue with the update script however, i got this error: line 9: syntax error near unexpected token `do'
Does anyone have an idea about that? (ubuntu 16.04 server)
Maxunit May 15, 2018 @ 7:50pm 
Thank you a lot for the guide, Runningman. I am rather rusty when it comes to Ubuntu (only need to do maintenance stuff for years now) on my Root and I'm thinking about setting up a Conan Exiles Server. I hope, that FunCom will work on a Linux build asap and release it...
Runningman  [author] May 13, 2018 @ 3:57am 
@Sorbos The guide really is for a virtual or root servers located at an internet provider, never tested it with NAT.
Sorbos May 12, 2018 @ 4:25pm 
Thanks for this guide. Everything about it seemed to work for playing on LAN, but for playing over internet, am unable to join the server (port forwarding is good verified with packet capture) seeing the following message in the client logs.

LogNet:Warning: Incoming ip address doesn't match expected server address: Actual: Expected: (public ip):7777

Is there a config setting I'm missing? I would not think the server should know its public IP as that is NAT'ing over the router and can change anytime.
brettygud_ May 12, 2018 @ 9:28am 
thanks for guide runningman! not sure if you plan on updating this guide for 18.04 LTS release, but just a heads up to anybody that decided to install 18.04 LTS instead of 16 - wine's ppa is not set up for 18.04 yet. you'll have to edit your sources.list to add the artful/17.10 repo
tosco May 12, 2018 @ 8:14am 
I'm really noob with linux, need some help. After a day, almost, my server stops running, looks like a error in Wine, I don't really know. That's the last line:

May 12 11:59:23 conanexiles[4280]: wine: Call from 0x7b44be07 to unimplemented function msvcp140.dll
lines 172-213/213 (END)

Already tried 2 times, even redoing everthing step by step, restarting, still same problem. Anyone have any problem like that?