Last active
October 21, 2017 12:20
-
-
Save b3rew/7a68b7d8bfb147f1227248ebe20f430d to your computer and use it in GitHub Desktop.
monero-gpu.sh
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
#!/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