RPI-CM3 GateWay:Node-Red环境

2020-12-05 15:25:08 浏览数 (1)

1 更换apt源

1)查看系统版本

代码语言:txt复制
lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

2)编辑文件 /etc/apt/sources.list文件

deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi

deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi

3)编辑文件 /etc/apt/sources.list.d/raspi.list文件

deb http://mirrors.aliyun.com/archive.raspberrypi.org/debian/ buster main ui

2 安装node-red环境

1) 安装Node-Red

代码语言:txt复制
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
install_node_red.pnginstall_node_red.png

2)启动和Hello World

start_node_red.pngstart_node_red.png

测试和输出:

node_red_helloworld.pngnode_red_helloworld.png

附录:

board-1.jpgboard-1.jpg
board-2.jpgboard-2.jpg

0 人点赞