Install Proxmox on Debian 12 With Ansible

This guide explains how to install Proxmox on a Debian 12 machine using Ansible. Preparing/installing the target machine During the installation of Debian please keep the software group standard system utilities checked: If you did not do this, some errors will occur when running Ansible, e.g. about missing Python, and Python-apt. This can be solved by installing these packages, and symbolic linking them into Pythons packages: apt install python3 python3-apt cd /usr/lib/python3/dist-packages ln -s apt_inst....

April 30, 2024 · 3 min · 497 words · Me

Resolving Raspberry Pi VNC Connection Issues

When connecting with Remmina to a Raspberry Pi using VNC I’ve been getting issues lately. I got an error like: Unknown authentication scheme from VNC server: 13, 5, 6, 130, 192 When searching for a solution I came acros two posts: https://raspberrypi.stackexchange.com/questions/142654/remmina-does-not-connect-to-raspberry-pi-bullseye-after-realvnc-server-update https://superuser.com/questions/1532602/remmina-unknown-authentication-scheme-from-vnc-server-13-5-6-130-192 The stack exchange answer, described a solution which on its own did precisely nothing for me to resolve the issue. However, it did force me to fill in a password, and change the encryption option to prefer on:...

November 26, 2023 · 1 min · 190 words · Me

Upgrading PhpVirtualbox From 6.x to 7.x on Debian Bullseye, the journey

In my previous blog post I’ve described how to install PhpVirtalbox version 6.x however jazzdd released a new version Jenkins. In this post I’m describing my journey to update to version 7.x, since the frontend is not compatible with the older version of virtualbox :/. PhpVirtualbox 7.x is not compatible with 7.0 Removing the old version of Virtualbox No big surprises here, and if you’re trying to follow allong....

November 19, 2023 · 8 min · 1527 words · Me

Django and Celery using Redis as backend in Docker

Introduction This post is to help with the following two tutorials (for setting up Celery with Django): https://levelup.gitconnected.com/django-celery-going-deeper-with-background-tasks-in-python-fa44958cf7cd https://testdriven.io/courses/django-celery/docker/ If you’re using or want to use Windows with Celery, it is better to run it in a container (or another way that you’re actually using Linux). Since Celery on Windows is not supported and they will not help you if you are going to still do this. Assumption You have Docker and docker compose up and running locally....

January 16, 2023 · 2 min · 291 words · Me

Running (php)Virtualbox on a Readonly Root System

Since I like to run servers from USB sticks and store the server data on harddisks. It is wise to make the root-file system read-only, to extend the life of a USB-stick. However, some programs require extra configuration to do this, since I could not find a post to do this with VirtualBox I’m making this one. Figuring out which files need to be writeable for Virtualbox We can use strace, to find the calls an application makes to the OS, (If you’re using Windows, process monitor can do similar, but still different things (including registry access) )....

January 2, 2023 · 2 min · 339 words · Me

Rebooting Linux When the Reboot Command Does Not Work

So on a system with systemd (e.g. Debian), when you get the following message: $ sudo reboot System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down Failed to talk to init daemon. Check if you have Systemd You can verify if it has systemd with: $ ls -l /sbin/init lrwxrwxrwx 1 root root 20 Jul 8 2021 /sbin/init -> /lib/systemd/systemd Or with...

December 28, 2022 · 1 min · 193 words · Me

Linux MDADM RAID using GPT named partitions

This is done on Debian 11 and I will assume no GPT partition table was used, and thus creates one. If GPT is already installed, you can skip the GPT creation step which would destroy all data on your disk. Create GPT partition table When we know our disk (figuring out our disk), we can start fdisk. In this case, I’m editing /dev/sdf. $ sudo fdisk /dev/sdf Welcome to fdisk (util-linux 2....

December 27, 2022 · 4 min · 770 words · Me

Linux RAID Cheat Sheet

Normal RAID situation Check RAID status: # mdadm --detail /dev/md0 Where /dev/md0 is the path to the volume. Example results: /dev/md0: Version : 1.2 Creation Time : Sun Dec 27 00:33:54 2020 Raid Level : raid5 Array Size : 9766912000 (9314.45 GiB 10001.32 GB) Used Dev Size : 1953382400 (1862.89 GiB 2000.26 GB) Raid Devices : 6 Total Devices : 6 Persistence : Superblock is persistent Intent Bitmap : Internal Update Time : Sun Dec 11 17:19:25 2022 State : active Active Devices : 6 Working Devices : 6 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 512K Consistency Policy : bitmap Name : kn0:0 (local to host kn0) UUID : 00000000:00000000:00000000:00000000 Events : 22001356 Number Major Minor RaidDevice State 0 8 48 0 active sync /dev/sdd 7 8 80 1 active sync /dev/sdf 8 8 16 2 active sync /dev/sdb 3 8 0 3 active sync /dev/sda 4 8 32 4 active sync /dev/sdc 6 8 64 5 active sync /dev/sde Check for RAID status:...

December 11, 2022 · 7 min · 1384 words · Me

Ansible on Debian (10)

To install Ansible on Debian (10). Open a shell, and as root user run: apt-get update apt-get install -y gnupg2 sh -c 'echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources.list' apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 apt update apt install ansible -y

November 11, 2022 · 1 min · 41 words · Me

Wemos D1 Mini Temperature Sensor (DHT22) Reporting to Telegram

When moving to my new apartment I wanted a way of measuring the temperature, which I found a nice excuse to play with some wireless hardware and APIs. Since I still had some Wemos D1 Minis laying around. Below is the code used to sent the temperature and humidity to Telegram. If you would want to use it, please, update the constants to make it match with your DHT setup, API keys, and WiFi Setup....

November 7, 2022 · 3 min · 609 words · Me