-
Notifications
You must be signed in to change notification settings - Fork 1
/
stak-ubuntu-cn.sh
23 lines (23 loc) · 928 Bytes
/
stak-ubuntu-cn.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/bash
# Install Depends
sudo apt-get -y groupinstall "Development Tools"
sudo apt-get install -y cmake3 devtoolset-4-gcc* hwloc-devel libmicrohttpd-devel openssl-devel make vixie-cron crontabs
# Enables devtoolset-4
echo 'source /opt/rh/devtoolset-4/enable' >> ~/.bashrc
# Reloads bashrc without reboot
source ~/.bashrc
# Clone & Intsall XMR Stak
git clone https://github.com/aeugenegray/xmr-stak.git && mkdir xmr-stak/build
cd xmr-stak/build && cmake3 .. -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF
make install
cd bin
# Move Expect to Current Folder
mv ~/stak-cpu-autoscript/expect-2.sh ~/stak-cpu-autoscript/xmr-stak/build/bin
# Run Expect
expect ./expect-2.sh
# TMux Session
tmux
# Trap sigterm
trap "" 15
# Run Script ** CHANGE POOL & ADDRESS HERE **
./xmr-stak --currency cryptonight -o btcn.mineallcrypto.com:5056 -u MzoxNcRVSa7fFruv1HyGkS8FUs11V7nDwShpvd5B3nfTJ5WNzvV9WeLcgwmmRzCnRE3R3rs8AuNUgEpYBMsjQCwUDN5akaN -p x