Monocle Gateway Running on UDM Pro SE
-
Hi all
Thought I would share some interesting news, I now have monocle gateway running directly on my UDM Pro SE.
This may not be of interest to most as it only requires a pi or PC to run gateway but is useful for me as I quite often forget that gateway is running and reboot the device whilst the wife has the camera on the Alexa!
This does require some Linux knowledge to achieve however it basically requires you to install a couple of bits on the UDM to allow a container to be run which utilises the arm 64 version of monocle gateway.
First step is to install “On Boot” scprits which allow other services to run info here
https://github.com/unifi-utilities/unifios-utilities/tree/main/on-boot-script-2.x
Then once installed the other tool is “nspawn” I followed their setup guide here
https://github.com/unifi-utilities/unifios-utilities/tree/main/nspawn-container
When referencing their guide if you want the monocle gateway service on your main vlan (if you just have a flat network) replace every time they use vlan ‘5’ with vlan ‘0’.
Once the container is created you can install OpenSSH and then ssh to it and install monocle gateway as you would any other Linux system ensuring you download the arm64 variant.
This guide even has a hook script which allows it to survive firmware updates.
Handy for me as if the UDM is running nothing else is required for monocle to work.
Hope this is useful.
Side note I also have a 2nd container running which has an IPTV proxy service called xTeVe running in it.
I have not noticed any performance issues, I have 4 x G3 Flex and a G4 doorbell, with all but one set with continuous recording.
-
Just to note I have only tested on a UDM Pro SE, it is suspect will work on others if they are now using “UnifiOS”.
I am trying to find a reasonably priced CloudKey Gen 2 to test on as I want to replace the in-laws “UniFi Video” PC they currently have.
If any one has one they want to to sell please DM me
-
Did you have any issue getting unifi-os shell to run. I am not able to get this to run once ssh in.