I've finally managed to get this bad boy to build on Linux and I wanted to share how I managed to do it.
My server is Ubuntu 15.04 and my Desktop is Linux Mint which I think is based on 14.04 LTS, none of the directions out there really explain either setup very well, for instance they still reference "graphene".
The method below should work fine for any recent debian based distro, note that it is not just copy/pasta from the github instructions. I actually had to add some things that were missing like automake
Here is how to do it assuming a fresh install.
First of all don't mess around with sudo just do a
sudo /bin/bash
Now you're root.
cd /root
apt-get install gcc-4.9 g++-4.9 cmake make automake libbz2-dev libdb++-dev libdb-dev libssl-dev openssl libreadline-dev autoconf libtool git
BOOST_ROOT=$HOME/opt/boost_1_57_0
apt-get update
apt-get install autotools-dev build-essential g++ libbz2-dev libicu-dev python-dev
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.bz2/download' -O boost_1_57_0.tar.bz2
[ $( sha256sum boost_1_57_0.tar.bz2 | cut -d ' ' -f 1 ) == "910c8c022a33ccec7f088bd65d4f14b466588dda94ba2124e78b8c57db264967" ] || ( echo 'Corrupt download' ; exit 1 )
tar xjf boost_1_57_0.tar.bz2
cd boost_1_57_0/
./bootstrap.sh "--prefix=$BOOST_ROOT"
./b2 install
cd /root
git clone https://github.com/bitshares/bitshares-2.git
cd bitshares-2
cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Debug .
make
If you get an error about boost not linking correctly
CC=gcc-4.9 CXX=g++-4.9 cmake .
At this point you now have the binaries built. You should install them properly.
I don't recommend you run it as root for obvious reasons.
I put the binaries in /usr/bin the config files should all go into /etc/bts
You'll need an init script and you should have a bitshares user who the script will run as.
You should also have a config.json and drop it into /etc/bts/
The working directory should be /usr/lib/bts and that directory should be owned by the bitshares user.
You should also deny login to the bitshares user by editing /etc/passwd and setting the shell to /bin/false
Then you just need to register it to services and make sure it starts at boot after the network interface is up, so run levels 3,4,5