Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Orange Pi Setup Guide
#1
Being a total noob here this is my first ever attempt using linux, but i finally managed to get a node working on an Orange Pi Prime!

Heres how i went from the very beginning using Windows 10:

Thankyou to "Skyguy" for his Ubuntu guide!





DOWNLOADS 





Quote:Step 1: Download Ubuntu desktop. http://www.orangepi.org/downloadresources/orangepiprime/orangepiprime_90a173615c3d08cc1efb22.html

Step 2: Download WIN Disk imager. http://sourceforge.net/projects/win32diskimager/files/latest/download

Step 3: Download Rufus for Formating SD Card. https://rufus.akeo.ie/downloads/rufus-2.18.exe




Now that you have downloaded what is  needed to create a bootable micro SD card. 
I have used 32GB Sandisk Ultra cards. 


Quote:Step 4: Open Win32 Disk Imager. 

Step 5: Select your image file - "//Downloads/Armbian_5.37.171218_Orangepiprime_Ubuntu_xenial_next_4.14.6_desktop/Armbian_5.37.171218_Orangepiprime_Ubuntu_xenial_next_4.14.6_desktop.img"

Step 6: Select Drive device is inserted- ie. E:\

Step 7: Select Write


Now you have a Bootable SD card with Ubuntu linux on it. 

Insert SD card into Orange Pi Prime. 

Plug in Keyboard and mouse. 
Connect HDMI cable.
Plug in Power cord. Make sure it is 5V 2a Powersupply 

Linux should boot in about 1-2Mins 


Quote:Login details for OrangePiPrime 
Login: root
Password: 1234 



It will then display a prompt to change your password. 
Enter current password: 1234 

Then enter anything you like: 


Quote:Next Set username - Anything you like here 

Then enter your password x2 

For Following details just press Enter 
Fullname: <Enter>
Room number: <Enter>
Work phone: <Enter>
Home phone: <Enter>
Other: <Enter>

Is the information correct: enter Y 



It will now Boot and you should see the Armbian penguin. 

Go to the top Right of the Screen and next to the time click the Netwok icon

Select your Network, and enter password if needed. 


INSTALL GO & DEPENDENCIES



Right Click on the Desktop

Select Open Terminal here enter the following. 

Code:
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y curl git mercurial make binutils gcc bzr bison libgmp3-dev screen gcc build-essential

Enter your Password when Prompted. 

Download and install Go 

Code:
sudo curl -L https://dl.google.com/go/go1.9.2.linux-arm64.tar.gz -o go1.9.2.linux-arm64.tar.gz

sudo tar -xvf go1.9.2.linux-arm64.tar.gz

sudo mv go /usr/local

Set Go Path 

Code:
sudo nano ~/.profile

At the End of the file insert the following. 

Code:
export PATH=$PATH:/usr/local/go/bin

CTRL + "X"  
then Y 
then Enter 
to Save and close the file. 

Next run the bellow to refresh your profile.

Code:
source ~/.profile

Check Go is installed 

Code:
go version

you should now see "go version go1.9.2 linux/arm64"

Create Go directories.

Code:
sudo mv go /usr/local/go
sudo ln -s /usr/local/go/bin/go /usr/local/bin/go
sudo ln -s /usr/local/go/bin/godoc /usr/local/bin/godoc
sudo ln -s /usr/local/go/bin/gofmt /usr/local/bin/gofmt

mkdir -p $HOME/go
mkdir -p $HOME/go/bin
mkdir -p $HOME/go/src
mkdir -p $HOME/go/pkg

Set up $GOPATH variable

Code:
cd ~
vi .bashrc

To Enter Press 
- Shift G
- Shift $
- a
- ENTER

Paste the bellow at the bottom. 

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

