Post
Topic
Board Mining (Altcoins)
Re: [OS] nvOC easy-to-use Linux Nvidia Mining
by
fullzero
on 26/06/2017, 15:55:41 UTC
I have more than 10+ rigs
I made some changes in to file oneBash


#!/bin/bash

HOSTNAME=$(cat /etc/hostname)
worker=$(echo ${HOSTNAME:0:2})


# nvOC v0016 by fullzero
#
#==================
#
# set YOUR ADDRESSES, WORKERS, POOL and PORT:
ZEC_WORKER=$worker
#
#==================
#
ZCL_WORKER=$worker
#
#==================
#
ZEN_WORKER=$worker"
#
#==================
#
VTC_WORKER=$worker"
#
#==================
#
NICE_WORKER=$worker
#
#==================
#
LBC_WORKER=$worker"
#

etc

These changes allow to bind hostname to workers.
In order it to work, you need to change 2 files 'hostname' and 'hosts'


/etc/hosts
#
127.0.0.1       localhost
127.0.1.1       m5-desktop


/etc/hostname
#
m5-desktop



The resulte of this changes, on LBC expamle:

/home/m1/SPccminer/ccminer -a lbry -o stratum+tcp://lbry.suprnova.cc:6256 -u fullzero22.m5 -p x


PS: Fullzero, thanks for your work, it is an amazing project!!!

EDIT: Also, is there a way for remote controlling all rigs on nvOC? Like if I update oneBash to update it on all rigs at the same time?

Quite a newbie with Linux Smiley

go to web site https://pastebin.com/ and create paste

edit "2unix" file on every mining rig    (nano  /home/m1/2unix)
paste this line: (see raw link on your pastebin service)

#!/bin/bash

cd /tmp
wget https://pastebin.com/raw/JkzeVvZS (change_this)
cp JkzeVvZS(change_this) /home/m1/oneBash

sudo dos2unix /home/m1/oneBash
sleep 2
sudo ldconfig /usr/local/cuda/lib64
bash '/home/m1/oneBash'

and reboot your rig

ps: sorry, my english is bad (

So that will help me update oneBash on all rigs at once?
Yep

Combining wget and pastebin is a good idea _Parallax_  Grin

Maxximus007 had suggested something similar in regards to changing the hostname, along with some other really good ideas I will most likely implement for v0017.

For this reason; I was already implementing something similar, and it was simple to modify it to use a slightly modified version of your method.

I will upload a new 'Parallax Mode' oneBash and make a guide shortly.  Wink