Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python TUI requires sudo #92

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,11 @@ $ sudo reboot now
Next, you will have to configure `rpi-sb-provisioner` by using the TUI. In a terminal, run:

----
$ config.sh
$ sudo config.sh
----

WARNING: This will not work if you have not reboot after installing the package!

WARNING: `rpi-sb-provisioner' must be installed with `--install-suggests' for `config.sh' to work. This will require installation of `python3-textual' and `python3-rich' from Debian's Trixie release.

Running this command will open up a full screen text UI. The TUI supports mouse input or keyboard navigation!
Each of the boxes contains a name, text entry and help button. The steps for editing each parameter are as follows:

Expand Down Expand Up @@ -246,15 +244,13 @@ WARNING: `rpi-sb-provisioner` will not, by default, block JTAG access. If you wi

=== Monitoring via the monitoring application

WARNING: `rpi-sb-provisioner' must be installed with `--install-suggests' for `monitor.sh' to work. This will require installation of `python3-textual' and `python3-rich' from Debian's Trixie release.

`rpi-sb-provisioner` also contains a monitoring application. This can be used to observe the progress of a device as it is being provisioned. It also allows for easy introspection of the log files and lists all completed and failed devices.
The monitoring application supports both mouse or keyboard input. Navigation between boxes can be acheived by using the `tab` key or by clicking on the desired area.

To run, type into a terminal window:

----
$ monitor.sh
$ sudo monitor.sh
----

The TUI will intialise with 2 rows, the top one showing the progress of a device throughout the process, with each of the columns being for devices in the following stages: triaging and provisoning.
Expand Down