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

grub menu timeout cgminer

Setting up a mining machine with Ubuntu 12.04 LTS and sometimes during a reboot the machine will get stuck at the grub menu and you physically have to press a button on the keyboard to reboot. This is major issues if you are using a headless miner and do not have access to the machine. We want it to reboot and start mining with no downtime.

To do this, open up terminal and type: sudo nano /etc/default/grub
In this file, Add a line with this assignment: GRUB_RECORDFAIL_TIMEOUT=N
Set N to the desired timeout in case of a previously failed boot.

 

Next type sudo update-grub