Coding with Titans

so breaking things happens constantly, but never on purpose

HowTo: Temperature on Raspberry Pi

One of the useful scripts I use to regularly check the temperature on my Raspberry Pi farm is following: #!/bin/bash cpu=$(</sys/class/thermal/thermal_zone0/temp) echo "$(date) @ $(hostname)" echo "---------------------------------------" echo "CPU => $((cpu / 1000))'C" echo "GPU => $(vcgencmd measure_temp | cut -d'=' -f 2)" It will print the current temperature values of the CPU and GPU separately. Enjoy! Read more →

Problem with DHCP on Raspberry Pi after update to bullseye

Yet we meet again here. If you landed on this page it means you are also hit by a problem with remote login into recently upgraded Raspberry Pi. Isn’t the RaspberryOS bullseye running as smooth as the previous version? Somehow the device doesn’t appear on the local network at all. How is that even possible? And the second yes, you really have to take it from top of the wardrobe or from other silent place in home, where it did a hard job as a headless server and plug it into the monitor and keyboard. Read more →

HowTo: MariaDB in Docker on Raspberry Pi

Originally I wanted to replace my very old Synology NAS (from 2011 with 4 HDD drives) with something newer. Then after listing, why I would need it in the first place - I realized I could immediatelly unplug the power out of it, if only I have had transferred a single service out of it - folder synchronization. This is the way I easily move my docs between macOS, PC and mobile and somehow I never trusted free services like OneDrive, Google Drive nor DropBox to do this job. Read more →

LEGO case for Raspberry Pi

COVID-19 outside, autumn is behind the corner and dark comes really fast after the recent time change… That’s why today I would love to present something happy and something completely different that was poking my head since very few weeks. I wanted to pimp my Raspberry Pis with custom cases. All 3 models I possess have the original cases, that are fine, but the look&feel could be improved. I wish to mount an SSD next to the Pi along with much bigger fan. Read more →

Install .NET Core on Raspberry Pi

.NET Core 3.1 for ARM32 Installing .NET Core on Raspberry Pi 4 is a very straightforward process these days. There are plenty descriptions in the wild, so please welcome my own guide on this subject too. Login into Raspberry Pi and upgrade all current modules to latest. sudo apt update sudo apt upgrade Install some dependencies, that .NET Core relies on (as described here). Potentially all of them are already on your system, but let’s be sure. Read more →

Raspberry Pi quick SSH remote access from macOS

Managing a farm of Raspberries can be a difficult task. It becomes even more cumbersome and tiring, if each of them has the ssh-daemon service running on a different port and uses a different administrator account name. So could I login to them quicker / more efficiently without repeating those parameters all the time and most importantly without remembering all their combinations? Like in following command: $> ssh [user]@[hostname.domain] -p [port] user@host's password: . Read more →

Secure access to PostgreSQL on Raspberry Pi

First time this month I thought about doing something right. It’s the end of the year and what about creation of really secured environment for my PostgreSQL database on a Raspberry Pi, that I could expose publicly. What could go wrong here :) ? The goals were clear: Setup a dedicated low-privileged system user, so I could proxy to the database over SSH. Create a new low-privileged PostgreSQL user, so it can access own database only (or ones created in the future). Read more →

HowTo: migrate PostgreSQL 9.6 to 11.5

Recently I have created a post on how to upgrade OS on Raspberry Pi. It worked pretty well until I figured out there is something wired with my PostgreSQL installation. And it turned out I ended up with two instances installed one next to the other. So I had the 9.6 version running with my existing databases and as well a cluster for version 11.5. Let me try then to rephrase the other guide, I found here, explaining, how to upgrade PostgreSQL to latest and migrate the databases. Read more →

Gitea on Raspberry Pi with no heatmap refreshed

In the times before private repositories were available for free on GitHub.com I had my own git-server installed on a NAS using gitolite. But in a long run I stopped liking managing from console and also I don’t like, when some other corporation looks into my own hidden projects and could be able to cut me off. As a result I migrated again, this time installing Gitea on a Raspberry Pi following this marvelous guide. Read more →

HowTo: OS upgrade on Raspberry Pi 4

The process of system upgrade is very easy and was already described here. This is a really great guide. I just want to add few comments, that affected my installation. The main actions to perform to install latest version of Raspbian are: Go to raspberrypi.org and check the latest OS codename. Verify, if this version is not already installed on the Raspberry using cat /etc/os-release command. $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" VERSION_CODENAME=stretch ID=raspbian ID_LIKE=debian HOME_URL="http://www. Read more →