Установка dayz сервера linux

Установка dayz сервера linux

/r/dayz — Discuss and share content for DayZ, the post-apocalyptic open world survival game.

Brief guide which I’ll update as I go.

This was done on Linux Mint 18.3, tried using PlayOnLinux to install steam which worked but couldn’t get a x64 version of wine loaded so I did this instead.

  1. Follow the steps on here to install Wine directly — https://wiki.winehq.org/Ubuntu (I used the staging branch)
  2. That installed wine to /opt/wine-staging, this is just for information.
  3. Download the windows steam installer https://steamcdn-a.akamaihd.net/client/installer/SteamSetup.exe
  4. When downloaded, right click on it and select open with wine (or words to that effect).
  5. Go through the install process and log in to your steam account.
  6. When in steam, click on library / tools, right click on DayZServer and select install.
  7. This will install to Home/.wine/drive_c/program files (x86)/steam/steamapps/common/dayzserver
  8. Create a batch file as described elsewhere in this sub reddit.
  9. Right click on your batch file and run it with wine.
  10. The screen did lock up for a while but just minimising the windows (windows key + D) seemed to sort it out.
  11. Configure your router firewall to port forward your port (TCP), i.e. mines 2302.
  12. That should be about it.

Hope it helps someone who doesn’t have a spare Windows license 🙂

I found that no dynamic zombies where spawning so after a bit of digging I came across this post https://forums.dayz.com/topic/239757-zombies-not-spawning-regular/

In particular this section;

I messed around with the loot economy xml files and perhaps found some kind of a fix.

In events.xml I noticed that the ambient animal «children» all had both max and min values, whereas the infected all had max=0. By changing the max to a value equal to or higher than the min, I’ve been able to have infected in more than one town.

As an example for InfectedVillage:

I haven’t done a lot of testing, but so far managed to spawn into Gorka, then run to Polana and Orlovets and see infected in both villages. On a second attempt, I spawned in Solnichniy, ran north to Nizhnoye and also found infected there.

Perhaps it’s more akin to treating the symptoms than actually fixing the issue, but it at least makes the server more fun!

My current events.xml is here: https://www.dropbox.com/s/zywrb7swa1ezh6l/events.xml?dl=0 . I’m sure the values can be optimized with further testing.

Читайте также:  Linux kernel return codes

Edited 22 minutes ago by ColKernel
Added link to my events.xml»

Источник

Установка dayz сервера linux

Detailed Guide to setup a DayZ Server on a Linux machine running Debian or Ubuntu!
For dedicated Root and V-Server with SSH/Console access running on a remote/local installed system.

2

3

2

4

2

1

1

1

1

1

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

The installation of steamcmd and the serverfiles starts automatically!
*update the script with ‘./dayzserver us‘ to get fixes
**(nano: ctrl+x then yes to save)

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.
(nano will be used to open the files)

Information! Press «CTRL+b» then «d» to exit console.
Warning! Do NOT press CTRL+c to exit. It will shut down the 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 desired Mod, the script config ‘[1] (.dayzserver.cfg)‘ contains the «-mod=» parameter.

# Steam Workshop # to enable mods, remove the # below and enter the Mods like this: «-mod=@Mod1;@Mod2;@Mod3» #workshop=»-mod=»

If you are up to modify the Mission, keep in mind that an update can overwrite the files!
Make a copy of it and change whatever you want!

cp -r ~/serverfiles/mpmissions/dayzOffline.chernarusplus/ ~/serverfiles/mpmissions/mydayzmission.chernarusplus/

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:

The Script will copy the key files into the right place (as long as the mod also have it in a keys folder)

The default mission dayzoffline.chernarusplus will be set to default if you verify the server files (./dayzserver v)

To get the help you need please provide enough information as possible about your issue.
This will reduce the potential back and forth between you and those
who want to help resolve your issue.

The script is not 100% perfect, but it does it’s job and takes a lot of work from you, so you can focus on tweaking the settings and jump into the game.

If you don’t want to use the script but host a server on Linux, look into the code to understand what is necessary to run a DayZ Server on Linux.

Читайте также:  Linux послать udp пакет

But keep in mind that the serverfiles are still on experimental and any update can break it for us and then you may seek help on the dayz forum.

Do you ever tryed a install on a mountet ramdisk with backup at main server shutdown on a local Drive? Maybe better Performence because faster write and read as a normal drive?

Good job btw works for me too. Some trouble with crontab but my fault changed Servertime before -.-

