Debian Preseed late_command

In Debian installation process, the preseed.cfg file allows for automated installations by pre-configuring various installation parameters. In this article I will focus on the d-i preseed/late_command string parameter, which is used to run custom commands at the end of the installation process. Here is an example that I recently used in my packer-vbox-debian-latest project: d-i preseed/late_command string \ mkdir --mode=700 /target/home/testuser/.ssh; \ wget -q http://10.0.2.2:8081/key.pub -O /target/home/testuser/.ssh/authorized_keys; \ in-target chown testuser:testuser /home/testuser/.ssh; \ in-target chown testuser:testuser /home/testuser/.ssh/authorized_keys; \ in-target chmod 0600 /home/testuser/.ssh/authorized_keys As you can see, sometimes /target is used, other times in-target, I must admit I struggled a bit to understand the difference and when to use one instead of the other. ...

July 1, 2024 · 2 min · Daniel

Install Arch with SSH

My current Arch Linux installation has many years and I’d like to reinstall it using other technologies like LVM and BTRFS, but before reinstalling my laptop, I’m testing the installation process inside a VirtualBox VM. This morning I got bored of typing all the commands and in my head popped up Powershell Direct with Hyper-V. Basically you can attach a Powershell session directly to the Hyper-V VM. I found a similar approach by configuring port forwarding in VirtualBox and connecting via SSH. ...

June 22, 2024 · 1 min · Daniel

NVM on Enterprise

Node Version Manager for Windows is the de facto tool for managing multiple versions of Node.js, and is widely used by developers. In organisations where high security standards are in place, it can be a challenge to allow developers to use NVM. Getting started The aim of this short guide is to enable your developers to use NVM for Windows without the need for administrator rights, applying the concept of least privilege. ...

June 11, 2024 · 2 min · Daniel

Raspberry Pi Notes

These evolving personal notes document my journey and discoveries as I explore the versatile Raspberry Pi. At present, all information pertains specifically to the Raspberry Pi 5. Power Minimum required: 5V / 3A (can’t connect any bus-powered HDDs/SSDs) Best performance: 5v / 5A Remainder: x Volt * y Amp = z Watt Pogo Pin: A pogo pin is a spring-loaded connector used to create reliable electrical connections in electronics without the need for soldering, commonly for programming and connecting peripherals. ...

May 31, 2024 · 5 min · Daniel

Not in My Picture

Surely you have been in a situation where you wanted to wait before taking a photo because there were other people in the lens. Or think about how beautiful the photo of that square would have been without the people. That’s it… I do this almost every time I take a photo (apart from the time I was in the middle of nowhere in Iceland). So I said to myself: either I get up at 5am and take the photo, hoping that nobody else has had my bright idea, or we try to remove the objects with AI. ...

May 10, 2024 · 2 min · Daniel

How I Set Up This Site

While creating this blog, I thought why not write my first post documenting the steps I took to make it all happen? Maybe this could help other people who have decided to take the same journey as me, so let’s get started! Past experiences Actually this is my second blog, for several years I maintained a website called TuxLinux where I wrote about my first experiences in the Linux world, all using WordPress. But this time I was more determined to try something new (at least for me), so I started searching the internet for something like this: ...

May 4, 2024 · 5 min · Daniel