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.0.0
1. git clone https://github.com/ckolivas/cgminer.git
2. mv cgminer cgminer-4.0.0
3. cd cgminer-4.0.0
4. git checkout 2786526d9f1acb7bd903ece3c822c2c9203aa0b7
5. wget https://www.dropbox.com/s/tyerzzpc1xjqegj/2786526d9f1acb7bd903ece3c822c2c9203aa0b7.patch
6. patch -p1 < 2786526d9f1acb7bd903ece3c822c2c9203aa0b7.patch
7. ./autogen.sh --enable-hexminera --enable-hexminerc --enable-hexminerb --enable-hexmineru --enable-hexminer8
8. make
Step 5 is patch uploaded to dropbox by myself, so you can use your own that downloaded from technobit
download page if you want
Make sure there is no error message on each step.
No need to install, you can run cgminer from folder.
1. screen
2. sudo ./cgminer --hexminera-voltage 1460 --hexminera-options 16:480 --hexminerc-voltage 1100 --hexminerc-options 16:1500 --hexminerb-voltage 900 --hexminerb-options 16:540 --hexminer8-set-diff-to-one 0 --hexminer8-chip-mask 255 --hexminer8-voltage 1000 --hexminer8-options 8:260 --set_default_to_8 --hexmineru-frequency 54
Or add the setting to cgminer.conf so you don't have to type setting command each time
For Rpi
sudo nano /root/.cgminer/cgminer.conf
For Ubuntu
sudo nano /home/"user"/.cgminer/cgminer.conf
{
"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",
"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"
}
To compile cgminer-api, go to cgminer folder then
sudo gcc api-example.c -Icompat/jansson-2.5 -Icompat/libusb-1.0/libusb -o cgminer-api
To run cgminer-api, go to cgminer folder or copy cgminer-api to /usr/bin
cgminer-api stats
cgminer-api pools
cgminer-api summary
cgminer-api devs