(This file is old and from ptsminer, but should get you started. Also install nvcc and the appropriate nvidia and cuda drivers.)
Install the dependencies:
apt-get install build-essential zlib1g-dev libboost-dev
Compile the miner
cd ptsminer/src make -f makefile.unix
Install the dependencies:
apt-get install build-essential libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev zlib1g-dev
Compile the miner
cd ptsminer/src make -f makefile.unix.no-chrono