Saturday, September 28, 2019

instalar XMR Rig Raspbian

instalar XMR Rig Raspbian 10 Buster

sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
sudo update-alternatives --set gcc "/usr/bin/gcc-5"

git clone https://github.com/xmrig/xmrig.git
cd xmrig && mkdir build && cd build
cmake ..
make
#Crear Archivo Json de configuracion
sudo nano config.json
#despues pegar este codigo
{
    "algo": "cryptonight",  // cryptonight (default) or cryptonight-lite
    "av": 0,                // algorithm variation, 0 auto select
    "background": true,    // true to run the miner in the background
    "colors": true,         // false to disable colored output
    "cpu-affinity": null,   // set process affinity to CPU core(s), mask "0x3" for cores 0 and 1
    "cpu-priority": null,   // set process priority (0 idle, 2 normal to 5 highest)
    "donate-level": 1,      // donate level, mininum 1%
    "log-file": null,       // log all output to a file, example: "c:/some/path/xmrig.log"
    "max-cpu-usage": 100,    // maximum CPU usage for automatic mode, usually limiting factor is CPU cache not this option.
    "print-time": 20,       // print hashrate report every N seconds
    "retries": 5,           // number of times to retry before switch to backup server
    "retry-pause": 5,       // time to pause between retries
    "safe": false,          // true to safe adjust threads and av settings for current CPU
    "threads": 3,        // number of miner threads
    "pools": [
        {
            "url": "stratum+tcp://xmr.pool.minergate.com:45700",// "url": "",   // URL of mining server
            "user": "TuCuenta",// username for mining server
            "pass": "TuPasswd",// password for mining server
            "keepalive": true,// send keepalived for prevent timeout (need pool support)
            "nicehash": false // enable nicehash/xmrig-proxy support
        }
    ],
    "api": {
        "port": 0,                             // port for the miner API https://github.com/xmrig/xmrig/wiki/API
        "access-token": null,                  // access token for API
        "worker-id": null                      // custom worker-id for API
    }
}
#agregar al inicio la ejecucion del programa sudo nano /etc/rc.local # y aca pegar el codigo /home/pi/xmrig/build/./xmrig -t 3

No comments:

Post a Comment