PlatformIO Remote Agent auf Raspberry Pi installieren

English Deutsch

Dies stammt aus der Super-Schnellen Installationsprozedur aus der offiziellen PlatformIO-Dokumentation:

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

Führen Sie es als Benutzer aus (welchen Benutzer Sie auch immer für PlatformIO verwenden möchten - standardmäßig ist dies der pi-Benutzer) und nicht als root!

Nach dem Ausführen dieser Befehle melden Sie sich ab und wieder an, damit die Änderungen an der PATH-Umgebungsvariable wirksam werden.

Führen Sie danach

pio_remote_start.sh
pio remote agent start

aus, um die Installation abzuschließen. Dies wird einige Zeit in Anspruch nehmen.

Nach der Anmeldung können Sie pio aus der Shell verwenden:

pio_usage.txt
$ pio

Usage: pio [OPTIONS] COMMAND [ARGS]...

Options:
  --version          Show the version and exit.
  -f, --force        DEPRECATE
  -c, --caller TEXT  Caller ID (service)
  --no-ansi          Do not print ANSI control characters
  -h, --help         Show this message and exit.

Commands:
  access    Manage resource access
  account   Manage PlatformIO account
  boards    Embedded board explorer
  check     Static code analysis
  ci        Continuous integration
  debug     Unified debugger
  device    Device manager & serial/socket monitor
  home      GUI to manage PlatformIO
  lib       Library manager
  org       Manage organizations
  package   Package manager
  platform  Platform manager
  project   Project manager
  remote    Remote development
  run       Run project targets (build, upload, clean, etc.)
  settings  Manage system settings
  system    Miscellaneous system commands
  team      Manage organization teams
  test      Unit testing
  update    Update installed platforms, packages and libraries
  upgrade   Upgrade PlatformIO to the latest version

Check out similar posts by category: PlatformIO, Raspberry Pi