Skip to content

Instantly share code, notes, and snippets.

@b3rew
Last active October 18, 2017 14:04
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/eff715e446285c1d1c42bdfc89f88ba5 to your computer and use it in GitHub Desktop.
Save b3rew/eff715e446285c1d1c42bdfc89f88ba5 to your computer and use it in GitHub Desktop.
clone monero minner
#!/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