Skip to content

Instantly share code, notes, and snippets.

@ddfault
ddfault / debian-amd64-unifi.md
Last active April 3, 2024 18:32 — forked from jimdigriz/debian-unifi.md
Self-Hosting a UniFi Network Server on Debian "bookworm" 12

These instructions have been adapted from the official docs and avoid you have to run any lengthy scripts but you should still be able to get up and running within five minutes or so.

N.B. since the release of 7.5.x and 8.x there are no longer 32 bit releases (so no armhf) but someone noticed that the packages are architechiture neutral (ie. all) in amd64 so you can just pretend to be amd64 on arm64. When doing this, after the update you will still need to do the snappy fix described below.

Changes from original: I am targetting x86_64 (aka AMD64/amd64) see original for all occurances of arm64 (and armhf).

Plumb in the Unifi packaging by running:

sudo curl -o /usr/share/keyrings/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg

@ddfault
ddfault / cidr.py
Last active July 31, 2021 18:23 — forked from toringe/cidr.py
Merge CIDR blocks into super blocks if possible
#!/usr/bin/env python
#
# Example 1: All blocks in list.txt, one CIDR per line
# cat list.txt | cidr.py (linux)
# type list.txt | cidr.py (Windows)
#
# Example 2: Echo CIDR blocks to stdout
# echo 1.2.3.0/25 1.2.3.128/25 | cidr.py
# Adjusted python print to print() to work with my python 3.5 on Windows.