Last active
May 4, 2016 17:45
-
-
Save binary1985/3a2e4d26c27b141fe65c0f7e41ba6469 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
sleep $(( $RANDOM % 120 )) | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update -q -y | |
apt-get -q -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install linux-generic | |
wget http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda-repo-ubuntu1404-7-5-local_7.5-18_amd64.deb | |
dpkg -i cuda-repo-ubuntu1404-7-5-local_7.5-18_amd64.deb | |
apt-get update -q -y | |
apt-get install cuda -q -y | |
apt-get install mono-complete -q -y | |
echo '/usr/local/cuda/lib64 /usr/local/cuda/lib' | tee -a /etc/ld.so.conf.d/cuda.conf > /dev/null | |
wget <insert your hashtopus server here and copy generated exe to the web root>/hashtopus.exe | |
echo "#!/bin/bash -e" > /etc/rc.local | |
echo "echo '<create a key in the web interface and insert here>' | mono hashtopus.exe" >> /etc/rc.local | |
echo "exit 0" >> /etc/rc.local | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment