Installation script for common Linux Variants #9208
kornyhiv
started this conversation in
Show and tell
Replies: 3 comments
-
Moving this to discussion as this is not a feature request |
Beta Was this translation helpful? Give feedback.
0 replies
-
Step 6: Create frigate.sh file. nano frigate.sh Should these be created in /usr/local/bin or /opt/bin, please? Note 1: I'm trying this in MX Linux 23.2 (a Debian derivative). Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is Awesome!!! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good Morning Everyone,
I have now been using Frigate for some time, and I love this project. Thank you to all who have invested, and provided continued development, and support for this platform.
With that said, the installation of the software maybe difficult for novice people not familiar with linux, docker, and other variables. In an effort to make things easier, and enhance the reach of Frigate - I have created a bash script to easily install Frigate on Ubuntu Linux.
This can be used to install Frigate or as a template to either further enhance or create a new script all together.
My intention is only to further propagate the reach and utilization of this software to hopefully add additional support and development time with the increased user base for non techies (Novice people).
Instructions on a brand new Ubuntu based machine. (Minimal Install works great).
Notes:
Start Command - Installs Frigate or runs frigate if already installed before using previous parameters selected (frigate_installation_settings file)
Stop Command - Stops running Frigate docker container. Start command can be used to start it again.
Delete Command - Stops running Frigate container, deletes the Frigate container, and deletes the frigate_installation_settings file.
(Delete command does not delete config folder/file, or Media folder.)
Frigate_Installation_Settings file - this keeps the variables used during the installation wizard, so that if the container is stopped, service is stopped, etc. The start command can be used to start the Frigate container again with the existing variables that were input on the wizard during installation, without asking for those again.
Basic installation which can be run as a quick test to verify config using CPU. Is "no" to USB Coral prompt, and "no" for NVIDIA GPU for video decoding.
The Config.yml file included is a template so you don't get the pesky no configuration file found that many novice people get when trying to install Frigate for the first time, or troubleshooting why it doesn't start.
The Config Tab inside of Frigate (GUI) once is running is recommended, as it contains YAML structure verification before submitting a change or making a mistake. You can then quickly copy and paste your config file in most cases to get up and running.
Your config file could be pasted on the script between the "mqtt", and "FPS: 7" if needed, however it is highly recommended top use the Frigate GUI Config tab once it is running.
The Wizard also prompts for NVIDIA GPU usage, and USB Coral.
All this does, is it adds docker run commands depending on the user submission.
USB Coral:
--device /dev/bus/usb:/dev/bus/usb"
NVIDIA GPU for video decoding:
--gpus all
-e NVIDIA_VISIBLE_DEVICES=all
-e NVIDIA_DRIVER_CAPABILITIES=compute,video,utility"
However, these are in because they match my systems. These and any other variable can be easy edited or removed to better match your setups. Keep this in mind, because if your system differs on the Hardware Acceleration or other variables these may need to be changed for docker to fully utilize your hardware.
The script will also automatically retrieve the latest beta version if selected. The script after installation will also provide local IPv4 address for novice users if not using localhost.
An effort has been made to comment all lines to clearly explain the action or desired function for the code. This will make it easier to modify and match your needs.
Again, just trying to provide one more tool or the basis of a new idea to create something similar.
Please use at your own risk,
Here are a few screenshots:
![image](https://private-user-images.githubusercontent.com/29285614/294228633-cd9d47e5-57f7-4e2f-95de-e6a4865d208e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyNzA2NTQsIm5iZiI6MTcyNTI3MDM1NCwicGF0aCI6Ii8yOTI4NTYxNC8yOTQyMjg2MzMtY2Q5ZDQ3ZTUtNTdmNy00ZTJmLTk1ZGUtZTZhNDg2NWQyMDhlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDA5NDU1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5NjJjYTM2NDRkYjk2ODU2OWYzN2YzNWI1OWZiZjQxZWM1ZmNlNzg2YjZkYjBkMmVhMmYyY2FmYzMxZDE4MTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jmvkVixBQt0HWW2_ySmXS46D4RxPXaoaGYN_cu6VWs0)
Start Command:
Stop Command:
![image](https://private-user-images.githubusercontent.com/29285614/294228771-920c6eea-4067-4469-9229-37dcdfb53f12.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyNzA2NTQsIm5iZiI6MTcyNTI3MDM1NCwicGF0aCI6Ii8yOTI4NTYxNC8yOTQyMjg3NzEtOTIwYzZlZWEtNDA2Ny00NDY5LTkyMjktMzdkY2RmYjUzZjEyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDA5NDU1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEzNDU2OTdmMjlkMmZhOTkxMDZhY2RlM2QwMjFmZDQ1MTQxNjZjNmVkNmE3ZGFjMWNmMTE4ODRmNDIyMWMzMDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tZ-DE4K-a0jWGzLsGnq0L0KFVJEs_X8gzc1_MS-qHuY)
Delete Command:
![image](https://private-user-images.githubusercontent.com/29285614/294228173-a4b33512-189e-4532-ba4f-f347b434db96.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyNzA2NTQsIm5iZiI6MTcyNTI3MDM1NCwicGF0aCI6Ii8yOTI4NTYxNC8yOTQyMjgxNzMtYTRiMzM1MTItMTg5ZS00NTMyLWJhNGYtZjM0N2I0MzRkYjk2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDA5NDU1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFjYjU5NzI5NWU2OTljZDMxNmE0YWRkYWI5NzYzMjEwMTI5ZjVlODdlN2M4ZDdlNmQ2ZmI4NDUxNzYwYzRmZTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.o8Qh6cDsglmVsCV5b0906FGVMyZA84T-POktTfJ3X34)
Script:
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions