# Monero Node

#### Config:

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

#### /nodes/xmr/monero.conf

```ini
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

```ini
[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

```ini
[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:

{% hint style="success" %}
**Version and verify:**  You can get last version from official documentation: <https://www.getmonero.org/downloads/#cli>
{% endhint %}

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.boxexchanger.net/dlya-razrabotchikov/ustanovka-node/monero-node.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
