Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[NOT RECOMMENDED] Setting Up Skywire on AML-S905X-CC (Le Potato)
#1
Thumbs Down 
NOT RECOMMENDED
There is an issues with Le Potato hardware. I have been talking to a few people with them. Getting 1 node up and running works just fine but running 2 or more in a series and they start dropping connections. If you have them and your having issues and are trying to get all the nodes up and running hit me up here or in either Discord or Telegram and ill help out as best I can. I am trying out some Linux distros with patches to this issue. If things change with these boards i'll update here to reflect this.



How to Install and set up a Le Potato on Skywire.


Part 1: Set up
Software:
- Advanced IP Scanner
- SD Card Formatter (Windows, Mac)
- Etcher - (windows/Linux/mac)
- Putty

Download Img File:
We are going to install ubuntu 18.04 onto our Le Potato.

1: Burn the img file to the SD card with Etcher.
2: Push the SD card into the Le Potato until you hear a soft click.
3: Plug your Le Potato into power and the network.
4: Run Advanced IP Scanner. It will show you the IP of your Libre computer

[Image: cQOTiWf.png]

5: Open putty and type in the IP address shown by the IP scanner, then logg in with:
Username: libre
Password: computer



Part 2: Setting up Le Potato
Getting everything Ready
Code:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
   
Password: computer


[Image: A0PT3hn.png]

type Y then hit enter



Now you will need to install some extra software
Code:
sudo apt-get install wget gcc git nano

same deal as above, give your password if asked then type Y when prompted to.




Part 3: GO
Installing GO:

Code:
wget https://dl.google.com/go/go1.10.2.linux-arm64.tar.gz
sudo tar -C /usr/local -xzf go1.10.2.linux-arm64.tar.gz


[Image: jZ3LO3w.png]





- Now we need to make some GO related folders:

Code:
cd ~
mkdir go
mkdir go/bin
mkdir go/src

[Image: TuMFq3g.png]




- You Need to update environmental variables

Code:
sudo nano ~/.profile
 
If your new to doing this sort of thing, this is probably the scariest part



[Image: 077zl51.png]




- A file editor will open as you can see above. Scroll to the bottom and enter the following:

Code:
export GOROOT=/usr/local/go
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export GOBIN=$HOME/go/bin

To save our changes hit the keys
Ctrl and X

[Image: WjiESxf.png]


Type  y then hit Enter to save your changes. Almost all the scary stuff done and out of the way Big Grin



- Verify your install
Code:
source ~/.profile
go version


[Image: 9E8kbZq.png]



Part 4:
Personal Changes

- Setting a New user Password
Code:
passwd

[Image: wL5LKED.png]


- Setting a Static IP for your device:
Code:
cd /etc/netplan/
ls

'ls' lets you check the name of your network file, before editing it
Code:
sudo nano 01-netcfg.yaml


[Image: u1zIsqx.png]


- A textbox will appear, set it to your own personal preference: Remember to set dhcp to no

[Image: B2GSV6z.png]


Code:
network:
 version: 2
 renderer: networkd
 ethernets:
   eth0:
     dhcp4: no
     dhcp6: no
     addresses: [192.168.x.x/24]
     gateway4: 192.168.x.x
     nameservers:
       addresses: [8.8.8.8,1.1.1.1]

- addresss being the IP that you want your node to be  
- gateway4 being the IP of your router
- Don't forget to set the ip to the IP you want, don't leave it as 192.168.x.x


- Lets reboot and apply our changes
Code:
sudo reboot

Open Putty again and SSH to your new IP address and login with you're new password.



Part 5: Skywire
- Installing Skywire:
Code:
mkdir -p $GOPATH/src/github.com/skycoin
cd $GOPATH/src/github.com/skycoin
git clone https://github.com/skycoin/skywire.git
cd $GOPATH/src/github.com/skycoin/skywire/cmd
go install -v ./...




Up until here you do the exact same steps per device, Now there is a Manager Node and a Secondary Node Option. If you have 1 device you just do the Manager node bit here and move on to the steps below. If you have 2 nodes 4 nodes or even 8 nodes. Your 1st device will do the manager node setting and for every other node, you will skip the "For manager Node" and do the code for below it.



- FOR MANAGER NODE ONLY:
Code:
cd $GOPATH/bin
nohup ./manager -web-dir ${GOPATH}/src/github.com/skycoin/skywire/static/skywire-manager > /dev/null 2>&1 &sleep 3

nohup ./node -connect-manager -manager-address ***MANAGERS IP ADDRESS***:5998 -manager-web ***MANAGER IP ADDRESS***:8000 -discovery-address discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68  -address :5000 -web-port :6001 > /dev/null 2>&1 &cd /


[Image: Oh0KDXt.png]




- FOR ALL SECONDARY NODES:
Code:
cd $GOPATH/bin
nohup ./node -connect-manager -manager-address ***MANAGERS IP ADDRESS***:5998 -manager-web ***MANAGER IP ADDRESS***:8000 -discovery-address discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68  -address :5000 -web-port :6001 > /dev/null 2>&1 &cd /






- Visting your Skywire interface:
ManagersIPAddress:8000
For example:
192.168.0.111:8000

Password: 1234
You will be prompted to change your password on first login.


[Image: RMV5bSW.png]



Once your logged in you should be greeted with your node list. Currently Just the manager node is online for me so only one is showing up. If you have 8 nodes all 8 will show up in the list.

[Image: YV4vLc2.png]






Now to make sure that all is good with this node we click on it and go to the config menu:

[Image: x1wNxyW.png]

At the very bottom of this picture is the Node app. This is what allows other people to connect to your node. If this does not appear or if you close it you will not be eligible for whitelist rewards.





Now we are going to make sure that the device is discoverable. Go to settings:
[Image: N1xNIeo.png]


Then check if your discovery address is correct:
[Image: j7LBZII.png]





You need to make sure all your nodes are on the discovery address of:

Code:
discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68











Part 6: management (OPTIONAL)
Every time your nodes reboot you will have to re-enter those above commands. Some people have posted autostart scripts in the forums, feel free to look for some. Scripting is not my strong suit so ill leave that out.


Setting up Remote management:
Now lets set up a way to remotely check on your device from your phone. I am going to use Monyt (android only)

First we will install additional software:
Code:
sudo apt-get install apache2 -y
sudo apt-get install php libapache2-mod-php -y

Now lets make our new php file.
Code:
cd /var/www/html
sudo nano monyt.php
 Once the text window opens copy this script into it: http://monyt.net/monyt-server-script.txt



Then install the Monyt app on your phone
[Image: Screenshot_20180526-212739_Monyt.jpg]




and your done!!!



Upgrading Skywire:
This is only an issue if you're running an older version of skywire from a different install:
Code:
cd $GOPATH/src/github.com/skycoin/skywire
git reset --hard
git clean -f -d
git pull origin master
cd $GOPATH/src/github.com/skycoin/skywire/cmd
go install -v ./...


best of luck!
[-] The following 1 user says Thank You to I Am You for this post:
  • skyguy
Reply
#2
Excellent guide. Thanks for sharing
[-] The following 1 user says Thank You to skyguy for this post:
  • zan
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)