Robotair Installationâ¿»
Estimated time to read: 2 minutes
This guide explains how to use the robotair.sh
script to install and start the Robotair client on your system.
Step 1: How to Use robotair.sh
â¿»
The robotair.sh
script automates the installation of all dependencies and the setup of the Robotair service.
Usageâ¿»
Open a terminal and run:
Arguments:
- <robot_id>
: Your unique Robotair robot identifier.
- <robot_token>
: The authentication token for your robot.
Options:
- -v
or --verbose
: Enable verbose output for debugging.
- --install-only
: Only install dependencies, do not start the Robotair service.
Examples:
Install and start Robotair:
Install dependencies only (do not start service):
Enable verbose output:
Step 2: What Does robotair.sh
Do?â¿»
The script performs the following actions:
-
Argument Handling
Parses the provided arguments and options to determine the installation mode and verbosity. -
Dependency Installation
- Docker:
Checks if Docker is installed. If not, downloads and installs Docker, sets up user permissions, and verifies the installation. -
Robotair Client:
Checks if the Robotair client is installed. If not, adds the Robotair APT repository and GPG key, updates APT, and installs the Robotair client package. Adds the current user to therobotair
group. -
Service Startup
Unless--install-only
is specified, waits for the Robotair service to be ready, then starts the Robotair client using the provided robot ID and token.
Additional Notesâ¿»
- The script supports installation from a local Robotair package if the
LOCAL_ROBOTAIR_PACKAGE
environment variable is set totrue
. - All major actions are logged with colored output for clarity.
- If you encounter errors, try running with the
--verbose
flag for more detailed output.