Skywire Armbian Asus Tinker Board

Skywire Armbian Asus Tinker Board

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

login as: root
root@192.168.1.40's password:
You are required to change your password immediately (root enforced)
 _____ _       _             _                         _
|_   _(_)_ __ | | _____ _ __| |__   ___   __ _ _ __ __| |
  | | | | '_ \| |/ / _ \ '__| '_ \ / _ \ / _` | '__/ _` |
  | | | | | | |   <  __/ |  | |_) | (_) | (_| | | | (_| |
  |_| |_|_| |_|_|\_\___|_|  |_.__/ \___/ \__,_|_|  \__,_|


Welcome to ARMBIAN 5.50 user-built Ubuntu 16.04.4 LTS 4.14.52-rockchip
System load:   0.08 0.08 0.03   Up time:       2 min
Memory usage:  2 % of 2005MB    IP:            192.168.1.40
CPU temp:      39°C
Usage of /:    3% of 30G

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@tinkerboard:~#

Update OS packages

apt-get update
apt-get upgrade

Download and install GO lang

wget https://dl.google.com/go/go1.10.3.linux-armv6l.tar.gz
tar -C /usr/local -xzf go1.10.3.linux-armv6l.tar.gz

Create profile for GO binaries and add GO bin path

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

Update hostname

root@tinkerboard:~# cat /etc/hostname
tinkerboardnode1
root@tinkerboard:~#

Reboot and login as non root user

Test if go path is ok, check version

mitjag@tinkerboardnode1:~$ go version
go version go1.10.3 linux/arm
mitjag@tinkerboardnode1:~$

Check if git installed

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

Create user bash profile for GOPATH and GOBIN env variables

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

Relogin to reload profile

Install Skywire following instructions from github

mitjag@tinkerboardnode1:~$ mkdir -p $GOPATH/src/github.com/skycoin
mitjag@tinkerboardnode1:~$ cd $GOPATH/src/github.com/skycoin
mitjag@tinkerboardnode1:~/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@tinkerboardnode1:~/go/src/github.com/skycoin$

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

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@tinkerboardnode1:~/go/src/github.com/skycoin/skywire/cmd$ cd $GOPATH/bin
mitjag@tinkerboardnode1:~/go/bin$ ./manager -web-dir ${GOPATH}/src/github.com/skycoin/skywire/static/skywire-manager
mitjag@tinkerboardnode1:~/go/src/github.com/skycoin/skywire/cmd$ cd $GOPATH/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