This commit is contained in:
William 2021-03-02 21:42:39 +01:00
parent 8679bf2f2e
commit d8791d41b3
6 changed files with 84 additions and 16 deletions

View File

@ -6,9 +6,8 @@ Dette dokumentet er for å hjelpe meg, men kanskje det kan hjelpe deg også? :)
Her finner du statistikk til gruvearbeiderene. Her finner du statistikk til gruvearbeiderene.
https://xmr.2miners.com/account/8B8zVuY8o9FQwCNNhio5WbXPVQ42QXDEjDNBEUd5DmK2Ez3x38sRicMLf5Npcd4fN28HUvZUn7XPjgeJ7mLnNWnCPLyn4cQ * [2Miners](https://xmr.2miners.com/account/8B8zVuY8o9FQwCNNhio5WbXPVQ42QXDEjDNBEUd5DmK2Ez3x38sRicMLf5Npcd4fN28HUvZUn7XPjgeJ7mLnNWnCPLyn4cQ)
* [F2Pool](https://www.f2pool.com/xmr/8B8zVuY8o9FQwCNNhio5WbXPVQ42QXDEjDNBEUd5DmK2Ez3x38sRicMLf5Npcd4fN28HUvZUn7XPjgeJ7mLnNWnCPLyn4cQ) - Ikke veldig aktiv men noen ganger 'miner' jeg der.
https://www.f2pool.com/xmr/8B8zVuY8o9FQwCNNhio5WbXPVQ42QXDEjDNBEUd5DmK2Ez3x38sRicMLf5Npcd4fN28HUvZUn7XPjgeJ7mLnNWnCPLyn4cQ
# Gruvedrifting # Gruvedrifting
@ -23,16 +22,39 @@ Min konto adresse for innkommende XMR:
8B8zVuY8o9FQwCNNhio5WbXPVQ42QXDEjDNBEUd5DmK2Ez3x38sRicMLf5Npcd4fN28HUvZUn7XPjgeJ7mLnNWnCPLyn4cQ 8B8zVuY8o9FQwCNNhio5WbXPVQ42QXDEjDNBEUd5DmK2Ez3x38sRicMLf5Npcd4fN28HUvZUn7XPjgeJ7mLnNWnCPLyn4cQ
Få bedre ytelse i xmr-stak-rx på Linux:
https://github.com/fireice-uk/xmr-stak/blob/xmr-stak-rx/doc/tuning.md#huge-page-support
# Installasjon av gruvearbeider # Installasjon av gruvearbeider
Debian Buster/Ubuntu 20.04 Debian Buster/Ubuntu 20.04
## Automagisk som systemd tjeneste
Installer curl:
apt install curl
Deretter utfør kommando:
curl -sSL https://git.willy.club/William/monero-miner/raw/branch/master/install.sh | bash
Sjekk statusen:
systemctl status monero-miner.service
## Manuelt uten systemd tjeneste
Installer pakker som trengs: Installer pakker som trengs:
apt install msr-tools numactl apt install msr-tools numactl hwloc openssl libmicrohttpd12 git
Jeg legger til mer ting senere Klon Git repo:
git clone https://git.willy.club/William/monero-miner monero-miner
cd monero-miner
Deretter kjør start-miner.sh skriptet:
bash start-miner.sh
## Sjekk status
Gruvearbeideren kjører en webserver på port 42069. Der kan du finne hashrate og mye annet morro.

31
install.sh Normal file
View File

@ -0,0 +1,31 @@
#!/bin/bash
REPOSITORY="https://git.willy.club/William/monero-miner"
if [[ $EUID -ne 0 ]]; then
echo "This script must run as root"
exit 1
fi
# install dependencies
apt update && apt install msr-tools numactl hwloc openssl libmicrohttpd12 git
# clone repository
cd /opt/
rm -r 'monero-miner'
git clone $REPOSITORY monero-miner
cd monero-miner
# create service file
echo "[Unit]
Description=Monero Miner
After=network.target
[Service]
Type=simple
ExecStart=bash /opt/monero-miner/start-miner.sh
TimeoutStartSec=0
[Install]
WantedBy=default.target" > "/etc/systemd/system/monero-miner.service"
systemctl daemon-reload
systemctl enable monero-miner.service --now

View File

@ -1,5 +1,2 @@
#!/bin/bash #!/bin/sh
sysctl -w vm.nr_hugepages=1300 sysctl -w vm.nr_hugepages=1300
sh -c ' echo 3 >/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages'
# check if the pages are enabled
cat /sys/kernel/mm/hugepages/hugepages-1048576kB/free_hugepages

18
start-miner.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must run as root"
exit 1
fi
# change directory relative to the current file path.
cd $(dirname "$(readlink -f "$0")")
# activate huge pages
source 'scripts/randomx_booster.sh'
# enable huge pages
source 'scripts/huge_pages.sh'
# start xmr-stak-rx
cd 'xmr-stak-rx' && ./xmr-stak-rx

View File

@ -124,7 +124,7 @@
* *
* httpd_port - Port we should listen on. Default, 0, will switch off the server. * httpd_port - Port we should listen on. Default, 0, will switch off the server.
*/ */
"httpd_port" : 8080, "httpd_port" : 42069,
/* /*
* HTTP Authentication * HTTP Authentication

View File

@ -16,7 +16,7 @@
[ [
{"pool_address" : "xmr.2miners.com:2222", {"pool_address" : "xmr.2miners.com:2222",
"wallet_address" : "8B8zVuY8o9FQwCNNhio5WbXPVQ42QXDEjDNBEUd5DmK2Ez3x38sRicMLf5Npcd4fN28HUvZUn7XPjgeJ7mLnNWnCPLyn4cQ", "wallet_address" : "8B8zVuY8o9FQwCNNhio5WbXPVQ42QXDEjDNBEUd5DmK2Ez3x38sRicMLf5Npcd4fN28HUvZUn7XPjgeJ7mLnNWnCPLyn4cQ",
"rig_id" : "", "rig_id" : "WillyCluster",
"pool_password" : "x", "pool_password" : "x",
"use_nicehash" : false, "use_nicehash" : false,
"use_tls" : false, "use_tls" : false,