自动运行:- curl https://raw.github.com/adafruit/Adafruit-WebIDE/alpha/scripts/install.sh | sudo sh
安装即可。如果80占用,安装程序会自动选择8080
看到下面的内容,即表示安装成功了:
- **** Starting the server...(please wait) ****
- **** The Adafruit WebIDE is installed and running! ****
- **** Commands: sudo service adafruit-webide.sh {start,stop,restart} ****
- **** Navigate to http://raspberrypi.local to use the WebID
也可以手动安装:
- sudo apt-get install git
- git clone git://github.com/adafruit/Adafruit-WebIDE.git
- cd Adafruit-WebIDE
- sudo apt-get install nodejs npm redis-server git -y
- mkdir tmp
- npm config set tmp tmp
- npm install
- vim editor/config/config.js (change port 80 to your port of choice)
- node server.js
效果如图:
卸载:
0.1.9及更老的版本,请运行:
curl https://raw.github.com/adafruit/Adafruit-WebIDE/release/scripts/uninstall.sh | sh
0.2.0及以后的版本,卸载请运行:
curl https://raw.github.com/adafruit/Adafruit-WebIDE/alpha/scripts/uninstall.sh | sudo sh
You can also manually uninstall by removing the following components:
Delete the folder the editor exists in.
Remove the bitbucket ssh keys in ~/.ssh
Edit the ssh config to remove the bitbucket reference that is appended.
Uninstall nodejs npm redis-server git restartd libcap2-bin avahi-daemon i2c-tools
评论