Dayz свой сервер linux

Dayz свой сервер linux

2,075 уникальных посетителей
39 добавили в избранное

sudo dpkg —add-architecture i386; sudo apt update; sudo apt install tmux nano htop curl lib32gcc1 lib32stdc++6 psmisc wget rename -y

sudo dpkg —add-architecture i386; sudo apt update; sudo apt install tmux nano htop curl lib32gcc-s1 lib32stdc++6 psmisc wget rename -y

sudo useradd -m -s /bin/bash ‘username’
sudo su — ‘username’

Now you can modify the serverDZ.cfg (located in the serverfiles folder),
More information at: the dayz-server-files-documentation [forums.dayz.com]

The following command show you the config files to setup your server.

The Script can download and update Mods from the Steam Workshop.
It will look for the Workshop ID in the ‘.workshop.cfg’ file.

You can find the ID in the Steam Adress bar.

To load the disired Mod, the script config ‘.dayzserver.cfg‘ contains the «-mod=» parameter.

class Missions
<
class DayZ
<
template=»mydayzmission.chernarusplus»; // Mission to load on server startup. .
>;
>;

You can find the Logfiles under «$/serverprofile/» (folder will be created upon serverstart)

Every start the Server will create a new file:

run ./dayzserver cfg
type in 1 or script
remove the # from the line with the logs to enable them

sudo iptables -A INPUT -p udp -m udp -m multiport —dports 2302,2304,27016 -j ACCEPT

sudo apt install iptables-persistent -y

Источник

Dayz свой сервер linux

Данная статья посвящена настройки публичного сервера в DayZ. Для того что бы скачать серверных файлов необъодимо иметь аккаунт с купленным DayZ. Ниже представлен видеогайд по настройке сервера от DonyPlays.

ХАРАКТЕРИСТИКИ СЕРВЕРА ДЛЯ КОМФОРТНОЙ РАБОТЫ:

Минимальные (предварительные) требования для создания собственного публичного сервера DayZ

ЗАГРУЗКА СЕРВЕРНЫХ ФАЙЛОВ

Для начала нам необходимо скачать серверные файлы в Steam.

1. Заходим в ваш Steam в раздел Библиотека.

2. В поиске вписываем «DayZ Server».

3. Загружаем серверные файлы.

СОЗДАНИЕ И НАСТРОЙКА BAT.ФАЙЛА

Для тех кому лень в ручную создавать этот файл, его можно просто скачать по ссылке и разместить содержимое архива в папке с серверными файлами.

1. Переходим в папку с расположением файлов сервера.

2. Р ядом с DayZServer_x64.exe создаем файл Start.bat с содержимым:

3. В параметре » -BEpath= » необходимо указать полный путь до папки battleye.

4. Запускаем сервер и дожидаемся когда сервер прогрузится, после получения сообщение » Player connect enabled » можем подключатся к серверу

START.BAT ЗНАЧЕНИЕ ПАРАМЕТРОВ

Подробное описание всех параметров файла start.bat

Подключаемые моды. Например @Community-Online-Tools; @CF

Немного информации по подключению модов, в большинстве случаев подключение того или иного мода требует индивидуального подхода.

1. Качаем любой мод через Мастерскую Steam.

2. Запускаем в лаунчер, переходим в раздел «Моды».

3. В списке загруженных модов, выбираем необходимый и нажимаем на стрелочку вниз, а далее на три точки (Отображает больше параметров).

4. В открывшимся окне выбираем «Открыть папку».

5. Копируем папку с модом, мод будет начинаться со значка @.

6. Возвращаемся в папку с серверными файлами и перемещаем в нее папку со скопированным модом.

Читайте также:  List the running process linux

7. Далее нам необходимо скопировать ключ модификации, он будет располагаться в папке модификации в папке «Keys» и переместить его в папку «Keys» расположенную в директории папки сервера.

8. В файле START.BAT нам необходимо прописать путь до мода. Открываем этот фаил.

9. Добавляем строку «-mod=@название_мода».

SERVERDZ.CFG И ЗНАЧЕНИЕ ПАРАМЕТРОВ

В данном разделе я постарался расписать все параметры серверных опций.

МИССИЯ ДЛЯ ЗАГРУЗКИ ПРИ ЗАПУСКЕ СЕРВЕРА.

Источник

Dayz свой сервер linux

A private hive DayZ 1.8.0.3 server on Linux

The following programs must be installed on your Linux system: screen, tar, gcc, perl, mysql.

