kjake
Dabbler
- Joined
- Mar 17, 2017
- Messages
- 29
Thanks, I'll check it out. BTW, you've inspired me to do one of my own: https://github.com/danb35/freenas-iocage-nextcloud
Rock on!
Thanks, I'll check it out. BTW, you've inspired me to do one of my own: https://github.com/danb35/freenas-iocage-nextcloud
Do we know that vnet is needed for this? I don't use it in mine, and in the three systems I've tried it on so far it hasn't caused a problem.
iocate create
), why do we need allow_raw_sockets? I read the manpage explanation of that option and can't claim I understood it, but I'm still curious, how did you know it's needed? somethingotherthanunifi_enable="YES"
. unifi_enable="YES"
- or am I missing something here?Yeah, I think that's a bug in the script--as you note, the service is called unifi no matter what you call the jail.Also, if I rename the jail to something other than unifi, line 30 will update the jail's /etc/rc.conf with somethingotherthanunifi_enable="YES".
...or just replace "mongodb" with "mongodb34" in that echo line.They conflicted with each other. I remove "mongodb" from the echo line in the script,manually uninstalled mongodb from the jail, and then ran the script again.
I've been switching back and forth between vnet=on and vnet=off.Do we know that vnet is needed for this? I don't use it in mine, and in the three systems I've tried it on so far it hasn't caused a problem.
I probably wasn't very clear--I was referring to a different iocage jail (specifically, Nextcloud). Sounds like you've pretty well confirmed that vnet is required for this case.What's surprising me is that you haven't run into any problems with vnet=off since march at least.
iocage create -n UniFi_Controller -r 11.1-RELEASE ip4_addr="lagg0|10.0.0.3/24" boot=on
iocage console UniFi_Controller
mkdir -p /usr/local/etc/pkg/repos
printf "FreeBSD: {\n\turl: "pkg+http://pkg.FreeBSD.org/\${ABI}/latest"\n}\n" > /usr/local/etc/pkg/repos/FreeBSD.conf
pkg update && pkg upgrade -y
pkg install -y unifi5
sysrc unifi_enable="YES"
exit
iocage restart Unifi_Controller
If you want the latest version the "proper" way would be to create a pkg override.I could easily install Unifi Controller version 5.8.24 by doing the following:
iocage create -n UniFi_Controller -r 11.1-RELEASE ip4_addr="lagg0|10.0.0.3/24" boot=on
iocage console UniFi_Controller
pkg install nano
nano /etc/pkg/FreeBSD.conf
replacequarterly
withlatest
pkg update
pkg upgrade
pkg install unifi5
nano /etc/rc.conf
Add lineunifi_enable="YES"
exit
iocage restart Unifi_Controller
https://10.0.0.3:8443
I'm wondering why FreeBSD.conf is set to quarterly instead of latest...
mkdir -p /usr/local/etc/pkg/repos
ee /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }
pkg upgrade
and finish the installation.Thank you, I didn't know that!If you want the latest version the "proper" way would be to create a pkg override.
mkdir -p /usr/local/etc/pkg/repos
ee /usr/local/etc/pkg/repos/FreeBSD.conf
Add the following code:
Code:FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }
Then runpkg upgrade
and finish the installation.
That still only gets the latest version that's been built into a FreeBSD package, which may lag a bit from the official release. This isn't necessarily anything critical, but it's still probably worth pointing out.If you want the latest version the "proper" way would be to create a pkg override.
Correct, it is currently one version behind the official release. Such is the case with most software on FreeBSD unfortunately.That still only gets the latest version that's been built into a FreeBSD package, which may lag a bit from the official release. This isn't necessarily anything critical, but it's still probably worth pointing out.
If you want the latest version the "proper" way would be to create a pkg override.
mkdir -p /usr/local/etc/pkg/repos
ee /usr/local/etc/pkg/repos/FreeBSD.conf
Add the following code:
Code:FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }
Then runpkg upgrade
and finish the installation.
If you want the latest version the "proper" way would be to create a pkg override.
mkdir -p /usr/local/etc/pkg/repos
ee /usr/local/etc/pkg/repos/FreeBSD.conf
Add the following code:
Code:FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }
Then runpkg upgrade
and finish the installation.