How to Compile BLOC GUI Miner on Linux (Ubuntu)

Compiling on Linux will generate the binaries for Windows, macOS and Linux.

The miner GUI is built using Electron and Go using the Astilectron app framework.

Install dependencies

sudo apt-get update
sudo apt-get install gcc make python libmicrohttpd10 libnss3 -y
  • gcc and make are required for go packages
  • python is required for GUI-miner
  • libmicrohttpd is required for xmrig
  • libnss3 is required for electron

Install Go


  2. or follow the next lines

download and unpack golang binaries

cd ~
sudo tar -C /usr/local -xzf go1.11.2.linux-amd64.tar.gz

add Go to current $PATH, by editing the current user's .bashrc

nano ~/.bashrc 

add the following

# golang
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:~/go/bin

run the .bashrc file (otherwise you need to logout and login again for it to get triggered)

source ~/.bashrc

now you could check the go installation by running

go version

Clone the app

cd ~
git clone

Install required Go packages

go get -u
go get -u
go get -u
go get -u
go get -u
go get -u
go get -u
go get -u
go get -u

Update electron version

edit ~/go/src/ file

nano ~/go/src/

and change VersionElectron = "1.8.1" to VersionElectron = "3.0.8"

then, recompile go-astilectron-bundler

cd ~/go/src/

Compile the miner

cd ~/BLOC-GUI-Miner

If all goes well, the binaries for Windows, macOS and Linux will be available in the bin folder.

Attach the miner

before you start the GUI-miner, make sure you have copied the binaries of xmrig or xmr-stak into the miner subfolder right next to the main GUI-miner executable