1. Home
  2. NavPi
  3. How to set up the NavPi

How to set up the NavPi

These are default settings of the NavPi.

Unix Username: pi
Unix Password: navpi101
Web Password: nav

SSH is disabled for security purposes, so any initial configuration must be done directly on the device.

Plug in Screen, Keyboard & Mouse.
Power on Raspberry Pi.

Enable WiFi

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.

Boot to the Raspberry Pi Operating System.
Right click on the network icon in the top right task bar.

Add your WiFi configuration.

Lock Down NavPi Web Access to local IP Addresses

The NavPi is already locked down to following IP address ranges by default, so changes are not necessary if your network range is covered.

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:

Boot to the Raspberry Pi GUI Operating System.

Open Terminal and use leafpad to open the following file:

sudo leafpad /etc/apache2/sites-available/navpi.conf

Find the <VirtualHost *:443> section.

Add, Remove or Modify the lines Require ip XXX.XXX to show the IP address or range you want to allow.

Save and close the file.

Restart the apache service to activate the changes.

sudo service apache2 reload

Change the Default Unix Password

Boot to the Raspberry Pi GUI Operating System.
Open Terminal.
In terminal change use the passwd command.

passwd

Enter navpi101 as the current password.
Enter your new password.
Confirm your new password.
Write down your new password.

Create a new SSL certificate (optional)

The NavPi ships with a default ssl cetificate installed, but you may 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.

Find the IP Address of your NavPi

Boot to the Raspberry Pi GUI Operating System.
Open Terminal.
In terminal type ifconfig and press enter.

/sbin/ifconfig

Find your “inet addr” (eg. 192.168.1.99).

Using the computer on your network which you’ve granted IP access to, open your web browser (Firefox, Chrome, Internet Explorer, Safari).
In the address bar of your internet browser type in the inet address discovered by ifconfig on the raspberry pi.
Log into the NavPi Web Interface using the default password nav.

Change the Default Web Interface Password

Log into the Web Interface of the NavPi.
Click on the Control menu item

In the Server section, click the Change UI Password button.

Type in your new password.
Confirm your new password.

Write down your new password.

Encrypt Your wallet

If you don’t have a wallet.dat to import then you’ll need to encrypt your wallet.
Log into the Web Interface of the NavPi.
Click on the Control menu item.

In the Security section, type your desired password into the text field next to the Encrypt Wallet button.

Press enter, or click the Encrypt Wallet button.

Write down your new password.

Backup your wallet

Log into the Web Interface of the NavPi.
Click on the Control menu item.

In the Security section, click the Backup Wallet button.

This will download to your computer.

Make multiple backups to protect against data corruption.

Unlock for staking

Whenever you reboot your device, you need to make sure it is unlocked for staking to earn your rewards.

Log into the Web Interface of the NavPi.
On the home page click the button that says Your Wallet Is Locked, Click To Change.

Enter your password into the box next to where it says Unlock for Staking Only.

Press enter, or click the Unlock for Staking Only button.

Go back to the home page and the button should now say Your Wallet Is Unlocked For Staking, Click To Change.

You are all ready to earn staking rewards now.

Restoring your wallet

Please see Restoring Your Wallet to the NavPi for details on how to do this.

Creating a backup image

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.
For info on how to do this, see Creating a NavPi Backup Image.

Updating the NavPi

It’s possible your NavPi does not have the latest version of the wallet or user interface. To update your NavPi see How to Update Your NavPi.

Updated on February 12, 2018

Was this article helpful?

Related Articles