Git Product home page Git Product logo

skywire's Introduction

skywire logo

Skywire

Here is our Blog about Skywire.

Skywire is still under heavy development.

2018-01-21 10 44 06

Table of Contents

Requirements

Install

Unix systems

mkdir -p $GOPATH/src/github.com/skycoin
cd $GOPATH/src/github.com/skycoin
git clone https://github.com/skycoin/skywire.git

Build the binaries for skywire

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

Run Skywire

Unix systems

Run Skywire Manager

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

tip: If you run with the above command, you will not be able to close the current window or you will close Skywire Manger.

If you need to close the current window and continue to run Skywire Manager, you can use

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

Note: do not execute the above two commands at the same time, just select one of them.

Run Skywire Node

Open a new command window

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

tip: If you run with the above command, you will not be able to close the current window or you will close Skywire Node.

If you need to close the current window and continue to run Skywire Manager, you can use

cd $GOPATH/bin
nohup ./node -connect-manager -manager-address :5998 -manager-web :8000 -discovery-address discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68 -address :5000 -web-port :6001 > /dev/null 2>&1 &cd /

Stop Skywire Manager and Node.

  1. If the Skywire Manager and Node are started by using the terminal window, please press Ctrl + c on the respective terminal of Manager and Node.

  2. Use the shutdown terminal to keep running, please enter:

Stop Skywire Manager
cd $GOPATH/bin
pkill -F manager.pid
Stop Skywire Node
cd $GOPATH/bin
pkill -F node.pid

Open Skywire Manager View

Open http://localhost:8000. The default login password for Skywire manager is 1234.

Connect to node

  1. Connect to node —— Search services —— Connect

  2. Connect to node —— Enter the key for node and app —— Connect

In the first way, you can search for nodes around the world, and select the nodes you want to connect to; The second way is to connect to the specified node.

Use Skywire App

After the default normal start, the App will display "** available port **" (e.g. 9443) after successful connection.

Use Firefox Browser

Install FoxyProxy Standard

Open Firefox Browser,address bar input"https://addons.mozilla.org/zh-CN/firefox/addon/foxyproxy-standard/", Click "add to Firefox" button to follow the prompts to install.

Configuration FoxyProxy Standard

After the installation is complete, browse the Firefox address bar enter about: "addons" into the plugin page, find FoxyProxy "Standard" and click on the preferences into the configuration page < br > select "Use Enabled Proxies By Patterns and Priority" enable FoxyProxy < br > Click "Add" to Add the configuration,

Proxy Type: SOCKS5
IP address, DNS name, server name: 127.0.0.1
Port: 9443

And then finally click "Save"

SSH tool

SSH

After this service is opened, the application public key will be generated. Based on the public key of the node and the public key, the node can be managed remotely in any machine running Skywire.

Note: do not open SSH at will, and show the Node Key and App Key to strangers.

SSH Client

Enter Node Key and App Key. After the connection is successful, the Port (Port) will be displayed under the button, for example, 30001, and finally, use any SSH remote connection tool connection.

Docker

docker build -t skycoin/skywire .

Start the manager

docker run -ti --rm \
  --name=skywire-manager \
  -p 5998:5998 \
  -p 8000:8000 \
  skycoin/skywire

Note: The images of skywire for ARM v5 and v7 are built upon busybox whereas the ARM v6 and v8 containers will run on alpine.

Open http://localhost:8000. The default login password for Skywire manager is 1234.

Start a node and connect it to the manager

docker volume create skywire-data
docker run -ti --rm \
  --name=skywire-node \
  -v skywire-data:/root/.skywire \
  --link skywire-manager \
  -p 5000:5000 \
  -p 6001:6001 \
  skycoin/skywire \
    node \
      -connect-manager \
      -manager-address skywire-manager:5998 \
      -manager-web skywire-manager:8000 \
      -address :5000 \
      -web-port :6001 \
      -discovery-address discovery.skycoin.net:5999-034b1cd4ebad163e457fb805b3ba43779958bba49f2c5e1e8b062482904bacdb68

Docker Compose

docker-compose up

Open http://localhost:8000.

Download System Images

Note: these images can only be run on Orange Pi Prime.

IP presetted system images

Default password is 'samos'.

Run this once if you're using the official images to change the remote repository:

git remote set-url origin https://github.com/skycoin/skywire.git

Stay up to date by updating via git:

cd $GOPATH/src/github.com/skycoin/skywire
git reset --hard
git clean -f -d
git pull origin master
go install -v ./...

Manager system image package contains Skywire Manager and a Skywire Node, other Node system image package only launch a Node.

  1. Download Manager (IP:192.168.0.2)

  2. Download Node1 (IP:192.168.0.3)

  3. Download Node2 (IP:192.168.0.4)

  4. Download Node3 (IP:192.168.0.5)

  5. Download Node4 (IP:192.168.0.6)

  6. Download Node5 (IP:192.168.0.7)

  7. Download Node6 (IP:192.168.0.8)

  8. Download Node7 (IP:192.168.0.9)

Manually set IP system image

Note: This system image only contains the basic environment of Skywire, and it needs to set IP, etc.

Download Pure Image

Building the Orange Pi images yourself

The images are in https://github.com/skycoin/Orange-Pi-H5

Instructions for building the images are in https://github.com/skycoin/Orange-Pi-H5/wiki/How-to-build-the-images

skywire's People

Contributors

vyloy avatar gz-c avatar stdevnorge avatar stdevmauricio avatar asgaror avatar kaiwong avatar ljesparis avatar bigookie avatar mlopezqc avatar coinyawong avatar olemis avatar asxtree avatar djskinner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.