Last active
October 18, 2017 14:04
-
-
Save b3rew/eff715e446285c1d1c42bdfc89f88ba5 to your computer and use it in GitHub Desktop.
clone monero minner
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-cpu.git" | |
name="monero" | |
cwd=eval echo "~$USER" | |
echo "installing.." | |
sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev -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 for your service. : ) " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment