Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pi howto #29

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Pi howto #29

wants to merge 12 commits into from

Conversation

l00nix
Copy link

@l00nix l00nix commented May 31, 2021

Description

Created a how to to use a Raspberry Pi 4 or CM4 to stake Navcoin

Issues Resolved

n/a

Preview Links

not sure how this works, to get preview links

Checklist

  • Have you assigned/claimed the issues you've resolved in this pull request?
  • Have the issues been moved to the QA column of the NavCoin Websites project?
  • Have you checked there are no merge conflicts?
  • Have you tested the changes work across both mobile and desktop?


**Notes**:

- I had to use Raspbian 32bit as I believe the Navcoin binaries only come in 32-bit for arm (if I learn otherwise I will update)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can use navcoin-6.1.0-aarch64-linux-gnu.tar.gz for 64-bit arm systems. I actually flash my pi-4 to ubuntu and run navcoin-6.1.0-aarch64-linux-gnu.tar.gz.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

acknowledged - will remove comment

- I am performing all commands from the /home/pi directory
- At time of writing the latest version of navcoin was 6.1.0

2. Get the latest Navcoin files from [here](https://build.nav.community/binaries/master/navcoin-6.1.0-arm-linux-gnueabihf.tar.gz)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it may be more ideal to point to the folder directly instead of the actual file so that you don't have to update this link for future releases.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed - will update

@@ -0,0 +1,182 @@
---
title: How to move from NavPi to Raspberry Pi 4 and CM4 for staking
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know you started working on this with the purpose of moving from navpi, but it may be beneficial to have a generic tittle for headless setup guide and single out navpi steps in the content.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed - makes total sense - will change in next revision

pi@raspberrypi:~ $ wget https://build.nav.community/binaries/master/navcoin-6.1.0-arm-linux-gnueabihf.tar.gz
```

3. Once downloaded untar the tarball file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the numbering is not registered in the preview, not sure how to fix this but it's something related to formatting.

pi@raspberrypi:~/.navcoin4 $ tar -zxvf bootstrap.tar.gz
```

5. Copy your `wallet.dat` file from the NavPi data directry `~/.navcoin4/` to the new Paspberry Pi data directry `~/.navcoin4/`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

up to this point, all previous steps are the same for anyone who tries to set up a headless node. So it may be a good idea to have a note saying these steps are only required if moving from navpi to make the whole article more universal

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed - will update


This how to is using the CM4 [CM4104032](https://www.buyapi.ca/product/raspberry-pi-compute-module-4-wireless-4gb-32gb-cm4104032/).

1. Assumption is you have a running CM4 (how to can be found [here](https://www.youtube.com/watch?reload=9&v=jp_mF1RknU4)) and ssh access to it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4gb model is required and 8gb even better.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will add


```
pi@raspberrypi:~/.navcoin4 $ cd ~
pi@raspberrypi:~ $ navcoin-6.1.0/bin/navcoind -t -daemon -datadir=/home/pi/.nacvoin4 -staking=1 -externalip={IP address} -upnp=0 -rpcbind=127.0.0.1 -rpcallowip=127.0.0.1 -rpcuser=test -rpcpassword=test -upgradewallet &
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to check with @aguycalled to verify all the commands

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok - can update once we hear back

@l00nix l00nix requested a review from chasingkirkjufell June 3, 2021 11:43
@l00nix
Copy link
Author

l00nix commented Jun 3, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants