Compile SGminer on Ubuntu Linux

This is the guide I used to install SGminer on Ubuntu Linux. I am using the Kalroth fork of cgminer 3.7.2 as it usually provides more khs than the standard cgminer.

Open up a terminal session or SSH and type these commands:

Sudo apt-get update

Sudo apt-get upgrade

git clone https://github.com/Kalroth/cgminer-3.7.2-kalroth
(Place the ADL SDK files in cgminer-3.7.2-kalroth/ADL_SDK folder. These files are: adl_structures.h, adl_sdk.h, and adl_defines.h)
cd ~/cgminer-3.7.2-kalroth
CFLAGS=”-O2 -Wall -march=native” ./autogen.sh –enable-scrypt –enable-opencl –with-header-path=/opt/intel/opencl-1.2-3.2.1.16712/include
make
That is is. Now just change your script and start mining.
cgminer