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
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.