Skywire Armbian on Pine A64 LTS

Skywire Armbian on Pine A64 LTS

Check IP in DHCP server and login with PuTTY use default armbian username/password: root/1234

login as: root
root@192.168.1.151's password:
You are required to change your password immediately (root enforced)
 ____        ____  _                 _    __   _  _
/ ___|  ___ |  _ \(_)_ __   ___     / \  / /_ | || |
\___ \ / _ \| |_) | | '_ \ / _ \   / _ \| '_ \| || |_
 ___) | (_) |  __/| | | | |  __/  / ___ \ (_) |__   _|
|____/ \___/|_|   |_|_| |_|\___| /_/   \_\___/   |_|


Welcome to ARMBIAN 5.51 user-built Ubuntu 16.04.4 LTS 4.14.53-sunxi64
System load:   0.23 0.10 0.03   Up time:       1 min
Memory usage:  2 % of 2002MB    IP:            192.168.1.151
Usage of /:    3% of 30G

[ General system configuration (beta): armbian-config ]

New to Armbian? Check the documentation first: https://docs.armbian.com
Changing password for root.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:


Thank you for choosing Armbian! Support: www.armbian.com

Creating a new user account. Press <Ctrl-C> to abort

Please provide a username (eg. your forename): mitjag
Trying to add user mitjag
Adding user `mitjag' ...
Adding new group `mitjag' (1000) ...
Adding new user `mitjag' (1000) with group `mitjag' ...
Creating home directory `/home/mitjag' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for mitjag
Enter the new value, or press ENTER for the default
        Full Name []: Mitja
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n]

Dear Mitja, your account mitjag has been created and is sudo enabled.
Please use this account for your daily work from now on.

root@pine64so:~#

Update OS packages

apt-get update
apt-get upgrade

Download and install GO lang

wget https://dl.google.com/go/go1.10.3.linux-arm64.tar.gz
or
curl https://dl.google.com/go/go1.10.3.linux-arm64.tar.gz -o go1.10.3.linux-arm64.tar.gz

tar -C /usr/local -xzf go1.10.3.linux-arm64.tar.gz

Create profile for GO binaries and add GO bin path

root@pine64so:~# cd /etc/profile.d/
root@pine64so:/etc/profile.d# vi go.sh
root@pine64so:/etc/profile.d# cat go.sh
#!/bin/bash
export PATH=$PATH:/usr/local/go/bin
root@pine64so:/etc/profile.d#

Update hostname

root@pine64so:~# cat /etc/hostname
pine64sonode1
root@pine64so:~#

Reboot (to update hostname) and login as non root user

Test if go path is ok, check version

mitjag@pine64sonode1:~$ go version
go version go1.10.3 linux/arm64
mitjag@pine64sonode1:~$

Check if git installed

mitjag@pine64sonode1:~$ git version
git version 2.7.4
mitjag@pine64sonode1:~$

Create user bash profile for GOPATH and GOBIN env variables

mitjag@pine64sonode1:~$ vi .bash_profile
mitjag@pine64sonode1:~$ cat .bash_profile
export GOPATH=$HOME/go
export GOBIN=$HOME/go/bin
mitjag@pine64sonode1:~$

Relogin to reload profile

Install Skywire following instructions from github

mitjag@pine64sonode1:~$ mkdir -p $GOPATH/src/github.com/skycoin
mitjag@pine64sonode1:~$ cd $GOPATH/src/github.com/skycoin
mitjag@pine64sonode1:~/go/src/github.com/skycoin$ git clone https://github.com/skycoin/skywire.git
Cloning into 'skywire'...
remote: Counting objects: 5008, done.
remote: Total 5008 (delta 0), reused 0 (delta 0), pack-reused 5007
Receiving objects: 100% (5008/5008), 24.79 MiB | 755.00 KiB/s, done.
Resolving deltas: 100% (1568/1568), done.
Checking connectivity... done.
mitjag@pine64sonode1:~/go/src/github.com/skycoin$

mitjag@pine64sonode1:~/go/src/github.com/skycoin$ cd $GOPATH/src/github.com/skycoin/skywire/cmd
mitjag@pine64sonode1:~/go/src/github.com/skycoin/skywire/cmd$ go install ./...

Install tmux to detach from running process or set up linux services as described in Orange Pi Prime

sudo apt install tmux

Test run Skywire manager or node (replace 192.168.1.12 with your manager IP)

mitjag@pine64sonode1:~/go/src/github.com/skycoin/skywire/cmd$ cd $GOPATH/bin
mitjag@pine64sonode1:~/go/bin$ ./manager -web-dir ${GOPATH}/src/github.com/skycoin/skywire/static/skywire-manager
mitjag@pine64sonode1:~/go/src/github.com/skycoin/skywire/cmd$ cd $GOPATH/bin
mitjag@pine64sonode1:~/go/bin$ ./node -connect-manager -manager-address 192.168.1.12:5998 -manager-web 192.168.1.12:8000 -discovery-address discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68  -address :5000 -web-port :6001