Monero Node / DONE

xmr, monerod, monero-wallet

Config:

sudo ufw allow 18082
mkdir /nodes
mkdir /nodes/xmr
sudo apt update
sudo apt install supervisor

/nodes/xmr/monero.conf

confirm-external-bind=1
rpc-login=YOUR_USER_NAME:YOUR_PASSWORD
rpc-bind-ip=0.0.0.0
rpc-access-control-origins=*
stagenet=0
restricted-rpc=1
db-sync-mode=safe
out-peers=20
in-peers=20
prune-blockchain=1

/etc/supervisor/conf.d/monero-wallet.conf

[program:monero-wallet]
command=nice /usr/local/bin/monero-wallet-rpc --rpc-login YOUR_USER_NAME:YOUR_PASSWORD --daemon-host 127.0.0.1 --daemon-port 18081 --trusted-daemon --daemon-login YOUR_USER_NAME:YOUR_PASSWORD --rpc-bind-ip=0.0.0.0 --rpc-bind-port 18082 --wallet-dir /nodes/xmr/wallets --confirm-external-bind
autostart=true
autorestart=true
stderr_logfile=/var/log/supervisor/monero-wallet.err.log
stdout_logfile=/var/log/supervisor/monero-wallet.out.log
stderr_logfile_backups=2
stdout_logfile_backups=2
environment=HOME="/root"

/etc/supervisor/conf.d/monero.conf

[program:monero]
command=nice /usr/local/bin/monerod --no-zmq --data-dir /nodes/xmr --config-file /nodes/xmr/monero.conf
autostart=true
autorestart=true
stderr_logfile=/var/log/supervisor/monero.err.log
stdout_logfile=/var/log/supervisor/monero.out.log
stderr_logfile_backups=2
stdout_logfile_backups=2
environment=HOME="/root"

CMD:

Version and verify: You can get last version from official documentation: https://www.getmonero.org/downloads/#cli

sudo supervisorctl start monero monero-wallet
sudo supervisorctl stop monero monero-wallet
curl -#o /tmp/monero.tar.gz https://downloads.getmonero.org/cli/monero-linux-x64-v0.18.3.3.tar.bz2
tar -xf /tmp/monero.tar.gz -C /tmp/
cp /tmp/monero-x86_64-linux-gnu-v0.18.3.3/monerod /usr/local/bin/monerod
cp /tmp/monero-x86_64-linux-gnu-v0.18.3.3/monero-wallet-rpc /usr/local/bin/monero-wallet-rpc
rm -r /tmp/monero-x86_64-linux-gnu-v0.18.3.3
rm /tmp/monero.tar.gz
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start monero monero-wallet

Last updated