Last active
May 4, 2018 15:53
-
-
Save SpotLabsNET/ed5d8930351eb827f0ae2bdb3351cb8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# large pages | |
sudo sysctl -w vm.nr_hugepages=128 | |
# install powershell | |
sudo curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
sudo curl -o /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/ubuntu/16.04/prod.list | |
sudo apt-get update | |
sudo apt-get install -y powershell | |
# Install some basics | |
sudo apt-get -y install software-properties-common | |
# Install all of the things | |
sudo apt-get -y install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ | |
# Build cpuminer | |
cd ~ && git clone --recursive https://github.com/JayDDee/cpuminer-opt.git | |
cd ~/cpuminer-opt && ./build.sh | |
# Upgrade the system | |
sudo apt-get upgrade -y | |
sudo apt-get dist-upgrade -y | |
# Setup Supervisor | |
sudo apt-get install supervisor -y | |
echo -e "[program:cpuminer]\ncommand=/home/ubuntu/cpuminer-opt/cpuminer -a yescrypt -o stratum+tcp://hub.miningpoolhub.com:17021 -O OllaKolla.WorkPC:x\nautostart=true\nautorestart=true\nstderr_logfile=/var/log/cpuminer.err.log\nstdout_logfile=/var/log/cpuminer.out.log" | sudo tee /etc/supervisor/conf.d/cpuminer.conf | |
# Start supervisor | |
sudo service supervisor restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment