Creating SD Card and Booting Raspberry Pi
-
Copy
quantotto.zip
from previous step to a machine with SD Card Imager software.
We recommend balenaEtcher -
Image SD card (use at least 8 GB card)
-
Insert newly imaged SD card into a card slot of powered off Raspberry Pi box
-
Power on Raspberry Pi
- After a minute or so, you can connect to Raspberry Pi with SSH using default username and password:
- user: pi
- password: raspberry
-
During the first login, configuration script will run to finalize settings and enable qtoagent service.
You will see the following message displayed:Welcome to Quantotto Agent Raspberry Pi *************************************** Running first time configurations. First time configurations completed successfully.
-
Change password upon login using
passwd
command -
Validate Quantotto Agent CLI is installed by executing
qtoagent --help
; you should see the following output:$ qtoagent --help Usage: qtoagent [OPTIONS] COMMAND [ARGS]... Quantotto Agents CLI Configure and manage Quantotto agents on device Options: --version Show the version and exit. --help Show this message and exit. Commands: capture Configures and manages Capture agents customer Configures customer info and credentials discovery Configures and manages Discovery agent status Shows agents status
-
Verify customer configuration
During your first login, customer configuration is populated automatically. It is recommended to validate that all setting were properly chosen.
Current customer configuration can be viewed withqtoagent customer info
.
Verify that all fields are complete; example output is show below:$ qtoagent customer info Customer info summary ===================== Customer ID: qto Customer client secret: XC_oPav76zh8 Customer portal: qtosrv Frames port: 15000 Site name: main Hostname: piqto IP: 192.168.0.170 QUANTOTTO_HOME: /opt/quantotto
If, for some reason, configurations are incomplete or need to be modified, please run:
qtoagent customer config
and answer config questions.
Most of default settings presented should be fine. Client Secret will be masked.
Press<Enter>
to accept the default or enter new value. -
Verify that qtoagent service is up and running by executing
qtoagent status
:$ qtoagent status Showing agents status ● qtoagent.service - Quantotto Agent Service Loaded: loaded (/lib/systemd/system/qtoagent.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2020-12-11 22:38:46 UTC; 3h 6min ago Main PID: 30168 (qtoagent_servic) Tasks: 5 (limit: 2282) Memory: 7.8M CGroup: /system.slice/qtoagent.service ├─30168 /bin/bash /opt/quantotto/qtoagent_service.sh └─30183 /opt/quantotto/.venv/bin/python3 /opt/quantotto/.venv/bin/qtoagentservice Dec 11 22:38:46 qtoagent systemd[1]: Started Quantotto Agent Service.
NOTE:
If needed, qtoagent service can be started / stopped / restarted using standardsystemctl
commands:sudo systemctl start qtoagent.service sudo systemctl stop qtoagent.service sudo systemctl restart qtoagent.service
Well done!
Quantotto Agent machine is ready and you can move on to Configuring Discovery and Capture.