Jump to content
Sign in to follow this  
mixxit

Guide: Hosting a DayZ 1.7.2.6 Server on Linux

Recommended Posts

This guide is for hosting a DayZ server on Linux with Debian Wheezy and wine 1.5, this should work on ubuntu and other similar flavours of linux or even other versions of linux so long as you make use of your own appropriate package managers and similar versions of prerequisites such as wine and winetricks

This guide assumes you know how to run your linux server and make use of editting tools such as vim or nano, installation tools such as apt and also the basics of mysql

This will make use of the Bliss server provided by Ayan4m1

What you will need:

* Access to SSH with root privileges

* A server with at least 2gb of ram

* Access to control your firewall to open the necessary server ports

To begin this process, login to SSH with an account with sudo privileges or as root

Step 1 - Install mysql server and perl

sudo apt-get intall mysql-server

sudo apt-get install perl

Step 2 - Create a new user with the SSH command:

sudo adduser dayz

Step 3 - Login to your mysql server with

mysql -u root -p

Run the following commands as provided on the ayanm4m1 guide (https://github.com/ayan4m1/DayZ-Private#dayz-bliss-private-server):

create database dayz;

create user 'dayz'@'localhost' identified by 'CHANGEME';

grant all privileges on dayz.* to 'dayz'@'localhost';

quit;

Step 4 - Install wine

sudo apt-get install wine winetricks

Step 5 - Install vncserver

sudo apt-get install vncserver

Step 6 - Install a lightweight window manager such as fluxbox

sudo apt-get install fluxbox

Step 7 - Login in to SSH with your newly created dayz account

Step 8 - Start vncserver

vncserver

Step 9 - Login to your vnc server with tightvnc client or any other flavour of vnc client (http://www.tightvnc.com/download/2.5.2/tightvnc-2.5.2-setup-32bit.msi)

Step 10 - Open XTerm or a similar terminal console (if you don't have this, try apt-get install xterm)

Step 11 - Install directx9

winetricks directx9

Step 12 - Install Microsoft visual c++ runtimes 2008, 2010 and dotnet 4

winetricks vcrun2008

winetricks vcrun2010

winetricks dotnet4

Step 13 - Copy your arma2 / arma2oa installation to your server over FTP or similar and create them in this folder structure

\arma\arma2

\arma\arma2oa

Step 14 - Download the latest version of Bliss to your PC and extract it and upload to your arma\blissinstall folder

Latest version can be found here: https://github.com/ayan4m1/DayZ-Private/zipball/master

Step 15 - Install the perl pre-requisites required by the perl scripts

./setup_perl.sh

Step 16 - Run the repack script provided by Bliss in your blissinstall folder

perl repack.pl

Step 17 - Again in your blissinstall folder populate your database with the command below (changing the password to the one set above when you created your databases in mysql)

perl db_migrate.pl --password CHANGEME

Step 18 - Copy all the files from your deploy folder into the arma2oa folder

Step 19 - Edit the bliss.ini files in arma2oa folder to match your database settings created above

Step 20 - Edit the config settings for your server in the Bliss\config.cfg file (or BlissLingor\config.cfg depending on which server you are going to run)

Step 21 - Change directory to your arma2oa folder in the xterm window you have open in VNC and start the server

wineconsole cmd

start_server

Share this post


Link to post
Share on other sites

Since the structure of Bliss has changed I've wasted about 10 hours without get it working.

I'm starting it using:

Expansion/beta/arma2oaserver.exe -profiles=C:\cfgdayz -name=Bliss -bepath=C:\cfgdayz\BattlEye -cfg=C:\cfgdayz\ArmA2OA.cfg -config=C:\cfgdayz\Bliss_Qmlhr8u6vV.cfg -ip=xxx.xx.xx.xx -port=2302 -mod=@dayzfallujah;@bliss_1.fallujah

C:\cfgzdayz is .wine/drive_c/cfgdayz and containg:

drwxr-xr-x 3 gameserver2 gameserver2 4096 Nov 6 16:11 .

drwxr-xr-x 7 gameserver2 gameserver2 4096 Nov 6 16:11 ..

-rw-r--r-- 1 gameserver2 gameserver2 393 Nov 6 16:12 ArmA2OA.cfg

lrwxrwxrwx 1 gameserver2 gameserver2 37 Nov 6 16:11 BattlEye -> /home/gameserver2/dayz4linux/BattlEye

lrwxrwxrwx 1 gameserver2 gameserver2 42 Nov 6 16:11 Bliss.log -> /home/gameserver2/dayz4linux/var/Bliss.log

-rw------- 1 gameserver2 gameserver2 3207 Nov 6 16:11 Bliss_Qmlhr8u6vV.cfg

-rw-r--r-- 1 gameserver2 gameserver2 2104 Nov 6 16:11 HiveExt.ini

drwxr-xr-x 3 gameserver2 gameserver2 4096 Nov 6 16:11 Users

lrwxrwxrwx 1 gameserver2 gameserver2 50 Nov 6 16:11 arma2oaserver.RPT -> /home/gameserver2/dayz4linux/var/arma2oaserver.RPT

-rw-r--r-- 1 gameserver2 gameserver2 1427 Nov 6 16:11 coredump.ahk

lrwxrwxrwx 1 gameserver2 gameserver2 44 Nov 6 16:11 hiveext.log -> /home/gameserver2/dayz4linux/var/hiveext.log

There is never written anything to hiveext.log. I'm able to connect but then I get displayed "Server is running an incorrect version of the server side application"

I've changed the Passwort in HiveExt.ini...

Someone has any idea?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×