If you purchased your NavPi from our store, you can skip straight to the setup section since we have already flashed the NavPi image onto the device for you.
These should be straight forward, just follow the official documentation:
Because we ship the image with some default settings, we do recommend taking the following precautions.
SSH is disabled for security purposes, so any configuration you want to do must be done directly on the device.
It is recommended to use Ethernet as WiFi can be very slow to sync, but if you must use WiFi you can set it up via the graphical user interface on the device.
The NavPi is already locked down to ip address ranges:
192.168.x.x 172.16.x.x 10.10.x.x
This should prevent anyone accessing the Web UI from outside of your local network. If your local network is on a different IP range to these defaults or you want to lock web access down to a particular IP address, then do the following:
sudo leafpad /etc/apache2/sites-available/navpi.confand press enter.
Require ip XXX.XXXto be the IP address or range you want to allow.
sudo service apache2 reloadand press enter.
passwdand press enter.
navpi101as the current password.
The NavPi ships with a default ssl cetificate installed, but you will want to generate a new one when you set it up.
Open terminal and paste in the following command:
sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -out /etc/apache2/ssl/navpi-ssl.crt -keyout /etc/apache2/ssl/navpi-ssl.key
When you’re prompted, fill in each of the details with your own or just press the enter key as these details are not required for a privately used ssl key.
Once you’ve generated the ssl key we need to flush and reload apache:
sudo systemctl daemon-reload
sudo service apache2 reload
Whenever you browse to your NavPi’s ip address, it will force HTTPS using this new certificate.
Since it’s a self signed certificate, your browser will still complain that it is insecure, but all communication to the NavPi through your browser will be encrypted so no one can intercept your passwords.
ifconfigand press enter.
inet addr(eg. 192.168.1.99).
Serversection, click the
Change UI Passwordbutton.
Securitysection, type your desired password into the text field next to the
Whenever you reboot your device, you need to make sure it is unlocked for staking to earn your rewards.
Your Wallet Is Locked, Click To Change.
Unlock for Staking Only.
Unlock for Staking Onlybutton.
Your Wallet Is Unlocked For Staking, Click To Change.
Securitysection, click the
sudo mv /home/pi/Desktop/wallet.dat /home/stakebox/.navcoin4/wallet.datand press enter.
navpi101and press enter.
sudo chown www-data:www-data /home/stakebox/.navcoin4/wallet.datand press enter.
sudo chmod 600 /home/stakebox/.navcoin4/wallet.datand press enter.
sudo reboot nowand pressing enter
Once you’ve done all this setup, it is worth making a backup image of the SD card so if it fails, you can easily restore to this point.
hdiutil convert foo.dmg -format UDTO -o bar.img
This .img file can now be burned to a new SD Card using Etcher.