Created
December 18, 2017 05:15
-
-
Save brianlechthaler/3781b7d0218e9cb3f54b14c1473ccfad to your computer and use it in GitHub Desktop.
NVIDIA CUDA/OpenCL ethminer Setup Script
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
####PLEASE CHECK LINES 30-33 BEFORE EXECUTING SCRIPT! | |
####YOU HAVE BEEN WARNED. | |
#!/bin/bash | |
####CUDA Installation | |
sudo apt-get install wget git openssl curl | |
git clone https://gist.github.com/aabccbe60948d9fb29f5dacf81c5fd84.git | |
chmod +x aabccbe60948d9fb29f5dacf81c5fd84/install_cuda.sh | |
./aabccbe60948d9fb29f5dacf81c5fd84/install_cuda.sh | |
####Old install script for CUDA, use if git is not available or gist is not working | |
#cd /tmp | |
#wget https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda-repo-ubuntu1604-9-1-local_9.1.85-1_amd64 | |
#sudo dpkg -i cuda-repo-ubuntu1604-9-1-local_9.1.85-1_amd64 | |
#sudo apt-key add /var/cuda-repo-9-1-local/7fa2af80.pub | |
#sudo apt-get update | |
#sudo apt-get install cuda -y | |
echo "CUDA INSTALL FINISHED" | |
####ethminer Setup | |
cd $HOME | |
mkdir mining | |
cd mining | |
wget https://github.com/ethereum-mining/ethminer/releases/download/v0.12.0/ethminer-0.12.0-Linux.tar.gz | |
tar -xvf ethminer-0.12.0-Linux.tar.gz | |
touch mine_gpu.sh | |
echo "#!/bin/bash" > mine_gpu.sh | |
#echo "ethminer --farm-recheck 200 -G -S us2.ethermine.org:4444 -FS us1.ethermine.org:4444 -O <PASTE YOUR ETH ADDRESS HERE, UNCOMMENT THIS LINE AND COMMENT BELOW>.$RANDOM" >> mine_gpu.sh | |
####By default, this line will make the script mine to my own ETH address. | |
####If you'd like to do me a huge favor and support me by leaving this line uncommented, it would be much appreciated. Thanks! | |
echo "ethminer --farm-recheck 200 -G -S us2.ethermine.org:4444 -FS us1.ethermine.org:4444 -O 0x54F0904d9146D108FE2c31AEb82965C0F480d508.$RANDOM" >> mine_gpu.sh | |
chmod +x mine_gpu.sh | |
echo "PATH=$PATH:$HOME/mining/bin" >> $HOME/.bashrc | |
echo "ETHMINER SETUP FINISHED" | |
echo "-----------------" | |
echo "INSTALL COMPLETE." | |
echo "HIT ANY KEY" | |
echo "TO RESTART." | |
echo "-----------------" | |
read -n 1 | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment