Get your node running

I received my hardware to set-up a node (got the exact pieces listed above in this thread). Is there any doc ready to help newbies to set things up? Thanks!

2 Likes

WIP: https://notes.status.im/WJqu-tZoRtqVRO61Ic4NxQ#

The installation steps should be accurate still tweaking on configuration and terminology. Please do share any issue your run into along the way here!

3 Likes

This is great! I received my hardware yesterday and I wasn’t sure either on how to set up this device!
I’ll configure it this weekend and share the experience!

20200109_191000

8 Likes

I started setting up my NanoPC and documenting the process here: https://notes.status.im/A0VSe1h2SD2ED_95Zy6AEA

Using Armbian server as the OS, so far I’ve found the installation to be easy but not the most user friendly process due to requiring doing some manual configuration to have the drive formatted, creating a partition and mounting it, as well as configuring swap, networking among other things… Probably using the desktop version would make things easier but it does not seem right to install a desktop environment for such device. Is Armbian going to be the recommended OS for the NanoPCs?

I’ve also found this: https://github.com/diglos/userpatches which looks like it generates an image with ethereum software but not sure if we can use this. (I will continue to setup mine manually).

2 Likes

I need to redo mine as I need a tracing node for some work I’m doing… i’ll try out these other images to see if they’re useful in that process.

1 Like

hmm … this is probably a pretty basic question, but how do you connect the SSD drive to the board (I got the parts listed above) ?

Staying tuned for the answer as I received my kit last week. @petty any guidance?

In the bottom of the nanopc there is a slot for the drive.
It needs a M3 screw too (I had to find one lying around my office)

m2

1 Like

Added more steps in my log on how I installed Status in the NanoPC by using the guide shared by @hester, following the systemd installation method.

https://notes.status.im/A0VSe1h2SD2ED_95Zy6AEA?view#Installing-Status

Some notes:

  • I had to install the arm64 version of Go (makes sense considering the type of device used). I initially attempted to install the amd64 version of Go because that’s what I use on my laptop, and that did not work
  • The installation of status-go failed initially because the envsubst command was not available. I had to execute apt install gettext-base in order to get this command. (I think this command should be added to the status-go install guide or at least have the required packages listed)
  • It would be nice if during the installation of status-go the enode address was outputted to a file somewhere instead of having to copy it manually.
  • I had to use a different service name to check if the node was running: status-go-bootnode instead of bootnode.

Now status-go is running successfully in the NanoPC!

next steps, configuring geth and improving the security of the nanopc :slight_smile:

EDIT:
I read here status-go/README.md at develop · status-im/status-go · GitHub that we could execute make enode to obtain the enode address.

1 Like

Quick note of apology: The device recommended in the WIP manual doc comes with a NEMA powerplug (North/Central America). Please check to order a device that comes with a power plug that works in your region.

#waitingonadapter

My NanoPC is not showing anything on the monitor. At first I thought it was something to do with the resolution of my somewhat obscure touch monitor, then the power plug because I was using the powerplug of my NUC which I thought should have the same output (It doesn’t, it’s more powerful :disappointed:).

Now I’m using a run of the mill monitor and and the original US plug with an adapter, but still no luck. Did I break the NanoPC?:fearful:

When I connect it to power and switch it on I hear the faintest regular tick. As though it’s on, but it’s not connecting to the monitor. (Used different HDMI cables).

Any words of advice?

I had a similar issue when I had started playing with the nanopc and in my case it was due to using an older HDMI cable… maybe that’s what is happening with yours?

… How much more powerful was the output of the powerplug you used? if the difference is in amperage, it shouldnt matter, however voltage should be 12V. (I could not find a datasheet online to see if the nanopc has an onboard step-down voltage regulator).

Higher in voltage :confused:, 19V. I’ll try another HDMI cable as well. Cable works with other devices though.

What I can tell is that I ordered the exact pieces listed above, and confirms that straight out of the box when I boot it and it’s connected through HDMI to a monitor, I do get a functional android OS with its display on the screen. I had nothing specific to set-up to get that.

Definitely seems broken in that case… I’ll give it another try over the weekend.

New Nano PC, new opportunity. So far so good, @rramos your manual on how to set up the Nano PC has been incredibly helpful!

Had an issue with navigating the the status-go source code, but it seems fine typing the whole path manually instead of using $HOME.

I’m think I’m stuck at

#Download Bootnode code and navigate to the folder
go get -v github.com/status-im/status-go

The result I get is
Can't load package: package github.com/status-im/status-go: no Go files in root/go/src/github.com/status-im/status-go

Any advice? :confused: When I check dir /root/go/src/github.com I can find /status-im/status-go and in the files go.mod and go.sum


Here are the other steps leading up to the ‘Can’t load package’ message:

[email protected]:~# mkdir ~/go
mkdir:cannot create directory '/root/go': File exists
echo "export GOPATH=\$HOME/go" >> .profile
echo "export PATH=\$PATH:/usr/local/go/bin:\$GOPATH/bin" >> .profile
source ~/.profile
sudo apt install -y jq gettext-base make curl git jq
Reading package lists... Done
make is already the newest version (4.1-9.1ubuntu1).
jq is already the newest version (1.5+dfsg-2).
curl is already the newest version (7.58.0-2ubuntu3.8).
gettext-base is already the newest version (0.18.8.1-6ubuntu0.3).
git is already the newest version (1:2.17.1-1ubuntu0.5).
0 upgraded, 0 newly installed, 0 to remove and 110 not upgraded
go get -v github.com/status-im/status-go
Can't load package: package github.com/status-im/status-go: no Go files in root/go/src/github.com/status-im/status-go
1 Like

I got lost at the last mile of connecting Status to the node. Status is giving a message ‘can’t connect to mailserver’ and I suspect it has to do with the password I have to include in the Enode field. @jakubgs @rramos should I have set this somewhere and can you explain me how I do that? At the moment I only set a password for the OS, but not for the node.

All seems well on the NanoPC. I have an enode and when I check the make status I get active (running).

I added the enode address to Status > Profile > Sync Settings > Mailserver settings. I included the OS password as it’s the only thing I have set, and the field validation requires the enode format to include a password. This is where unfortunately I get the message “Can’t connect to mailserver”.

My phone and Nano PC are on the same WiFi network. And the node seems to be getting a static IP address, at least within the network; It prints the same IP address when I ask for the enode repeatedly.

I actually made a PR to include the mailserver password in the enode address here:


It was merged 5 days ago, not sure what version of status-go you are on but make sure you are on newest develop. And you can get a QR code using:

cd _assets/systemd/mailserver
make enode-qr

Or in _assets/compose/mailserver if you are running via Docker.

2 Likes

That must be it! The version of status-go I have is from about 2 weeks ago. Will try with the latest.

1 Like

Here is the final version of the manual to set up a node. I’m sure it will evolve, especially once we have a more uniform language around node configurations. In the mean time, anyone wanting to set up their own ‘Mailserver’ to send and receive messages can find guidance in the manual and right here on Discuss.

Major kudos :star2: to @luisberns and @rramos for taking the time to document their efforts and @jakubgs for explaining, troubleshooting and optimizing the installation process. :pray:

5 Likes