41 cards
Linked content

Using GPG/PGP with Ubuntu and Thunderbird

When transmitting sensitive information, we never want to send unencrypted e-mails, but use GPG/PGP encryption.

Creating a key pair

  • Before starting, create a new entry in KeePass for your GPG key and create a new password. See the Security Guidelines for password policies.

  • Start generating a key by running the following command in your terminal

    gpg --full-gen-key
    
    • Select the default key type (RSA/RSA)
    • Choose at least 4096 bits for key...

How to change your dm-crypt passphrase

dm-crypt has multiple passphrase slots. The process will be to add a new passphrase to a new slot, check that it works, and then remove the old passphrase.

  1. Find out which partitions are decrypted by dm-crypt:
$ lsblk --fs
NAME                  FSTYPE      LABEL   UUID                                   FSAVAIL FSUSE% MOUNTPOINT
nvme0n1                                                                                         
├─nvme0n1p1           vfat                65CB-0937                               503,2M     2% /boot/ef...

Create a new SSH key pair

Before starting, create a new entry in KeePass for your SSH key and create a new password. See the Security Guidelines for password policies.

Make sure you use a up-to-date SSH version to use secure values for the key generation, as for now at least 2048 Bit RSA!

ssh-keygen -f ~/.ssh/firstname.lastname -C "firstname.lastname@makandra.de"

When entering the password for your key, copy it once from KeePass (via the clipboard) and type it manually the second t...

Git configuration

Git can be configured in ~/.gitconfig. Here is an overview about common configurations.

Please keep this default config simple. It should be a starting point for new developers learning Git.

Author name

To appear with your name in commits:

[user]
  name = Your Name
  email = your.name@domain.de

Colors

[color]
   ui = auto
   # The value for these configuration variables is a
   # list of colors (at most two) and attributes (at 
   # most one), separated by spaces.
   # The colors accepted are:
   #...

Thunderbird: Don't automatically mark messages as read and as junk in Thunderbird

  • Preferences -> Display -> Advanced (tab not button)
  • If the option "Automatically mark messages as read" has the suboptions "Immediately on display" and "After .... seconds", you can uncheck the checkbox. It won't mark new mails as read anymore.

for older thunderbird versions:

(see attachment)

  • menu -> "preferences" -> "preferences" -> "Display" -> "Advanced" tab
  • uncheck "Automatically mark messages as read".
  • close settings
  • to mark emails as read click the tiny green circle in the list vi...
This website uses short-lived cookies to improve usability.
Accept or learn more