- uPlexa (UPX)
Based on a clean Ubuntu 16.04 LTS minimal install
cd xmr-node-proxy
git remote set-url origin https://github.com/MoneroOcean/xmr-node-proxy.git && git pull -X theirs --no-edit && npm update
- Create a user 'nodeproxy' and assign a password (or add an SSH key. If you prefer that, you should already know how to do it)
useradd -d /home/nodeproxy -m -s /bin/bash nodeproxy
passwd nodeproxy
- Add your user to
/etc/sudoers
, this must be done so the script can sudo up and do it's job. We suggest passwordless sudo. Suggested line:<USER> ALL=(ALL) NOPASSWD:ALL
. Our sample builds use:nodeproxy ALL=(ALL) NOPASSWD:ALL
echo "nodeproxy ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
- Log in as the NON-ROOT USER you just created and run the deploy script. This is very important! This script will install the proxy to whatever user it's running under!
curl -L https://raw.githubusercontent.com/MoneroOcean/xmr-node-proxy/master/install.sh | bash
- Once it's complete, copy
config_example.json
toconfig.json
and edit as desired. - Run:
source ~/.bashrc
This will activate NVM and get things working for the following pm2 steps. - Once you're happy with the settings, go ahead and start all the proxy daemon, commands follow.
cd ~/xmr-node-proxy/
pm2 start proxy.js --name=proxy --log-date-format="YYYY-MM-DD HH:mm:ss:SSS Z"
pm2 save
You can check the status of your proxy by either issuing
pm2 logs proxy
or using the pm2 monitor
pm2 monit
cd xmr-node-proxy
./update.sh
-
Install and run Docker for Windows with Linux containers mode.
-
Get xmr-node-proxy sources by downloading and unpacking the latest xmr-node-proxy archive to xmr-node-proxy-master directory.
-
Got to xmr-node-proxy-master directory in Windows "Command Prompt" and build xmr-node-proxy Docker image:
docker build . -t xmr-node-proxy
-
Copy config_example.json to config.json and edit config.json file as desired (do not forget to update default XMR wallet).
-
Create xnp Docker contained based on xmr-node-proxy image (make sure to update port numbers if you changed them in config.json):
docker create -p 3333:3333 -p 8080:8080 -p 8443:8443 --name xnp xmr-node-proxy
- Copy your modified config.json to xnp Docker container:
docker cp config.json xnp:/xmr-node-proxy
- Run xnp Docker container (or attach to already running one):
docker start --attach xnp
- Stop xnp Docker container (to start it again with update):
docker stop xnp
- Delete xnp Docker container (if you want to create it again with different ports):
docker rm xnp
- Delete xmr-node-proxy Docker image (if you no longer need proxy):
docker rmi xmr-node-proxy
-
Specify at least one main pool with non zero share and "default: true". Sum of all non zero pool shares should be equal to 100 (percent).
-
There should be one pool with "default: true" (the last one will override previous ones with "default: true"). Default pool means pool that is used for all initial miner connections via proxy.
-
You can use pools with zero share as backup pools. They will be only used if all non zero share pools became down.
-
You should select pool port with difficulty that is close to hashrate of all of your miners multiplied by 10.
-
Proxy ports should have difficulty close to your individual miner hashrate multiplied by 10.
-
Algorithm names ("algo" option in pool config section) can be taken from Algorithm names and variants table
-
Blob type ("blob_type" option in pool config section) can be as follows
-
cryptonote - Monero forks like Sumokoin, Electroneum, Graft, Aeon, Intense
-
cryptonote2 - Masari
-
forknote - Some old Bytecoin forks (do not even know which one)
-
forknote2 - Bytecoin forks like Turtlecoin, IPBC
-
VMs with 512Mb or less RAM will need some swap space in order to compile the C extensions for node. Bignum and the CN libraries can chew through some serious memory during compile. In regards to this here is guide for T2.Micro servers: Setup of xmr-node-proxy on free tier AWS t2.micro instance. There is also more generic proxy instalation guide: Complete guide to install and configure xmr-node-proxy on a Ubuntu 16.04 VPS
If not running on an Ubuntu 16.04 system, please make sure your kernel is at least 3.2 or higher, as older versions will not work for this.
Many smaller VMs come with ulimits set very low. We suggest looking into setting the ulimit higher. In particular, nofile
(Number of files open) needs to be raised for high-usage instances.
In your packages.json
, do a npm install
, and it should pass.