Skip to content

Installation

Meesmaalt edited this page Sep 9, 2017 · 1 revision
Debian ## Debian Step 1: Verify or install these dependencies: lib32gcc1, tmux (V2.0+), php7.0, php7.0-gd
    sudo apt-get update
    echo 'deb http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
    echo 'deb-src http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
    sudo apt-get install curl
    curl https://www.dotdeb.org/dotdeb.gpg | sudo apt-key add -
    sudo apt-get update
    sudo apt-get install -y exuberant-ctags cmake libevent-dev libncurses5-dev lib32gcc1 php7.0 php7.0-gd
    wget https://github.com/tmux/tmux/releases/download/2.0/tmux-2.0.tar.gz
    tar xvf tmux-2.0.tar.gz
    cd tmux-2.0
    ./configure && make
    sudo make install

Step 2: Create a new user for avorion to run on. (Do not use root)

    sudo adduser avorion
    sudo su - avorion

Step 3: Download the manager

    wget -O DirtyServerManager.tar.gz avorion.dirtyredz.com

Step 4: Unpack the tar file

    tar -xvf DirtyServerManager.tar.gz

Step 6: Steamcmd and avorion server Installation

    ./manager install

Step 7: After a succesful server installation you can start the server

    ./manager start

Step 8: [Optional] To start the web interface run this commands

    ./manager start-web

    This command will start the PHP-web-server, this server is unable to handle ssl requests.
    Ultimatly the php server is not as robust as an apache server, that is why I include an apache settup below. 
CentOS ## CentOS

Step 1: Verify or install these dependencies: lib32gcc1, tmux (V2.0+), php7.0, php7.0-gd

    sudo yum -y update

CentOS/RHEL 7.x:
        rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
        rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6.x:
        rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
        rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm


RedHat/CentOS
      sudo yum -y install glibc libstdc++ php70w php70w-gd gcc kernel-devel make ncurses-devel

RedHat/CentOS 64-Bit
      sudo yum -y install glibc.i686 libstdc++.i686 php70w php70w-gd gcc kernel-devel make ncurses-devel


    wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
    tar -xzvf libevent-2.0.21-stable.tar.gz
    cd libevent-2.0.21-stable && ./configure
    make
    sudo make install
    cd ..
    curl -OL https://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz
    tar -xvzf tmux-2.3.tar.gz && cd tmux-2.3
    LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
    make
    sudo make install

Step 2: Create a new user for avorion to run on. (Do not use root)

    sudo useradd avorion
    sudo passwd avorion
    sudo su - avorion

Step 3: Download the manager

    wget -O DirtyServerManager.tar.gz avorion.dirtyredz.com

Step 4: Unpack the tar file

    tar -xvf DirtyServerManager.tar.gz

Step 6: Steamcmd and avorion server Installation

    ./manager install

Step 7: After a succesful server installation you can start the server

    ./manager start

Step 8: [Optional] To start the web interface run this commands

    ./manager start-web

    This command will start the PHP-web-server.

    DSM's Apache installer DOES NOT SUPPORT CENTOS/RedHat distributions
Port configuration

Step 9: After all is done and working properly be sure to secure your firewall with the appropriate commands. Remember to open ports for the game as well as the web interface These are the default ports you will need to open:

    tcp/27000
    udp/27000
    udp/27003
    udp/27020  -Steam
    tcp/27020  -Steam
    udp/27021  -Steam
    tcp/27021  -Steam
    tcp/8080   -web interface default
    tcp/443    -If using apche/ssl
Clone this wiki locally