For Rpi
1. sudo aptitude update
2. sudo aptitude upgrade
3. sudo aptitude install libudev-dev libusb-1.0-0-dev libfox-1.6-dev
4. sudo aptitude install autotools-dev autoconf automake
5. sudo aptitude install libtool libncurses-dev yasm
6. sudo aptitude install curl libcurl4-openssl-dev libjansson-dev screen
7. sudo aptitude install pkg-config uthash-dev make git-core
For Ubuntu
1. sudo apt-get update
2. sudo apt-get upgrade
3. sudo apt-get install libudev-dev libusb-1.0-0-dev libfox-1.6-dev
4. sudo apt-get install autotools-dev autoconf automake
5. sudo apt-get install libtool libncurses-dev yasm
6. sudo apt-get install curl libcurl4-openssl-dev libjansson-dev screen
7. sudo apt-get install pkg-config uthash-dev make git-core
Download cgminer 4.2.3
1. git clone https://github.com/ckolivas/cgminer.git
2. mv cgminer cgminer-4.2.3
3. cd cgminer-4.2.3
4. git checkout e574114682fe1edc344b7e291eb9d9497d26ef92
5. wget https://www.dropbox.com/s/ugg6nczel6hqmr6/e574114682fe1edc344b7e291eb9d9497d26ef92.patch
6. patch -p1 < e574114682fe1edc344b7e291eb9d9497d26ef92.patch
7. ./autogen.sh --enable-hexminera --enable-hexminerc --enable-hexminer3 --enable-hexminerb --enable-hexmineru --enable-hexminer8
8. make
{
"pools" : [
{
"url" : "stratum+tcp://stratum-lb-usa48.btcguild.com:3333",
"user" : "user",
"pass" : "123"
}
]
,
"api-listen" : true,
"api-allow" : "R:127.0.0.1",
"api-mcast-port" : "4028",
"api-port" : "4028",
"expiry" : "120",
"hotplug" : "5",
"log" : "5",
"no-pool-disable" : true,
"queue" : "1",
"scan-time" : "60",
"shares" : "0",
"hexminera-voltage" : "1460",
"hexminera-options" : "16:480",
"hexminerc-voltage" : "1100",
"hexminerc-options" : "16:1500",
"hexminer3-voltage" : "750",
"hexminer3-options" : "16:7000",
"hexminer3-chip-mask" : "255",
"hexminerb-voltage" : "900",
"hexminerb-options" : "16:540",
"hexminer8-set-diff-to-one" : "0",
"hexminer8-chip-mask" : "255",
"hexminer8-voltage" : "1005",
"hexminer8-options" : "8:260",
"hexmineru-frequency" : "54",
"set_default_to_8" : true,
"kernel-path" : "/usr/local/bin"
}