To Save and Close Press
- ESC twice 
- Shift colon (Smile 
- wq
- ENTER

Refresh the path by running 


Code:
source ~/.bashrc






INSTALL SKYCOIN

1 - Download Skycoin from the github using the bellow command 


Code:
go get github.com/skycoin/skycoin/...


Run Skycoin from the command line 

Code:
cd $GOPATH/src/github.com/skycoin/skycoin
make run

**It's not possible to connect to the linux skycoin wallet from a windows desktop. For the purpose of testing, the following modification enables access but prevents you from adding a wallet or using any of the other functions available. Not an issue if you don't plan on using the linux wallet. It also won't affect the skywire node in any way

Code:
vi $GOPATH/src/github.com/skycoin/skycoin/cmd/skycoin/skycoin.go

Now search for the first 127.0.0.1 entry by pressing /127.0.0.1 (Enter). Update 127.0.0.1 to your server IP or 0.0.0.0 
Press ESC twice and (wq), then Enter.

// Remote web interface
        WebInterface:             true,
        WebInterfacePort:         6420,
        WebInterfaceAddr:         "192.168.1.14",
        WebInterfaceCert:         "",
        WebInterfaceKey:          "",
        WebInterfaceHTTPS:        false,
        PrintWebInterfaceAddress: false,

3 - Launch Skycoin 

Code:
make run



Install SkyWire

1. Download skywire using git

Code:
cd $GOPATH/src/github.com/skycoin
git clone https://github.com/skycoin/skywire.git


(2) Build binaries for skywire

Code:
cd $GOPATH/src/github.com/skycoin/skywire/cmd
go install ./...

(3) Run Skywire

Code:
cd $GOPATH/bin
./manager -web-dir ${GOPATH}/src/github.com/skycoin/skywire/static/skywire-manager

At this point, you should have access to the monitor. Open a browser and navigate to http://server_ip:8000

[Image: skywire_monitor.jpg]

The node won't be running at this point. To start a node, enter the following command in a new putty window. It takes +-60 seconds before you will see some activity in the command window. Once there is activity, your node should be up

Code:
cd $GOPATH/bin
./node -connect-manager -manager-address :5998 -manager-web :8000 -discovery-address messenger.skycoin.net:5999 -address :5000 -web-port :6001

[Image: skywire_node_online.jpg]

Add Public IP to the peers.txt file on github

(1) Register an account on github

(2) Update the skycoin peers.txt file and add your IP. The default port is 6000

**To confirm your public IP, open a browser and type "myip" 

Congratulations you have just set up your first Orange Pi Skywire Node!



Still In progress....

Make 2 or more nodes connect to 1 manager.

./node -connect-manager -manager-address IPOFMANAGER:5998 -manager-web IPOFMANAGER:8000  -address :5000 -web-port :6001

Where IPOFMANGER is the managers ip address 192.xxx.xxx.xxx (@Schmeckle)

You can find the IP for the manager node by doing "ifconfig"
or
curl icanhazip.com (@chriscrawford)
[-] The following 5 users say Thank You to SkyVinnie for this post:
  • DeltaCrypto, Jai ddoos, Lancek, skyguy, trader95
Reply
#2
Thanks. Haven't done it yet, but gathering info i'll need.
Reply
#3
Very nice. Thanks for sharing
Reply
#4
(01-15-2018, 12:14 PM)SkyVinnie Wrote: Being a total noob here this is my first ever attempt using linux, but i finally managed to get a node working on an Orange Pi Prime!

Heres how i went from the very beginning using Windows 10:

Thankyou to "Skyguy" for his Ubuntu guide!

Just finished assembling an official skywire miner. 

So do I basically do the same steps as above on each?
Assuming I only install the skywire section and not the Skycoin one?

How do I connect the nodes together?

Thanks,
LDN
Reply
#5
Please do not install an Desktop environment on an Orange PI. You do not need it. You don't need to waste resources on running a graphical user interface.

All you want is the Armbian server.


I would prefer download the server version from here, instead of getting it from a Chinese page, link: https://www.armbian.com/orange-pi-prime/

Or direkt link: https://dl.armbian.com/orangepiprime/Deb...ch_next.7z
The difference between debian and ubuntu shall not matter much.
Reply
#6
Thanks bro going to check this out on weekend


Sent from my iPhone using Tapatalk
Reply
#7
Thanks for your help skyvinnie!!



[Image: Screenshot_20180424_210249.jpg]
Reply
#8
Hi...I have a laptop running both Windows 10 (x64) and Ubuntu 16.04 (x64). I am developing for an embedded linux machine so it makes sense to me to use ubuntu for development.I have quite a bit of experience using Linux but seem to be out of my depth configuring cross-compilation between my laptop and the Orange Pi One.

prototype pcb
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)