如何在 Raspberry Pi 上安装 PlatformIO 远程代理
这来自官方 PlatformIO 文档的超级快速安装过程:
install_platformio.sh
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
sudo apt -y install rustc libffi-dev
echo "export PATH=\$PATH:/home/${USER}/.platformio/penv/bin" >> ~/.profile以用户身份运行(无论你想以哪个用户使用 PlatformIO - 默认情况下是 pi 用户)而不是 以 root 身份!
运行这些命令后,注销并重新登录以使 PATH 环境变量的更改生效。
之后,运行
pio_remote_start.sh
pio remote agent start以完成安装过程。这将需要相当长的时间。
登录后,你可以从 shell 使用 pio:
pio_usage.txt
$ pio
用法:pio [选项] 命令 [参数]...
选项:
--version 显示版本并退出。
-f, --force 已弃用
-c, --caller TEXT 调用者 ID(服务)
--no-ansi 不打印 ANSI 控制字符
-h, --help 显示此消息并退出。
命令:
access 管理资源访问
account 管理 PlatformIO 账户
boards 嵌入式板浏览器
check 静态代码分析
ci 持续集成
debug 统一调试器
device 设备管理器和串口/套接字监视器
home 管理 PlatformIO 的 GUI
lib 库管理器
org 管理组织
package 包管理器
platform 平台管理器
project 项目管理器
remote 远程开发
run 运行项目目标(构建、上传、清理等)
settings 管理系统设置
system 杂项系统命令
team 管理组织团队
test 单元测试
update 更新已安装的平台、包和库
upgrade 将 PlatformIO 升级到最新版本Check out similar posts by category:
PlatformIO, Raspberry Pi
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow