Skip to content

Instantly share code, notes, and snippets.

@binary1985
Last active May 4, 2016 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binary1985/3a2e4d26c27b141fe65c0f7e41ba6469 to your computer and use it in GitHub Desktop.
Save binary1985/3a2e4d26c27b141fe65c0f7e41ba6469 to your computer and use it in GitHub Desktop.
#!/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