In order to operate on bosminer, stratum extensions need to be enabled (--enable-stratum-extensions).
This works on any system with Docker (Linux/Mac/Windows) and doesn't need anything other than Git and Docker.
- Download and extract this directory
cd stratum-mining-proxydocker build -t stratum-mining-proxy .- Run interactively:
docker run -it --rm -p 3333:3333 stratum-mining-proxy -o us-east.stratum.slushpool.com -p 3333 -sh 0.0.0.0 -sp 3333 - Run interactively:
docker run -it --rm -p 3333:3333 stratum-mining-proxy -o eu.stratum.slushpool.com -p 3333 -sh 0.0.0.0 -sp 3333 - Run as a service:
docker run -d --restart unless-stopped --rm -p 3333:3333 stratum-mining-proxy -o us-east.stratum.slushpool.com -p 3333 -sh 0.0.0.0 -sp 3333
This is advanced option for experienced users, but give you the easiest way for updating the proxy.
- install python2 and python2-virtualenv for your distribution
- Download and extract this directory
- Download stratum dependency
git clone git://github.com/braiins/stratum.git cd stratum-mining-proxyvirtualenv .env --python=/usr/bin/python2.7. .env/bin/activatepython -m pip install -e ../stratumpython mining_proxy.py -o us-east.stratum.slushpool.com -sh 0.0.0.0 -sp 3333 --enable-stratum-extensions
There seem to be problems with building pyinstaller with default compiler GCC on RaspberryPi
- install python2 and python2-virtualenv for your distribution
- Download and extract this directory
git clone git://github.com/braiins/stratum.gitcd stratum-mining-proxyvirtualenv .env --python=/usr/bin/python2.7. .env/bin/activate- Manually build PyInstaller:
sudo apt-get install clanggit clone https://github.com/pyinstaller/pyinstaller.gitcd pyinstaller/bootloader/python ./waf all --target-arch=32bit --clangsudo apt-get remove clang # remove the clang, it is not needed anymorecd ..python setup.py installcd ..
python -m pip install -e ../stratummkdir -p .env/local/include/python2.7ln -s /usr/include/python2.7/pyconfig.h .env/local/include/python2.7/pyconfig.hpyinstaller -F mining_proxy.py --name stratum-mining-proxy- Resulting binary is in
dist/stratum-mining-proxy
git clone https://aur.archlinux.org/stratum-mining-proxy.gitcd stratum-mining-proxymakepkg -sri- run
stratum-mining-proxy -o us-east.stratum.slushpool.com -p 3333 -sh 0.0.0.0 -sp 3333 --enable-stratum-extensions