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.
< >
K9K | datLicht Jun 17 @ 5:00am 
It doesn't work for me. I Set up the server as described, if I start it in screen I can see it is working, even when I trie to connect I can see the following lines in log:

fixme:wininet:InternetAttemptConnect Stub
fixme:wininet:InternetSetOptionW Option 77 STUB
fixme:secur32:schannel_get_mac_algid unknown algorithm 200
fixme:secur32:schannel_get_mac_algid unknown algorithm 200

But the game keeps to say "server not found"

Can anyone help me?
|DLB|<Stefan> May 19 @ 6:13am 
The server is running. My question, how can I change the ports? I would like 27020 and 7780 Because I already have 2 Ark server running.
Gawelium Mar 16 @ 3:04pm 
Sorry to come again but I still can't start the update :

sudo start /home/steam/exiles/
start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

I don't know what can I do to resolve this :/
Please help

Gawelium Mar 14 @ 5:17pm 
I have to delete all my files and reconfigure all steps. Adding my backup and it's working !
Gawelium Mar 14 @ 2:31pm 
is the app number is good ? conan has id : 440900
Sorry ^^
Gawelium Mar 14 @ 1:54pm 
I try to update server but i've got this error : Error! App '443030' state is 0x602 after update job.
MOJO SO DOPE Mar 14 @ 8:38am 
@Gawelium Ctrl+c attached to screen or screen -S <screen name> -x stuff '\003' detached from screen session
MOJO SO DOPE Mar 14 @ 8:36am 
@Joe what are u having trouble with? feel free to add me on steam i'll help you out :)
Joe Mar 13 @ 3:29pm 
Guide is missing a big part of what you user you want each command run as. Been troubleshooting this for a while now due to user issues I believe.
Gawelium Mar 9 @ 7:20am 
Just a little question : how to make a restart ? I have to wait a backup before stop service and start again or it exists a command to make a restart ? thank you ;)