Last active
October 22, 2018 15:55
-
-
Save rnkhouse/470f585932e00a581ab1dfc3874b16ff to your computer and use it in GitHub Desktop.
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
# Server requirement: Ubuntu 16.04 | |
# Step 0: VM: NV24 (GPU: 12) | |
# Step 1: Install cuda installer gist. | |
# IMPORTANT: Run this script from /home/<USER>/ directory: bash -c "$(curl SCRIPT_URL)" | |
set -e | |
purpleColor='\033[0;95m' | |
normalColor='\033[0m' | |
USER=$(whoami) | |
# Variables: | |
re='^[1-9]+$' | |
read -p "Enter number of GPUs: " INPUT_GPU_NO | |
if ! [[ $INPUT_GPU_NO =~ $re ]] ; then | |
echo "Valid number of GPUs are required!" | |
exit 1 | |
fi | |
read -p "Enter your AION address: " AION_ADDRESS | |
if [[ $AION_ADDRESS == "" ]]; then | |
echo "Valid AION is required!" | |
exit 1 | |
fi | |
GPU_NO=`expr $INPUT_GPU_NO - 1` | |
GPU_STRING="" | |
for i in `seq 0 $GPU_NO`; | |
do | |
GPU_STRING=$GPU_STRING" "$i | |
done | |
sudo apt-get update | |
# Smartminer: | |
if [ ! -f /home/$USER/SmartMinerV31 ]; then | |
cd /home/$USER && wget https://github.com/smartbitcoin/SmartMiner/releases/download/v3.1/SmartMinerV31.tar.bz2 | |
cd /home/$USER && tar xvjf SmartMinerV31.tar.bz2 | |
rm /home/$USER/SmartMinerV31.tar.bz2 | |
fi | |
echo -e $purpleColor"smart miner has been installed!"$normalColor | |
./SmartMiner.v3.1 -l pool.centrys.io:3333 -cd $GPU_STRING -u $AION_ADDRESS | |
# curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - | |
# sudo apt-get install -y nodejs | |
# sudo npm install pm2 -g | |
# pm2 start ./SmartMiner.v3.1 -- -l aion.rnkhouse.com:3333 -cd $GPU_STRING -u $AION_ADDRESS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment