##############################################
# #
# There is any way to change XMR CPU miner with VRM CPU miner? #
# #
##############################################
Adding/replacing Vericoin coin (and VeRiumMiner) for
CPU mining ONLYMore explanations about ASIC and GPU resistant Vericoin coin here :
Steemit :
https://steemit.com/cryptocurrency/@jonipilo/verium-and-vericoin-the-most-profitabale-altcoin-to-mineBTCTALK thread :
https://bitcointalk.org/index.php?topic=1540023.0I'm skeptical because
VRC coin is scrypt algorithm so i don't understand why it's not mineable with ASIC L3+ miner (but it seems to use
scrypt² not really scrypt). This miner was asked in the tthread (by bumbu100), so i propose some code to mine it on nvOC.
I think papampi and leenoox or damnmad can propose more
complex conditionnal loop for testing if you choose
XMR or VRC for CPU minning but i'm not sure if it's really a good choice or idea. So i let them to decide if we have to implement a conditionnel loop for this.
Note : What I propose to modify here induces that you will not be able to mine monero with the CPU, but you can always do it with the GPU by the
other program xmr-stak-Gpu. You must be aware of this implication
before you start modifying the 3main script.
1/ Download and unzip dedicated cpuminer fork :
https://github.com/fireworm71/veriumMiner/releases/download/v1.4/cpuminer_1.4_linux_x64_O2_GCC7.zipor
compile it from source :
https://github.com/fireworm71/veriumMiner(remmember ./autogen.sh; ./configure.sh; ./build.sh to compile the miner for your own system)
2/ Place it in
/home/m1/VeRiumMiner (so, you have to move it and rename his directory in /home/m1 to have the same path like in the code below)
3/ Find
plusCPU section in
3main script bash file (line 290 for me in nvOC 19-2.0):
if [ $plusCPU == "YES" ] && [ $AUTO_START_MINER == "YES" ]
then
HCD='/home/m1/cpuOPT/cpuminer'
XMRADDR="$XMR_ADDRESS.$XMR_WORKER"
echo ""
echo ""
echo "LAUNCHING: plusCPU"
if [[ `ps -ef |grep cpuminer |grep -v grep |wc -l` -eq 0 ]]
then
if [ $LOCALorREMOTE == "LOCAL" ]
then
guake -n $HCD -r plusCPU -e "$HCD -a cryptonight -o stratum+tcp://$XMR_POOL:$XMR_PORT -u $XMRADDR -p x -t $threadCOUNT"
else
screen -dmS plusCPU $HCD -a cryptonight -o stratum+tcp://$XMR_POOL:$XMR_PORT -u $XMRADDR -p x -t $threadCOUNT
fi
echo ""
echo "plusCPU process in guake terminal Tab (f12)"
echo ""
running=""
fi
4/ replace code above with :
if [ $plusCPU == "YES" ] && [ $AUTO_START_MINER == "YES" ]
then
HCD='/home/m1/VeRiumMiner/cpuminer'
VRCADDR="$VRC_ADDRESS.$VRC_WORKER"
echo ""
echo ""
echo "LAUNCHING: plusCPU"
if [[ `ps -ef |grep cpuminer |grep -v grep |wc -l` -eq 0 ]]
then
if [ $LOCALorREMOTE == "LOCAL" ]
then
guake -n $HCD -r plusCPU -e "$HCD -o stratum+tcp://$VRC_POOL:$VRC_PORT -u $VRCADDR -p $VRC_PWD -t $threadCOUNT"
else
screen -dmS plusCPU $HCD -a cryptonight -o stratum+tcp://$VRC_POOL:$VRC_PORT -u $VRCADDR -p $VRC_PWD -t $threadCOUNT
fi
echo ""
echo "plusCPU process in guake terminal Tab (f12)"
echo ""
running=""
fi
5/ Add this in
1bash at the end of indivuduals coins :
# VERICOIN (VRC)
# ## No Need to add add stratum+tcp:// to server address
VRC_WORKER="$WORKERNAME" # WorkerName : remember that you have to create it in your account pool page !
VRC_ADDRESS="YourWebloginPool" # Local Wallet Address
VRC_POOL="vrm.n3rd3d.com" # 1% pool fee
VRC_PORT="3332" # It depnds on your CPU Core (see the pool page to use the best port for you)
VRC_PWD="x"
VeRiumMiner use all thread avalilable on your CPU by default but you can specify how much threads at the begenning of 1bash file with this variable between plusCPU and CONTROL_GPU_LED :
threadCOUNT="1" # Number of CPU threads to use for plusCPU mining. Please check how many threads your CPU has.
Not tested on my rig but i test minning with typing manually the commands and it works on nvOC. I compile myself but i think pre-compiled file is ok.
It should be verified that the cpuminer that is already installed in nvOC does not allow to directly undermine this crypto currency. I did not do it either.
Happy minning Vericoin !