timesyncd

As a general rulle, keeping all your hosts time in sync is a good thing. Linux variants running systemd will typically use timesyncd for this. Check the status of timesyncd # timedatectl timesync-status Server: 91.189.89.198 (ntp.ubuntu.com) Poll interval: 34min 8s (min: 32s; max 34min 8s) Leap: normal Version: 4 Stratum: 2 Reference: 11FD6C7D Precision: 1us (-23) Root distance: 32.569ms (max: 5s) Offset: +68us Delay: 14.613ms Jitter: 41.638ms Packet count: 256 Frequency: -21.
Read On →

PiHole notes

Long been a Pihole user, running on a Raspberry Pi worked a treat. Through a stupid mistake I lost access to the Pi :-( Decided to move it to a Virtualbox VM running Ubuntu Server. Install was painless, just follow the doc’s. On the Pi I had used a hack to register names for hosts on our LAN. On VM took the much easier approach. PiHole reads /etc/hosts so just need to update that with all local hosts and then reload PiHole by running pihole restartdns reload.
Read On →

Expand LVM ext4 root filesystem

On a basic Ubuntu Server install, an Oops moment: # df -h / Filesystem Size Used Avail Use% Mounted on /dev/mapper/ubuntu--vg-ubuntu--lv 7.9G 7.5G 21M 100% / Fortunately there is free space in the volume group: # vgs VG #PV #LV #SN Attr VSize VFree ubuntu-vg 1 7 0 wz--n- <1.72t <62.81g Extend the logical volume by 10G # lvextend -L +10G /dev/mapper/ubuntu--vg-ubuntu--lv Size of logical volume ubuntu-vg/ubuntu-lv changed from 8.00 GiB (2048 extents) to 18.
Read On →

LXC bridged network in Virtualbox

Using a bridged network with LXC is useful when you need your containers to be on same LAN subnet as the rest of your devices. Setting up bridged network is easy, this example is for Ubuntu using Netplan. Create a netplan configuration file in /etc/netplan that looks like this: network: version: 2 ethernets: enp0s3: dhcp4: no dhcp6: no bridges: br0: dhcp4: no dhcp6: no addresses: - 192.168.1.10/24 gateway4: 192.168.1.1 nameservers: addresses: - 192.
Read On →

Comments

Looking for a way to add comments to your static site? Look no further. There are many ways comments can be added, the best recent summary I found was by Darek Kay. I was looking for something self hosted which narrowed the selection down to 9, the most well know of those prossibly being Discourse. However, most of the self hosted platforms are overkill for what I wanted or they use a complicated (compared to the rest of the site) stack involving npm, gulp, etc.
Read On →