Download and install newest ArmA beta patch (http://www.arma2.com/beta-patch.php).

Copy the whole «ArmA 2: Operation Arrowhead» directory from Windows to server Linux-directory.
ArmA2 directory should contain subdirectories «Addons», «Dta», «Expansion», etc.
Example: pack with PKZIP (WinZip, PowerArchiver, etc.) on Windows and unpack with «unzip» on Linux.
DO NOT use upper case letters in the ArmA2 directory name (or in any files that the server uses like missions or mods):
GOOD: «/home/bob/arma2arrowhead»
BAD: «/home/bob/ArmA2ArrowHead»
http://rutor.org/torrent/240581/

Run ./install
Watch the messages — they might inform you whether your installation failed. Double check that all directories were renamed to lower case. Remove any .dll files you might still find (in battleye, expansion and expansion/battleye directories).
When adding mission .pbo’s or mods remember to run ./tolower again or manually change the filenames to lowercase.
ANY uppercase letter in a filename will crash the server!

Create database «dayz» (login: «dayz», password: «dayz») and load database.sql into Mysql.
Load vehicle objects:

$ chmod +x install server *.sh *.pl
$ sudo apt-get install libjson-xs-perl
For 64-bit only:
$ sudo apt-get install lib32stdc++6

Источник

[GUIDE] Hosting a DayZ/Arma server on Linux

Quentix

Member

— 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:

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.

Follow this tutorial’s instructions to install all the needed dependencies:

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.

Читайте также:  Последнее обновление windows 10 изменения

*.* 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:

Quentix

Member

Step 5 — Installing Perl and BEC for auto reboots and vehicle spawn

Download strawberry perl:

Install it with wine:

Download this package:

This archive contains some needed libs to run cleanup, respawn and other perl scripts.
Now, unrar this archive (unrar x lib.rar) in your strawberry lib folder (C:\StrawberryPerl\perl\site\lib)

Your virtual C: drive is located in the .wine folder of your /home:

Now we will need BEC (Battleye Extended Controls):

Unzip it in a ‘BEC’ folder in your arma 2 installation, and edit the config file:

IP and Port should be 127.0.0.1 and 2302, and BePath should be something like this:

This is really important, if BEC can’t find your Beserver.cfg, it won’t start.
The rest of the options should be ok, but don’t forget to uncomment the Scheduler = Scheduler.xml and rename A2_Admins.xml to Admins.xml. Also, ServerExeName should be arma2oaserver.exe.

Download this hand-made package:

You will need to adjust thoses files to your configuration:

— Backup.bat
— Respawn.bat
— Cleanup.bat
— Script.bat
— Start_script.bat
— Schedule.xml
— Server.bat

When the server reboot, thoses scripts will:

— Kill Arma 2 server
— Kill BEC
— Cleanup/Respawn
— Backup
— Launch BEC
— Launch Arma 2 server

J4YpL4Y

New Member

Hay nice post just waiting for step 5

I have my server running fine just having problems with BEC.

My server is running Overwatch but im having problems with getting auto restarts to work. I have had it all working before but it was Windows server. I start BEC with the normal ./BEC.exe -f Config.cfg and it hangs on waiting for server to start even though the server has been running for hrs.

Is it down to the server name in the config.cfg?? As arma2oaserver.exe dont show in the prossesis (htop) just the start line looking string.

Читайте также:  Prestigio smartbook 116a03 переустановка windows

I have configured the Restarter.exe from reality pack to start @hive@dayz_overwatch. So could the problem be down to the way i start the server.

Eny help or advice would be grand.

J4YpL4Y

New Member

Quentix

Member

I’m on vacation ATM so I can’t really help you (I’ll be home this WE). However, you will need to make a bat file which will:

1- Kill BEC and arma2oaserver.exe
2- Save the database (optional)
3- Call the respawn script (or the pMain function) This is the where it’s difficult, installing strawberry Perl with wine works, but the bat file that installs the Perl modules didn’t work for me. You’ll need to do this on your PC and manually upload the modules to your server (I’ll make an archive with everything needed inside)
4 — Some other scripts (bans etc. )
5- Launch Arma 2 Server
6- Launch BEC

This way, with BEC correctly configured, your server will auto-restart and do everything that is necessary for a DayZ server.
You may have problems with BEC launching the .bat because it’s launched from BEC and this .bat will kill BEC, so it will stop the .bat and auto-kill itself. The solution to this problem is to make another .bat which will open another shell that will not be killed by the .bat

I may not be clear, so let me know if you don’t understand something.

J4YpL4Y

New Member

I can not get BEC to connect to the server let alone run a scedule and call a .bat

Perl is installed using Perl_setup.sh

Will you not end up with lots of terminals open after sevrel restarts?

Thanks for reply

indepth

Member

Quentix

Member

I can’t tell you precisely what performance you’ll get; with wine, sometimes it’s faster than windows itself, but sometimes it’s slower than windows. I’ll do a comparative test of windows vs Linux on my PC, but results won’t be representative or what you’ll get on your PC/server.

@J4YpL4Y: You need to install strawberry Perl with wine, because the server is running with wine, and also BEC. Otherwise you won’t be able to execute scripts on reboots. The virtual Windows environment cannot interact with Linux (I’ve search a lot, but I didn’t find anything)

J4YpL4Y

New Member

@indepth i can confirm prformance is good and linux is very stable imo. My linux server was up for 364days without issue the only reason for restart was linux update. I am running 3 cod4 , 2 mohaa 1 dayz and 2 csgo. and all is good.

@Quentix Strawberry perl is installed but still BEC will not connect to the server. No faults in the log. No conflicts with firewall. Config is correct. It dont happen very often but im stuck.

Quentix

Member

Try to launch BEC after the Arma server, in the .bat script, just add pings to wait:

J4YpL4Y

New Member

No as i said in my first post the server is online and i has been for hrs before i start BEC. The amount of time has no afect.

Источник

Оцените статью