Setup a Nano Node on Ubuntu 16.04
- Add GPG keys
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- Add Docker repo
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- Update your APT package manager
sudo apt-get update
- Install Docker
sudo apt-get install -y docker-ce
-
Create a directory called nano and go inside it:
mkdir nano && cd nano
- Create a new file called docker-compose.yml with the following contents:
version: '3'
services:
monitor:
image: "nanotools/nanonodemonitor"
restart: "unless-stopped"
ports:
- "80:80"
volumes:
- "~:/opt"
node:
image: "nanocurrency/nano"
restart: "unless-stopped"
ports:
- "7075:7075/udp"
- "7075:7075"
- "::1:7076:7076"
volumes:
- "~:/root"
-
Nice! Now execute
sudo docker-compose up -d
to start everything. - Create a new wallet by executing:
sudo docker exec nano_node_1 /usr/bin/rai_node --wallet_create
You should get a wallet ID which you need in the next step.
- Change the WALLETID and create a a new account by executing:
sudo docker exec nano_node_1 /usr/bin/rai_node --account_create --wallet=<WALLETID>
You get a new Nano address starting with xrb_1234… back.
- Get you wallet seed with:
sudo docker exec nano_node_1 /usr/bin/rai_node --wallet_decrypt_unsafe --wallet=<WALLETID>
-
Inside your home directory you will find a new directory called nanoNodeMonitor, edit the config.php:
cd ~/nanoNodeMonitor
-
You will have to change the node IP to
nano_node_1
and the address to the address from step 5. Edit the other things as well if you want to. - Done! Please have a look at the FAQ.
Fast Sync
If you sync from scratch it can take up to 3 days for the node to sync the ledger completely. You can download the current ledger by hand and replace it.
-
Make sure that you have your seed stored safely! It will be overwritten with this process.
-
SSH to your server, stop the node (
sudo docker stop nano_node_1
) and go to the~/RaiBlocks
directory - Backup your old ledger file with:
mv data.ldb data.ldb.bak mv data.ldb-lock data.ldb-lock.bak
- Download the file with wget:
wget "https://mynano.ninja/api/ledger/download" -O ledger.7z
- Install 7zip
sudo apt-get install p7zip-full
- Unzip it with:
7z x ledger.7z
-
Start your node again with
sudo docker start nano_node_1
- Restore your seed with:
sudo docker exec nano_node_1 /usr/bin/rai_node --wallet_create
Replace the wallet ID you got in the next command:
sudo docker exec nano_node_1 /usr/bin/rai_node --wallet_change_seed --wallet=<WALLETID> --key=<SEED>
And create your account address:
sudo docker exec nano_node_1 /usr/bin/rai_node --account_create --wallet=<WALLETID>
You should see your previous address again.
- Done!
Support
If you find this tool useful show your support by changing your representative or donate to:
xrb_1ninja7rh37ehfp9utkor5ixmxyg8kme8fnzc4zty145ibch8kf5jwpnzr3r
Thanks a lot!