Sidehistorik
...
I had a lot of problemes getting to use the disk, several times the installer just crashed and restarted, and or stopped with "Installing grub on taget device failed"
But I finally got the installer to r emove remove all partitions and install, with the "Use custom partitions" option - make sure to whipe and erase all partitions on the disk.
After the install the "df -h" command told me that only 100 GB of the disk was used - I have no clue why the installer sets it up this way..
But the fix was eady easy - first examine the LVM:
Kodeblok |
---|
root@beetle:/home/bnp# vgdisplay --- Volume group --- VG Name ubuntu-vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size <462.87 GiB PE Size 4.00 MiB Total PE 118494 Alloc PE / Size 25600 / 100.00 GiB Free PE / Size 92894 / <362.87 GiB VG UUID Dd5nRh-qzsj-z6rX-H1o1-JzMd-kXEI-7bWoEx |
...
Kodeblok |
---|
lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv |
Now, we can see 0 "Free PE :/ Size 0 / 0"
Kodeblok |
---|
root@beetle:/home/bnp# vgdisplay --- Volume group --- VG Name ubuntu-vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 4 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size <462.87 GiB PE Size 4.00 MiB Total PE 118494 Alloc PE / Size 118494 / <462.87 GiB Free PE / Size 0 / 0 VG UUID Dd5nRh-qzsj-z6rX-H1o1-JzMd-kXEI-7bWoEx |
Ubuntu is installed and the complete SSD Disk usedis now utilized.
Docker install
Lets install docker.io:
...
Find information on Frigate here
Tip |
---|
First, I generally put all docker stuff in /opt opt - and I dont use docker-compose very much. Maybee one day... |
Creating the needed Directory and the config file:
...
The config file can be huge and there are plenty of options, here is my current:
Kodeblok |
---|
mqtt: host: 10.0.0.183 cameras go2rtc: streams: frigate_front_door_cam_main: ffmpeg: inputs: - path"ffmpeg: rtsphttp:///view:10.0.0.151/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=******&password=******@10.0.0.151:554//h264Preview_01_sub#video=copy#audio=copy#audio=opus" roles: - detect frigate_front_door_cam_sub: - path"ffmpeg: rtsphttp://view:10.0.0.151/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=******&password=******@@10.0.0.151:554//h264Preview_01_main" frigate_behind_house_cam_main: roles: - "ffmpeg:http://10.0.0.176/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=******&password=******#video=copy#audio=copy#audio=opus" frigate_behind_house_cam_sub: - "ffmpeg:http://10.0.0.176/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=******&password=******" frigate_carport_cam_main: - "ffmpeg:http://10.0.0.191/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=******&password=******#video=copy#audio=copy#audio=opus" frigate_carport_cam_sub: - "ffmpeg:http://10.0.0.191/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=******&password=******" frigate_big_shed_cam_main: - "ffmpeg:http://10.0.0.108/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=******&password=******#video=copy#audio=copy#audio=opus" frigate_big_shed_cam_sub: - "ffmpeg:http://10.0.0.108/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=******&password=******" cameras: frigate_front_door_cam: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/frigate_front_door_cam_sub?video=copy input_args: preset-rtsp-restream roles: - detect - path: rtsp://127.0.0.1:8554/frigate_front_door_cam_main?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record rtmp: enabled: False detect: width: 640 height: 480 fps: 5 objects: track: - person snapshots: enabled: True timestamp: false bounding_box: True retain: default: 2 record: enabled: True events: retain: default: 10 frigate_behind_house_cam: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/frigate_behind_house_cam_sub?video=copy input_args: preset-rtsp-restream roles: - detect - path: rtsp://127.0.0.1:8554/frigate_behind_house_cam_main?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record rtmp: enabled: False detect: width: 640 height: 480 fps: 5 objects: track: - person snapshots: enabled: True timestamp: false bounding_box: True retain: default: 2 record: enabled: True events: retain: default: 10 frigate_behind_housecarport_cam: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/frigate_carport_cam_sub?video=copy - pathinput_args: rtsp://view:**********@@10.0.0.176:554//h264Preview_01_subpreset-rtsp-restream roles: - detect - path: rtsp://view:**********@@10127.0.0.1761:554//h264Preview_01_main8554/frigate_carport_cam_main?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record rtmp: enabled: False detect: width: 640 height: 480 fps: 5 objects: track: - person - car snapshots: enabled: True timestamp: false bounding_box: True retain: default: 2 record: enabled: True events: retain: default: 10 frigate_big_carportshed_cam: ffmpeg: inputs: - path: rtsp://view:**********@@10127.0.0.1911:554//h264Preview_01_sub 8554/frigate_big_shed_cam_sub?video=copy input_args: preset-rtsp-restream roles: - detect - path: rtsp://view:**********@@10127.0.0.1911:554//h264Preview_01_main8554/frigate_big_shed_cam_main?video=copy&audio=aac input_args: preset-rtsp-restream roles: - record rtmp: enabled: False detect: width: 640 height: 480 fps: 5 objects: track: - person - car snapshots: enabled: True timestamp: false bounding_box: True retain: default: 2 record: enabled: True events: retain: default: 10 detectors: coral: type: edgetpu device: usb birdseye: enabled: True mode: continuous |
Tip |
---|
In short, the file sets up 4 cams - using:
|
...