My Arch Linux Tweaks

Switching my shell to zsh First, zsh usually does not come pre-installed. sudo pacman -S zsh chsh -l chsh -s /usr/bin/zsh Then after re-logging, I go with “do nothing”: This is the Z Shell configuration function for new users, zsh-newuser-install. You are seeing this message because you have no zsh startup files (the files .zshenv, .zprofile, .zshrc, .zlogin in the directory ~). This function can help you with a few settings that should make your use of the shell easier....

June 25, 2022 · 2 min · Bart Prokop

Retrieving PGP key from protonmail using gpg

It seems that Proton Mail publishes its customers public keys using at leasts two methods: WKD (Web Key Distribution) Exposes hkps server (host name: api.protonmail.ch) Using WKD Just retrieve public key using by issues the following command: $ gpg --locate-keys [email protected] gpg: key 6C74835C42CEF599: public key "[email protected] <[email protected]>" imported gpg: Total number processed: 1 gpg: imported: 1 pub rsa2048 2018-05-26 [SC] 49148230F11C0458BD19F45C6C74835C42CEF599 uid [ unknown] [email protected] <[email protected]> sub rsa2048 2018-05-26 [E] Of course it would be good to sign the key and distribute signed one to some public key server....

June 15, 2022 · 1 min · Bart Prokop

WKD setup for your domain

I have recently tried and was keen to see that Proton Mail supports WKD. $ gpg --locate-key [email protected] gpg: key 4DE32C2A10A7EBC2: public key "[email protected] <[email protected]>" imported gpg: Total number processed: 1 gpg: imported: 1 pub ed25519 2021-10-13 [SC] 67731B189D0908618DF665144DE32C2A10A7EBC2 uid [ unknown] [email protected] <[email protected]> sub cv25519 2021-10-13 [E] So here is quick instruction how to setup WKD for any email (i.e. not hosted by Proton Mail). First you need to create empty file relative to your webserver ROOT....

June 13, 2022 · 2 min · Bart Prokop

Marginal Trust

Marginal Trust downloading required keys... :: Import PGP key 0F65C7D881506130, "Maxime Gauduin <[email protected]>"? [Y/n] (38/38) checking package integrity Import PGP key 0F65C7D881506130, "Maxime Gauduin <[email protected]>" 237 curl "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x0e8b644079f599dfc1ddc3973348882f6ac6a4c2" > 0x6AC6A4C2.gpg 241 curl "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xab19265e5d7d20687d303246ba1dfb64fff979e7" > 0xFFF979E7.gpg 246 curl "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x91ffe0700e80619ceb73235ca88e23e377514e00" > 0x77514E00.gpg 248 curl "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xd8afdda07a5b6edfa7d8ccdad6d055f927843f1c" > 0x27843F1C.gpg 250 curl "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2ac0a42efb0b5cbc7a0402ed4dc95b6d7be9892e" > 0x7BE9892E.gpg 251 curl "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x159f3a43aeb246c5746c033814bc4f30b3b92eba" > 0xB3B92EBA.gpg prokop_bart@cloudshell:~/code/gpg-keys/trusted/arch-master$ gpg --import * gpg: key D6D055F927843F1C: 6 signatures not checked due to missing keys gpg: key D6D055F927843F1C: public key "Levente Polyak (Arch Linux Master Key) <anthraxx@master-key....

June 11, 2022 · 4 min · Bart Prokop

Backing BTRFS filesystem with Restic to Storj.

I’m using BTRFS on my home server. One of subvolumes is called media and is used to store curated collection of personal and professional photos, movies, books, etc. for whole family. In this post, I will share my experience with backing the whole media NAS share (currently 116 GiB). Backup procedure Consistency - preparing backup source First snapshot btrfs subvolume snapshot -r /mnt/t20raid/svols/media /mnt/t20raid/snaps/media/2022-05-31 Create a readonly snapshot of '/mnt/t20raid/svols/media' in '/mnt/t20raid/snaps/media/2022-05-31' restic backup to Storj via S3 gateway...

June 5, 2022 · 2 min · Bart Prokop