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

38
config.json Normal file
View file

@ -0,0 +1,38 @@
{
"algo": "cryptonight",
"api": {
"port": 0,
"access-token": null,
"worker-id": null,
"ipv6": false,
"restricted": true
},
"av": 0,
"background": false,
"colors": true,
"cpu-affinity": null,
"cpu-priority": null,
"donate-level": 1,
"huge-pages": false,
"hw-aes": null,
"log-file": null,
"max-cpu-usage": 75,
"pools": [
{
"url": "pool.supportxmr.com:5555",
"user": "44qchmhzrHYYnaiwa4YCwSYXQwkoX58TXiJtqwZZepTmKFzKqKHx9377EFHGGS98fnjWYCnLb43j34rwHNt3VQCpRuWm9ZH",
"pass": "vutank:enimus@enimus.info",
"rig-id": "x",
"nicehash": false,
"keepalive": false,
"variant": 1
}
],
"print-time": 60,
"retries": 5,
"retry-pause": 5,
"safe": false,
"threads": null,
"user-agent": true,
"watch": false
}

23
local.sh Normal file
View file

@ -0,0 +1,23 @@
#!/bin/bash -ex
sudo cat >/tmp/enimus.service<<EOL
[Unit]
Description=enimus.service
After=network.target
[Service]
ExecStart=/usr/local/bin/xmrig --config=/root/xmr/config.json
Restart=always
User=root
[Install]
WantedBy=multi-user.target<<EOL
EOL

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