Easily install Google Coral
This page has been visited ... times
After a reinstallation following a failed upgrade from Openmediavault 6 to 8, which, I remind you, is based on Debian Trixie, I quickly realized that the Google Coral installed on the NAS no longer worked on my Frigate Docker. I wanted to reinstall it following the official procedure but I quickly realized that it no longer worked for Trixie.
After a few hours of searching, I found a Github repository written by markfrancisonly Using several shell scripts, I want to highlight this work which allowed me to rebuild Gasket almost effortlessly.
Prerequisites
- Up-to-date Debian Trixie (bare-metal or Proxmox VM)
- Linux kernel 6.17 or equivalent Proxmox kernel
- A Google Coral USB or M.2 drive
- Docker and Docker Compose installed
- Root access or sudo
Installing Dependencies
Before running the script, install these additional dependencies not included in the script. If you don’t have sudo access, you can register a user instead.
sudo apt update
sudo apt upgrade
sudo apt install git debhelper dh-dkmsImportant: Remember to update all dependencies before running the script described above in the command lines.
Script Installation
Next, download the script, preferably to the temporary folder of your Trixie architecture.
cd /tmp/
wget https://github.com/markfrancisonly/frigate_debian_scripts/raw/refs/heads/master/install_coral_tpu.shThen, nothing could be simpler than launching it, and the installation will proceed without a hitch.
sudo bash ./install_coral_tpu.sh --installAt the end of the script, a reboot will be required.
This isn’t finished yet; this script offers several options. In my opinion, the most important one after the reboot is to check the installation status. If the installation failed, use the “reinstall” option. If the gasket build failed, you can restart it with the “rebuild” option.
See below for a list of all the options.
List of options
Usage: sudo bash ./install_coral_tpu.sh [OPTION]
Options: |–status|Display installation status| |–install|Install the TPU driver and library| |–uninstall|Uninstall the TPU driver and library| |–reinstall|Reinstall the TPU driver from source| |–rebuild|Rebuild the TPU driver for the current kernel| |–setup-non-root [username] : Set up non-root access for the specified user|
Conclusion
Here’s a script we love! Thanks to it, your TensorFlow will regain its full importance in the home automation enthusiasts’ favorite NVR, Frigate. One more step towards simplicity. 👌
Comments