Develop Linux Kernel Modules with CLion IDE

I’m currently working on a Linux kernel module. CLion is my favorite IDE but out of the box it doesn’t work for Linux kernel development. It doesn’t find Linux include files for example. I created this little demo project that hopefully helps you to use CLion for Linux development! This setup only helps CLion to do proper auto suggestions and other convenient IDE stuff, but doesn’t automatically build the kernel module. For this Read more…

Example for Implementing a Custom Netlink Family in Userland (C & Rust) + Linux Kernel Module for IPC Using Generic Netlink

Netlink is one of the nicer interfaces to communicate between userland and Linux kernel (IPC), but it’s still quite hard/complex, tho. For an uni project I had to figure it out how to communicate between userland and a self written Linux kernel module using the generic part of the netlink protocol. Because it was quite tough, I want to share my findings with the open source world. I chosed Rust as the language Read more…

Netlink code snippet (kernel code)

Running NGINX with Docker with Let’s Encrypt certificates outside of the container

In this post I want to explain briefly how I solved the problem to run NGINX with docker but keep the let’s encrypt certificates outside of the Docker image. Some approaches include the certificates into the container during the build, i.e. they are generated in the docker image. I wanted to decouple certificates and NGINX. Here’s my approach. It assumes you have docker and certbot (Let’s Encrypt) already installed. 1. Get the certificates Read more…

Running NextCloudPi with Docker Compose behind NGINX Reverse Proxy with TLS

I have successfully managed to run NextCloudPi on my Raspberry Pi 4 (4GB) with Docker Compose behind a NGINX as reverse proxy. It was quite some work to figure out how to configure everything. I want to share what I have learned in case you want to do something similar. Hopefully I can help you. This tutorial will assume that you know how to setup NGINX as reverse proxy with TLS on your Read more…

Spring REST-API mit Spring Security absichern und mit Angular SPA authentifizieren

Update: Ich habe den Code nochmal überarbeitet und optimiert. Bei meinem aktuellen Hobbyprojekt stand ich vor dem Problem einen Spring Boot REST-Service richtig abzusichern und mich mit meiner Single Page Application, einem Angular Frontend, dagegen zu authentifizieren. Ich hatte dabei große Probleme mit der Konfiguration von Spring Security und wie der Client damit interagieren soll. Spring Security ist sehr groß, mächtig und zunächst sehr undurchsichtig. Viele Tutorials empfand ich zudem als wenig hilfreich, Read more…

Java Code (Symbolbild)