Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
computer:shinobi_dvr [2021/06/06 13:19]
tdobes
computer:shinobi_dvr [2021/06/06 13:41] (current)
tdobes
Line 94: Line 94:
 popd popd
 </code> </code>
 +<code>
 +# ...some customizations: run on port 80, don't use 2nd videos folder, configure to use sendmail, remove gmail auth lines
 +sed -i -e 's/"port": 8080,/"port": 80,/' -e '/{"name":"second","path":"__DIR__\/videos2"}/d' -e 's/"service": "gmail",/"sendmail": true/' -e '/"auth":/,+3d' /opt/shinobi/conf.json
 +
 +# mount ZFS video path from host into container
 +# on vmhost...
 +zfs create tank/shinobi
 +zfs set atime=off tank/shinobi
 +zfs set compression=zstd tank/shinobi
 +pct set ### --mp0 /tank/shinobi,mp=/mnt/video
 +# restart container, then on container...
 +systemctl stop pm2-root
 +mv /opt/shinobi/videos/* /mnt/video/
 +mv /opt/shinobi/videos /opt/shinobi/videos.old
 +ln -s /mnt/video /opt/shinobi/videos
 +systemctl start pm2-root
 +
 <code> <code>
 # FIXME: everything runs as root... this seems to be what upstream intends, but we should be able to do better # FIXME: everything runs as root... this seems to be what upstream intends, but we should be able to do better
computer/shinobi_dvr.txt · Last modified: 2021/06/06 13:41 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS