Ubuntu 20.04

Config:

bind ip: user: password: install to dir: binary url from https://www.getmonero.org/downloads/#cli unzip dir:

CMD:

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

/nodes/XMR/monero.conf

rpc-login=YOUR_USER_NAME:YOUR_PASSWORD
rpc-bind-ip=127.0.0.1
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=127.0.0.1 --rpc-bind-port 18082 --wallet-dir /nodes/XMR/wallets
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:

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.1.tar.bz2
tar -xf /tmp/monero.tar.gz -C /tmp/
cp /tmp/monero-x86_64-linux-gnu-v0.18.3.1/monerod /usr/local/bin/monerod
cp /tmp/monero-x86_64-linux-gnu-v0.18.3.1/monero-wallet-rpc /usr/local/bin/monero-wallet-rpc
rm -r /tmp/monero-x86_64-linux-gnu-v0.18.3.1
rm /tmp/monero.tar.gz
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start monero monero-wallet