Raspberry Pi Kernel Firmware Upgrade / Downgrade

I’ve been looking at a problem with one of my Raspberry Pi projects freezing every now and again. I have a suspicion from reading recent posts that it could be kernel related. I found a good article here which also links to the rpi-update utility on Github here The great thing here is the utility allows a downgrade. I can also never remember how to find the current kernel version so, for me, this is what I use:...

September 17, 2018

Unattended Upgrades on my Raspberry Pi’s

I can never quite remember how I like my unattended upgrades configured on my Raspberry Pi’s so I’m just popping it here. It should work for all versions! nano /etc/apt/apt.conf.d/50unattended-upgrades Unattended-Upgrade::Origins-Pattern { "origin=Raspbian,codename=${distro_codename},label=Raspbian"; "origin=Raspberry Pi Foundation,codename=${distro_codename},label=Raspberry Pi Foundation"; }; Unattended-Upgrade::Automatic-Reboot "true"; Unattended-Upgrade::Automatic-Reboot-Time "02:00"; To check it: unattended-upgrade --dry-run Logs can be found at: /var/log/unattended-upgrades/unattended-upgrades.log and /var/log/unattended-upgrades/unattended-upgrades-dpkg.log

August 23, 2018

Pi-hole in a Docker Container on a Raspberry Pi

Logos Property of Pi-hole & Docker. While I was disappearing down a rabbit hole investigating unbound as a DNS Privacy server, I came across Pi-hole – A black hole for Internet advertisements. I’ve always used uBlock Origin for ad blocking but that is a per client thing which is a bit of a hassle. Pi-hole provides ad blocking for all clients on the network, seamlessly. I just configure DNS on each client, via DHCP, to point towards the Pi-Hole server....

April 23, 2018

Raspberry Pi Docker Container to send all LAN DNS requests to Cloudflare’s 1.1.1.1 DNS over TLS

I wanted to implement this on a Raspberry Pi that I have running Docker. However, I wasn’t able to find an image in Docker Hub for the ARM architecture that the Raspberry Pi uses so I made my own based on the x86-64 image, here. Place the Dockerfile and unbound.conf in the same directory. Docker file: FROM arm32v6/alpine:3.7 EXPOSE 53/udp RUN apk add --update --no-cache -q --progress unbound && \ rm -rf /etc/unbound/unbound....

April 21, 2018

EDUP 802.11n Mini Wi-Fi Adapter Sleeping

I bought some EDUP 802.11 N Mini Wi-Fi Adapters from China. They’re cheap and do a fine job plugged into my Raspberry Pi’s. However, by default, they always go to sleep which makes it difficult to connect to them via ssh etc. To fix this, here’s what I did: To identify the USB WLAN Adapter I did the following: $ lsusb Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802....

March 26, 2018

Check or Change the Timezone in Debian

To see or change what timezone your Debian system is configured for: dpkg-reconfigure tzdata More detailed information is available in the Debian Wiki More specifically, I used this in a setup of HypriotOS, a minimal Debian-based operating systems that is optimised to run Docker on ARM devices. In this instance it was an old Raspberry Pi Model B running NodeRed in a Docker Container. I needed to get the time in the Docker Container to match the time on the host....

August 9, 2017

Get Spell Checking Working in Libre Office on a Raspberry Pi

Spell checking never seems to work, by default, in Libre Office on a Raspberry Pi. To get it working: # Go to: https://extensions.libreoffice.org/extensions/english-dictionaries/ # Click on the Current Release or go to the below URL which # is current as of now! https://extensions.libreoffice.org/extensions/english-dictionaries/2017-01.01 # Download the .oxt file # In Libre Office go to Tools / Extension Manager # Add the .oxt file # Spell checking now works!

February 19, 2017

Mount a Network Drive on a Raspberry Pi

This has been tested on Jessie with the PIXEL Desktop. I haven’t tested it in previous versions. Substitute the IP address in fstab and the share name, as appropriate! # Make a directory in /mnt sudo mkdir /mnt/DataDisk # Edit fstab: sudo nano /etc/fstab # Add a line with a similar format as below //192.168.178.240/DataDisk /mnt/DataDisk cifs guest,iocharset=utf8,_netdev,x-systemd.automount 0 0 # Reboot and check that things mount OK after a reboot sudo shutdown -r now

February 19, 2017