The scripts in this folder can be used to create a Unturned 3 environment on various linux distros.
Before you launch your server there are a few dependencies that have to be installed. 

Right now there is only a recipe available tested on Ubuntu 12.04 LTS / Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Debian 8. 
If you figure how to install Rocket on another distro or UNIX/Mac then feel free
to extend this file at https://github.com/RocketMod/Rocket.Unturned/new/master/Scripts/Linux/README

## Recipe for Ubuntu 12.04 LTS / Ubuntu 14.04 LTS
apt-get install screen htop unzip #Utils
apt-get install lib32stdc++6 #SteamCMD dependencies
apt-get install mono-runtime libmono2.0-cil
apt-get install libc6 libgl1-mesa-glx libxcursor1 libxrandr2 #  prerequisites for Unity 3D
apt-get install libc6-dev-i386 libgcc-4.8-dev # prequesites for BattlEye

##Recipe for Ubuntu 16.04 LTS
apt install screen htop unzip #Utils
apt install lib32stdc++6 #SteamCMD dependencies
apt install mono-runtime mono-reference-assemblies-2.0		                        
apt install libc6 libgl1-mesa-glx libxcursor1 libxrandr2 # prerequisites for Unity 3D
apt install libc6-dev libgcc-4.8-dev # prequesites for BattlEye

##Recipe for Debian GNU/Linux 8.7 (jessie) 
apt install screen htop unzip #Utils
apt install lib32stdc++6 #SteamCMD dependencies
apt install mono-runtime libmono2.0-cil               
apt install libc6 libgl1-mesa-glx libxcursor1 libxrandr2 # prerequisites for Unity 3D
apt install libc6-dev libgcc-4.8-dev # prequesites for BattlEye

## Steps to install

1. Install the prerequisites (Shown in the recipe above)
2. Copy the contents of the linux download in the root of the folder you want your Unturned 3 environment in
    cd ~
    wget https://ci.rocketmod.net/job/Rocket.Unturned%20Linux/lastSuccessfulBuild/artifact/Rocket.Unturned/bin/Release/Rocket.zip -O rocket.zip
    unzip -o rocket.zip
    rm rocket.zip
3. Fix permissions and run the update script to install Unturned 3
    cd ~/Scripts
    chmod 755 update.sh
    chmod 755 start.sh
    ./update.sh <steam username> <steam password>
    
    The scripts will create a hierarhy like this:
         ~/
            Scripts/
            Steam/
            unturned/
            steamcmd/
            
    #Note: To make sure Steam Guard is not bugging you better create a new Steam account and disable Steam Guard
    
4. Start the server, pick any single word as unique instance name
    screen -S <instance name>
    cd ~/Scripts
    ./start.sh <instance name>

5. To update Unturned & Rocket simply exit the server and the screen and start from step 2

