Skip to content

Instantly share code, notes, and snippets.

@b3rew
Last active October 21, 2017 12:20
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 b3rew/7a68b7d8bfb147f1227248ebe20f430d to your computer and use it in GitHub Desktop.
Save b3rew/7a68b7d8bfb147f1227248ebe20f430d to your computer and use it in GitHub Desktop.
monero-gpu.sh
#!/usr/bin/env bash
project="https://github.com/fireice-uk/xmr-stak-nvidia"
name="monero"
cwd=eval echo "~$USER"
echo "installing.."
sudo apt-get install nvidia-cuda-dev nvidia-cuda-toolkit libmicrohttpd-dev libssl-dev cmake cmake-curses-gui build-essential -y
echo "DONE"
echo "cloning ..."
# if the directory does not exist, clone the repo
if [ ! -d "name" ]; then
cd $cwd
git clone $project $name
cd $name
fi
echo "DONE"
echo "Building ..."
cmake -DCMAKE_LINK_STATIC=ON .
make install
echo "DONE"
# echo "setting scheduler"
# (crontab -l 2>/dev/null; echo "39 4 * * * cd $cwd/$name/bin/ && $cwd/$name/bin/xmr-stak-cpu") | crontab -
# echo "DONE"
echo "Thank u much for your service. : ) "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment