For the following instructions, it is assumed that you are running Ubuntu or Debian, preferably a newer version. Old versions may not support apt-get on all dependencies. Instructions are all done using terminal/SSH.

If a command fails, it may require root/sudo

1: Open Terminal or SSH into your Linux machine.

2: Run "apt-get update"

3: Run "apt-get install git autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncurses5-dev"

4: Run "git clone git://github.com/luke-jr/bfgminer.git"

5: Enter the bfgminer directory

6: Run "./autogen.sh"

7: Run "./configure" (if you do not want to use GPUs on the machine, add --disable-opencl)

8: Run "make"

9: After make completes, you can run bfgminer directly (may require sudo), or create a shell script that includes your arguments.

Running BFGMiner:
./bfgminer -o stratum+tcp://stratum.btcguild.com:3333 -u txjcv_1 -p 123 -S all --icarus-options 115200:1:1 --icarus-timing 3.0=100