ENCRYPTED GENTOO SETUP WITH LUKS AND BTRFS
I was recently struggling to install gentoo on an encrypted rootfs. There are many guides, but somehow I always missed a step. So this is my take on compiling the necessary steps. Sources: https://wiki.gentoo.org/wiki/Handbook:AMD64 https://wiki.gentoo.org/wiki/Rootfs_encryption The goal here is to have a single disk partitioned into an EFI partition and a LUKS encrypted root partition. No swap here. /dev/nvme0n1 ├── /dev/nvme0n1p1 [EFI] /boot 1 GB fat32 Bootloader, bootloader support files, kernel and initramfs └── /dev/nvme0n1p2 [LUKS] (crypt) ->END luks encrypted partition └── rootfs / ->END btrfs root partition Please follow the official handbook and apply common sense.
ZSH COLOR PROMPT
A black & white terminal has a certain charme, yet you might be looking for a little more color. I added color to my zsh prompt like this by changing my ~/.zshrc: export PS1="%F{#C6A0F6}%n@%m :: %~${NEWLINE}%#%f " There are multiple things going on here. First it starts a color section by providing %F{#C6A0F6} Everything that follows this code is going to be printed in color, here a shade of purple. The color code is provided in RGB HEX, as widely used in HTML/CSS styling.
DISPLAY HTML MAIL IN MUTT
The second most annoying thing using a command line e-mail client like mutt is HTML mail. The most annoying is of course spam, but this is a topic for later. A neat feature of mutt is to use a command line browser to render the HTML. This is still far from ideal, but at least it renders a readable mail. To do this you need to put the following in your ~/.
HIDPI SETTINGS FOR X11 ON OPENBSD
Running an OpenBSD desktop on a HiDPI screen isn’t too complicated. At my home office I use a 5k 34" screen with an 21:9 aspect ratio. If you don’t change anything, X11 will display everything super small. Fixing the DPI requires a couple of changes. Tell X11 the correct monitor size, take the values from here in millimeter (mm) and put it in /etc/X11/xorg.conf.d/monitor.conf: Section "Monitor" Identifier "DP1" DisplaySize 796 336 EndSection My Identifier is called DP1 for first display port, yours might be different.
HOW TO STORE YOUR GIT CREDENTIALS
This is how you store your Git credentials, so you don’t have to type it everytime you interact with your repository. For source code management, I use gitea hosted at Byte23 Networks. I use an access token instead of my actual user password. To create it: Login to gitea Click on your profile in the top right Select settings Select Applications Select Generate token Copy the token Afterwards I configure my Git CLI to use the credential:
LTE WITH OPENBSD ON A THINKPAD X280
A neat feature of the ThinkPad X280 is the embedded LTE modem. The modem is supported on OpenBSD out-of-the-box. To make use of it I ordered a SIM card from my local provider sipgate and put it into the SIM tray on the back of the laptop base. OpenBSD has recognized the modem device right away: umb0 at uhub0 port 6 configuration 1 interface 0 "FIBOCOM L830-EB-00" rev 2.00/3.33 addr 6 umodem0 at uhub0 port 6 configuration 1 interface 2 "FIBOCOM L830-EB-00" rev 2.