Thanks for the tutorial! It started, but I can’t connect. I started the experimental client but it don’t show up in my browser, even in favorites bt I guess, I’ll wait till stable 😀

@Kuper: add your server to the steam serverbrowser favorites —
as Xanth already said, you can only see and connect to the server with the dayz experimental client

Источник

Deploy DayZ (Experimental) Game Servers

LinuxGSM is the command-line tool for quick, simple deployment and management of Linux dedicated game servers.

DayZ (Experimental) Logo

Compatibility

DayZ (Experimental) will run on popular distros as long as the minimum requirements are met.

Server

For consistant uptime it is recomended you host a server in a data center. If you dont already have a server, you can rent a dedicated or vitual server from one of our sponsored providers, OVHCloud, Linode, Vultr.

  • Ubuntu IconUbuntu 18.04 LTS
  • Debian IconDebian 10
  • Centos IconCentOS 8

Other Distros

Although not tested, any distro with tmux => 1.6 and glibc => 2.27 should also be compatible with DayZ (Experimental) servers.

SteamCMD

SteamCMD by Valve is used to install and update this game server.

SteamDB

Steam uses appid 1042420.
Update history is available from SteamDB.

Dependencies

Before installing, you must ensure you have all the dependencies required to run dayzserver.

These intructions also cover other RHEL derivatives such as AlmaLinux and Rocky Linux.

Ubuntu 64-bit

Ubuntu = 20.10

Ubuntu Icon

sudo dpkg --add-architecture i386; sudo apt update; sudo apt install curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux netcat lib32gcc-s1 lib32stdc++6 libsdl2-2.0-0:i386 steamcmd

Debian 64-bit

Debian = 11

Debian Icon

sudo dpkg --add-architecture i386; sudo apt update; sudo apt install curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux netcat lib32gcc-s1 lib32stdc++6

EPEL is required to install some dependencies needed for using LinuxGSM on CentOS.

CentOS 64-bit

CentOS Icon

yum install curl wget tar bzip2 gzip unzip python3 binutils bc jq tmux glibc.i686 libstdc++ libstdc++.i686

Gamedig

GameDig is a recommended additional module that allows LinuxGSM to gather more info from the game server such as current map and connected players to be displayed in details and in logs. It also replaces the default LinuxGSM query module in monitor. To install GameDig follow the steps in the LinuxGSM documentation.

Читайте также:  Calculate linux установка virtualbox

Install Dependencies Using LinuxGSM

It is possible for LinuxGSM to install dependencies either by having the dayzserver user account with sudo access or running the installer as root.

user with sudo access

During the installation if the game server user has sudo permissions LinuxGSM will attempt to install any missing dependencies itself.

root user

if dayzserver is already installed run ./dayzserver install as root and LinuxGSM will automatically install missing dependencies.

Install

From the command-line do the following. Ensuring you have also installed the required dependencies.

1. Create a user and login.

wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh dayzserver

Basic Usage

All Commands

Running

start

stop

restart

console

Console allows you to view the live console of a server as it is running and allow you to enter commands; if supported.

Updating

update

Update checks for any server updates and applies them. The server will update and restart only if required.

validate

Debugging

Details

You can get all important and useful details about the server such as passwords, ports, config files etc.

Debug

Use debug mode to help you if you are having issues with the server. Debug allows you to see the output of the server directly to your terminal allowing you to diagnose any problems the server might be having.

Logs

Server logs are available to monitor and diagnose your server. Script, console and game server (if available) logs are created for the server.

Backup

Backup will allow you to create a complete tar bzip2 archive of the whole server.

Monitor

LinuxGSM can monitor the game server by checking that the proccess is running and querying it. Should the server go offline LinuxGSM can restart the server and send you an alert. You can use cronjobs to setup monitoring.

Configure LinuxGSM

For details on how to alter LinuxGSM settings visit LinuxGSM Config Files page.

Documentation

For detailed documentation visit the LinuxGSM docs.

Cronjobs

To automate LinuxGSM you can set scheduled tasks using cronjobs, to run any command at any given time. You can edit the crontab using the following.

Below are the recommended cron tasks.

*/5 * * * * /home/dayzserver/dayzserver monitor > /dev/null 2>&1 */30 * * * * /home/dayzserver/dayzserver update > /dev/null 2>&1 0 0 * * 0 /home/dayzserver/dayzserver update-lgsm > /dev/null 2>&1

Configure LinuxGSM

For details on how to alter LinuxGSM settings visit LinuxGSM Config Files page.

Documentation

For detailed documentation visit the LinuxGSM docs.

Источник

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