Requirements:
- A linux PC/Server (in my case a dedicated server with ubuntu 12.04)
- A windows PC
- A legit copy of Arma 2 + OA (no support for cracked games)
- A graphical interface on your server (if you don't have one, I recommend using fluxbox)
- Recommanded:
Basic knowledge of linux CLI
EDIT: I figured out that wine only use one core of the CPU on both of my servers. You can still try to tweak wine and linux to get it running on all the cores but I personally switched to Windows Server for free thanks to Microsoft Dreamspark.
Step 1 - Installing wine on the server
We will use the lastest dev version of wine, wich is 1.6
Add the new wine repository:
Reload sources and install wine 1.6:
If you are running ubuntu 12.10 or higher on a amd64 PC, you will need to add i386 as new foreign architecture:
Step 2 - Setting up Wine and dependancies
Create a new Wine prefix:
This will install and configure wine. Now we will use winetricks to install everything we need.
You might need to install zenity in order to get winetricks working:
Follow this tutorial's instructions to install all the needed dependencies:
Step 3 - MySQL
Install MySQL:
If you already have a working MySQL server, skip this part.
NOTE: If you want to host a web site, I recommand installing a LAMP package, there is everything you need to host a web site, and mysql is included.
In order to access your database from another computer, we’ll need to take a look at the config file:
Look for “bind-address†and set it to 0.0.0.0 if you want your MySQL server to accept connections from any IP. Be careful with this, it may be dangerous if your server is directly connected to the internet. Press Ctrl + X to quit and press Enter to save.
Restart MySQL:
Login as root:
Add a new user:
*.* means that this user can acess all databases
‘remote_user’ is the username
‘123.123.123.123’ is the authorized IP (put % to accept connections from any IP)
‘user_password’ is the password
Create a database:
Import database schema using Reality CP with login details above.
Step 4 - Setting up the server
We will need a copy of a valid Arma 2 Combined Operations folder. You can try to download it with steam on ubuntu or with wine, but for those who have a dedicated server it will probably not work with steam, because steam requieres a graphic card (I’m not 100% sure about that, but I couldn’t get steam working on my server). However, I recommand uploading your own Arma 2 CO installation to your server (it won’t be a problem if you run the server on a PC that you can physically access) - it took me 3 days to upload my Arma 2 CO installation.
Now build your server on your PC (If you have no idea how to do that, read the Reality Wiki), configure it ON YOUR PC, make sure everything works on windows before testing on linux, and then upload it to your linux server.
Type the folowing code to open a Windows Shell:
NOTE: It’s recommanded to create a new MySQL user for the DayZ server’s hive.
- A linux PC/Server (in my case a dedicated server with ubuntu 12.04)
- A windows PC
- A legit copy of Arma 2 + OA (no support for cracked games)
- A graphical interface on your server (if you don't have one, I recommend using fluxbox)
- Recommanded:
Basic knowledge of linux CLI
EDIT: I figured out that wine only use one core of the CPU on both of my servers. You can still try to tweak wine and linux to get it running on all the cores but I personally switched to Windows Server for free thanks to Microsoft Dreamspark.
Step 1 - Installing wine on the server
We will use the lastest dev version of wine, wich is 1.6
Add the new wine repository:
Code:
sudo add-apt-repository ppa:ubuntu-wine/ppa
Reload sources and install wine 1.6:
Code:
sudo apt-get update && sudo apt-get -y install wine1.6
If you are running ubuntu 12.10 or higher on a amd64 PC, you will need to add i386 as new foreign architecture:
Code:
sudo dpkg --add-architecture i386
Step 2 - Setting up Wine and dependancies
Create a new Wine prefix:
Code:
WINEARCH=win32 WINEPREFIX=~/.wine winecfg
This will install and configure wine. Now we will use winetricks to install everything we need.
Code:
WINEARCH=win32 WINEPREFIX=~/.wine winetricks --gui
Code:
sudo apt-get install zenity
Follow this tutorial's instructions to install all the needed dependencies:
HTML:
http://youtu.be/pKJ24Vs4_Yk?t=9m5s
Step 3 - MySQL
Install MySQL:
If you already have a working MySQL server, skip this part.
Code:
sudo apt-get install mysql-server
NOTE: If you want to host a web site, I recommand installing a LAMP package, there is everything you need to host a web site, and mysql is included.
In order to access your database from another computer, we’ll need to take a look at the config file:
Code:
sudo nano /etc/mysql/my.cnf
Look for “bind-address†and set it to 0.0.0.0 if you want your MySQL server to accept connections from any IP. Be careful with this, it may be dangerous if your server is directly connected to the internet. Press Ctrl + X to quit and press Enter to save.
Restart MySQL:
Code:
sudo service mysql restart
Login as root:
Code:
mysql -u root -p
Add a new user:
Code:
grant all privileges on *.* to 'remote_user'@'123.123.123.123' identified by 'user_password';
*.* means that this user can acess all databases
‘remote_user’ is the username
‘123.123.123.123’ is the authorized IP (put % to accept connections from any IP)
‘user_password’ is the password
Create a database:
Code:
create database dayz;
Import database schema using Reality CP with login details above.
Step 4 - Setting up the server
We will need a copy of a valid Arma 2 Combined Operations folder. You can try to download it with steam on ubuntu or with wine, but for those who have a dedicated server it will probably not work with steam, because steam requieres a graphic card (I’m not 100% sure about that, but I couldn’t get steam working on my server). However, I recommand uploading your own Arma 2 CO installation to your server (it won’t be a problem if you run the server on a PC that you can physically access) - it took me 3 days to upload my Arma 2 CO installation.
Now build your server on your PC (If you have no idea how to do that, read the Reality Wiki), configure it ON YOUR PC, make sure everything works on windows before testing on linux, and then upload it to your linux server.
Type the folowing code to open a Windows Shell:
Code:
wineconsole cmd
NOTE: It’s recommanded to create a new MySQL user for the DayZ server’s hive.