Coder Social home page Coder Social logo

node's Introduction

How to configure? Please follow this prcedure:
Step 1: Install Android SDK
- install Java SDK
- install Android Studio
- install Android 2.3.3(API 10)

Step 2: Install GO

Step 3: Install adb (even though it has been installed together with Android SDK/Studio)
$ sudo apt-get install android-tools-adb

Step 4: Install noVNC
$ sudo git clone git://github.com/kanaka/noVNC

Step 5: Git Clone NODE source code
$ git clone https://github.com/tianhongbo/node.git

Step 6: Modify source code
- install.sh
- deviceinstall.sh
- repo.go

Step 7: Set environment variables
$ sudo vi /etc/environment

- add emulator tools to PATH
/home/ubuntu2/Android/Sdk/tools

- add GOPATH
GOPATH=/home/ubuntu2/controller

Step 8: configure port forwarding for SSH functions
- iptables for Ubuntu
- ip for mac

For example(for ubuntu):
# This is for eth0
- sysctl -w net.ipv4.conf.eth0.route_localnet=1
- iptables -t nat -I PREROUTING -p tcp -i eth0 --dport 5921 -j DNAT --to-destination 127.0.0.1:5921

# This is for wlan
- sysctl -w net.ipv4.conf.wlan0.route_localnet=1
- iptables -t nat -I PREROUTING -p tcp -i wlan0 --dport 5921 -j DNAT --to-destination 127.0.0.1:5921


#Done

#Debugging
1. check adb forward
- $ adb forward --list


2. check iptables NAT
- $ sudo iptables -t nat -L -n -v

#SSH
# user: "test" / password: "test"
ssh [email protected] -p 5921

#VNC
It seems the behaviors in MAC and Ubuntu are different. For example, VNC launch.sh only create
listening port on the external interface in MAC. However, it will create listening port on all
the interfaces including localhost.

2. /etc/rc.local
start node automatically when instance booting
su ubuntu - -c /home/ubuntu/node/bin/node

node's People

Contributors

tianhongbo avatar

Watchers

James Cloos avatar  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.