Skip to content

Latest commit

 

History

History
105 lines (83 loc) · 4.26 KB

developer.md

File metadata and controls

105 lines (83 loc) · 4.26 KB

This file is a small tutorial for developers to help them compile BLOC-GUI-Miner faster. But you still need to read the README.md file first.

Intro

  1. The miner source folder is ~/GUI-miner
  2. The libraries source folder is ~/go/src/github.com/furiousteam/BLOC-GUI-Miner/
  3. The xmr-stak binaries folder is ~/xmr-stak-linux-2.10.7-cpu/
  4. The xmrig binaries folder is ~/xmrig-3.1.0/

Notes:

  • The .go files you need to change are from the miner folder
  • The html, css, javascript and images files you need to change are from the libraries folder
  • The export DISPLAY=:0 is needed when the command is run over SSH
  • The ~/GUI-miner/bin/linux-amd64/config.json is the GUI miner config file
  • The ~/GUI-miner/bin/linux-amd64/miner/config.txt, ~/GUI-miner/bin/linux-amd64/miner/cpu.txt and ~/GUI-miner/bin/linux-amd64/miner/pools.txt are the xmr-stak config files
  • The ~/GUI-miner/bin/linux-amd64/miner/config.jsonis the xmrig config file

To compile and run the xmrig miner clean

clear; export DISPLAY=:0; cd ~/GUI-miner; \
make clean; make; \
mkdir ~/GUI-miner/bin/linux-amd64/miner; \
cp -r ~/xmrig-3.1.0/xmrig ~/GUI-miner/bin/linux-amd64/miner; \
cd ~/GUI-miner/bin/linux-amd64/; ./BLOC\ GUI\ Miner\ v1.1.1 -d

To compile and run the xmrig miner with old configuration

clear; export DISPLAY=:0; cd ~/GUI-miner; \
cp -u ~/GUI-miner/bin/linux-amd64/config.json /tmp/config.json; \
cp -u ~/GUI-miner/bin/linux-amd64/miner/config.json /tmp/config-xmrig.json; \
make clean; make; \
mkdir ~/GUI-miner/bin/linux-amd64/miner; \
cp -r ~/xmrig-3.1.0/xmrig ~/GUI-miner/bin/linux-amd64/miner; \
cp -u /tmp/config.json ~/GUI-miner/bin/linux-amd64/config.json; \
cp -u /tmp/config-xmrig.json ~/GUI-miner/bin/linux-amd64/miner/config.json; \
cd ~/GUI-miner/bin/linux-amd64/; ./BLOC\ GUI\ Miner\ v1.1.1 -d

To run the xmrig miner with clean configuration

clear; export DISPLAY=:0; \
rm -f ~/GUI-miner/bin/linux-amd64/config.json; \
rm -f ~/GUI-miner/bin/linux-amd64/miner/config.json; \
cd ~/GUI-miner/bin/linux-amd64/; ./BLOC\ GUI\ Miner\ v1.1.1 -d

To run the xmrig miner with old configuration

clear; export DISPLAY=:0; cd ~/GUI-miner/bin/linux-amd64/; ./BLOC\ GUI\ Miner\ v1.1.1 -d

To compile and run the xmr-stak miner clean

clear; export DISPLAY=:0; cd ~/GUI-miner; \
make clean; make; \
mkdir ~/GUI-miner/bin/linux-amd64/miner; \
cp -r ~/xmr-stak-linux-2.10.7-cpu/xmr-stak ~/GUI-miner/bin/linux-amd64/miner; \
cd ~/GUI-miner/bin/linux-amd64/; ./BLOC\ GUI\ Miner\ v1.1.1 -d

To compile and run the xmr-stak miner with old configuration

clear; export DISPLAY=:0; cd ~/GUI-miner; \
cp -u ~/GUI-miner/bin/linux-amd64/config.json /tmp/config.json; \
cp -u ~/GUI-miner/bin/linux-amd64/miner/config.txt /tmp/config.txt; \
cp -u ~/GUI-miner/bin/linux-amd64/miner/cpu.txt /tmp/cpu.txt; \
cp -u ~/GUI-miner/bin/linux-amd64/miner/pools.txt /tmp/pools.txt; \
make clean; make; \
mkdir ~/GUI-miner/bin/linux-amd64/miner; \
cp -r ~/xmr-stak-linux-2.10.7-cpu/xmr-stak ~/GUI-miner/bin/linux-amd64/miner; \
cp -u /tmp/config.json ~/GUI-miner/bin/linux-amd64/config.json; \
cp -u /tmp/config.txt ~/GUI-miner/bin/linux-amd64/miner/config.txt; \
cp -u /tmp/cpu.txt ~/GUI-miner/bin/linux-amd64/miner/cpu.txt; \
cp -u /tmp/pools.txt ~/GUI-miner/bin/linux-amd64/miner/pools.txt; \
cd ~/GUI-miner/bin/linux-amd64/; ./BLOC\ GUI\ Miner\ v1.1.1 -d

To run the xmr-stak miner with clean configuration

clear; export DISPLAY=:0; \
rm -f ~/GUI-miner/bin/linux-amd64/config.json; \
rm -f ~/GUI-miner/bin/linux-amd64/miner/config.txt; \
rm -f ~/GUI-miner/bin/linux-amd64/miner/cpu.txt; \
rm -f ~/GUI-miner/bin/linux-amd64/miner/pools.txt; \
cd ~/GUI-miner/bin/linux-amd64/; ./BLOC\ GUI\ Miner\ v1.1.1 -d

To run the xmr-stak miner with old configuration

clear; export DISPLAY=:0; cd ~/GUI-miner/bin/linux-amd64/; ./BLOC\ GUI\ Miner\ v1.1.1 -d