This is a page dedicated to Barotrauma on Linux. This page provides directions enabling you to:
It should be noted that these guides assume you are using a Debian-like or Ubuntu-like distro (more specifically, a distro with Aptitude/apt package manager installed). This preference for distro is mostly just based on the package manager due to the method shown of installing mono. Finding a way to do this on other distros should be relatively straightforward assuming you are experienced with your package manager of choice.
In order to play Barotrauma, you need to download the linux version here. It is a somewhat sizable download so while it is downloading, you can move on in the tutorial as the barotrauma folder itself isn't required until the final step.
This is how you install/revert to Mono 5.4.0. This is needed to fully enjoy legacy versions of Barotrauma.
To go into further detail, cross-playing between Windows and Linux computers without Mono 5.4 is impossible in legacy. Barotrauma 0.8.2.3 (that's legacy) was intended to be used with Mono 5.4 for multiplayer syncing, and due to some OS-specific bizzare bug, the cave terrain won't sync properly because of conflicting float-rounding. This will cause games running on Windows servers to flood you with desync errors before ultimately kicking you, rendering cross-platform multiplayer an impossibility.
First, you need to add the repository for 5.4.0 to a file in order to have it available from the apt package list.
Enter the following into a terminal session and enter your password when prompted:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/5.4.0 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt update
This will create the file
deb http://download.mono-project.com/repo/debian wheezy/snapshots/5.4.0 mainFinally, the third line of the code entered above will update the package list so that the new additions are present. A bunch of text will fly by. If it asks you for a y/n response, hit "y" and enter. This might take a little bit depending on your internet speed.
To make sure the version has been set to 5.4.0, enter the following into your terminal once as the updating is done:
apt search mono-complete
...and ideally you should see this (or at least something with the same numbers):
Sorting... Done Full Text Search... Done mono-complete/wheezy/snapshots/5.4.0.201 5.4.0.201-0xamarin10+debian7b1 amd64 complete Mono runtime, development tools and all libraries
With adding the repo out of the way, install Mono from apt by entering this:
sudo apt install mono-complete
If prompted with y/n, hit y and enter the same way you did before. After the text has finished flying by, to check your installed version of Mono type in:
mono -V
and you should be greeted with
Mono JIT compiler version 5.4.0.201 (tarball Fri Oct 13 21:56:25 UTC 2017) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
If you were greeted with this, congratulations, you have installed Mono 5.4.0.201.
If you just want to play already built pre-steam versions of Barotrauma, then you are done here, and you should be able to play them without any major issues assuming the versions themselves don't have issues. If you are trying to play a pre-5.16 development build, continue to the section below.