Skip to main content

Running Unifi Network Controller 8.1.113 on Openbsd 7.5

So I decided to give the unifi controller a shot on running on OpenBSD and most importantly the plan was to run it alongside all the other daemons on the system, so I don’t need to have a seperate VM / machine running just for the unifi controller. Spoiler: while I was able to get the unifi controller to run on my OpenBSD server I stopped the daemon right away after having all up and running. But why would I go through all the hassles just to not use it, you might ask. Well, if you are not interested about the intricacies of getting the controller up and running, just skip to the conclusion.

Cfssl Cheatsheat

Generate new Server Certificates

  • Generate CSR, certificate and private key for fqdn:

    fqdn=host.domain.tld
    cfssl gencert -ca intermediate/intermediate_ca.pem \
      -ca-key intermediate/intermediate_ca-key.pem \
      -config config.json \
      -profile server certificates/${fqdn}.json | cfssljson -bare certificates/${fqdn}
    
  • Generate chain

Remote Work and Meeting Culture

I am really glad about the paradigm shift the pandemic brought into my workplace with regards to remote work. Being able to stay at home 80% of my time is something I grew to be fond of and it helped a lot overcoming some personally challenging situations during the pandemic. I really enjoy the benefits and having the possibility to adjust my space to my needs which really helps to bring me more often into the flow which is beneficial for both me and my employer.

Migrated blog Hugo

A while ago I decided to ditch my Windows machine at home as I never really felt at home with the way Windows made me handle the system and the overall `ergonomics' of the OS. Sure, things got better with the introduction of powershell, winget and the Microsoft Terminal but still I always felt like working against the OS and not with it and most of the time I was using my Huawei Matebook running OpenBSD. But more and more often I needed a commercial OS especially due to the pandemic going on.

Labelling cables

There was a discussion lately at my workplace about how to label cables. Currently our cables at the datacenter sadly haven’t been labelled by the previous staff which makes tracing them a nightmare as cables tend to span multiple racks.

Upgrading netbox 3.0.7 -> 3.0.10 on OpenBSD 7.0

This is more a personal reminder than anything else. Also this expects an installation following this guide.

  • stop netbox: rcctl stop netbox
  • upgrade source: cd /var/www/netbox && git pull
  • checkout 3.0.10: git checkout v3.0.10
  • adjust upgrade.sh:
    diff --git a/upgrade.sh b/upgrade.sh
    index 67b8aaa89..0d694daf3 100755
    --- a/upgrade.sh
    +++ b/upgrade.sh
    @@ -7,7 +7,7 @@
     # Python 3.7 or later.
     #  
     #   cd "$(dirname "$0")"
     #   -VIRTUALENV="$(pwd -P)/venv"
     #   +VIRTUALENV="$(pwd -P)/env"
     #    PYTHON="${PYTHON:-python3}"
     #     
     #      # Remove the existing virtual environment (if any)
     #      @@ -20,7 +20,7 @@ else
     #       fi
     #        
     #         # Create a new virtual environment
     #         -COMMAND="${PYTHON} -m venv ${VIRTUALENV}"
     #         +COMMAND="virtualenv --system-site-packages ${VIRTUALENV}"
     #          echo "Creating a new virtual environment at ${VIRTUALENV}..."
     #           eval $COMMAND || {
     #              echo "--------------------------------------------------------------------"
    
  • run upgrade script: bash upgrade.sh
  • start the service: rcctl start netbox