Frigate is a free and open-source video surveillance software that can help you turn your IP cameras into a smart surveillance system. In this tutorial, we will show you how to install Frigate on your Void Linux machine.
Before starting, make sure you have the following:
Frigate runs on Docker, so we need to install Docker first. To install Docker on Void Linux, follow these instructions:
Run the following command to update the package repository:
sudo xbps-install -S
Then, run the following command to install Docker:
sudo xbps-install -y docker
Start the Docker service by running:
sudo ln -s /etc/sv/docker /var/service/
Finally, add your user account to the Docker group so that you can run Docker without using sudo:
sudo usermod -aG docker $USER
Note: Logout and log back in for this to take effect.
We will use Docker Compose to install and run Frigate. To install Docker Compose, run the following command:
sudo xbps-install docker-compose
Make sure you are in the directory where you want to install Frigate. Create a file docker-compose.yml
with the following contents:
version: '3'
services:
frigate:
image: blakeblackshear/frigate:stable
restart: always
privileged: true
volumes:
- /dev/shm:/dev/shm
- ./config:/config:ro
- ./captures:/captures
ports:
- 5000:5000
- 8080:8080
environment:
- FRIGATE_RTSP_PASSWORD=your_rtsp_password
- FRIGATE_RTSP_USERNAME=your_rtsp_username
your_rtsp_password
and your_rtsp_username
with your username and password for your RTSP stream.Create two empty directories, config
and captures
, by running:
mkdir config captures
These directories will be used by Frigate to store its configuration files and captured footage.
Next, start Frigate by running:
sudo docker-compose up -d
This may take a few minutes as Docker pulls the Frigate image and sets up the container.
Finally, check that Frigate is running by opening your web browser and navigating to http://localhost:5000.
You have successfully installed Frigate on your Void Linux machine using Docker Compose. You can now configure your IP camera in Frigate and start using it to monitor your premises.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!