Skip to content

Setup Guide

Steffen edited this page May 15, 2025 · 1 revision

πŸ› οΈ Linux Post-Install Setup Guide

πŸ“¦ Pre-Install Backup

Before reinstalling your system, make sure to back up the following:

  • πŸ“§ Thunderbird (profiles / emails)
  • 🌐 Chrome bookmarks or sync using Floccus
  • πŸ” KeepassXC database + keyfile
  • πŸ“ User data: Pictures, Documents, Videos, CLionProjects

πŸ”„ Post-Install Tasks

  1. Create SSH key
  2. Set up gocryptfs
  3. Install Zsh / oh-my-zsh
  4. KeepassXC autostart setup

1. Create SSH Key

# Generate a new SSH key pair
ssh-keygen -t ed25519 -C "tux"

# Start SSH agent
eval "$(ssh-agent -s)"

# Add private key to the SSH agent
ssh-add ~/.ssh/id_ed25519

# Show public key
cat ~/.ssh/id_ed25519.pub

➑️ Add the public key to GitHub
GitHub β†’ Settings β†’ SSH and GPG keys β†’ New SSH key


2. Set up gocryptfs

# Unmount if already mounted
fusermount -u ~/Tresor

# Create mount and encrypted directories
mkdir ~/Tresor
mkdir ~/Nextcloud/.encrypted

# Initialize encrypted folder
gocryptfs -init ~/Nextcloud/.encrypted

# Store password securely
secret-tool store --label="Nextcloud Tresor" password tresor

# Retrieve password
secret-tool lookup password tresor

# Mount the encrypted folder
gocryptfs ~/Nextcloud/.encrypted/ ~/Tresor/

πŸ” Autostart: Add gcfs.sh script to autostart.


3. Zsh / Oh My Zsh

βœ… Check Zsh version

zsh --version

πŸ“₯ Install Oh My Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

πŸ”Œ Add plugins

# Autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH/plugins/zsh-autosuggestions

# Syntax Highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH/plugins/zsh-syntax-highlighting

Edit .zshrc:

plugins=(git z zsh-autosuggestions zsh-syntax-highlighting)

🎨 Install Powerlevel10k Theme

git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

Set in .zshrc:

ZSH_THEME="powerlevel10k/powerlevel10k"

4. KeepassXC

πŸ” Create keyfile

echo "YOURSTRING" | sha256sum /dev/stdin | cut -d " " -f 1 >> /path/to/keyfile.key

🧠 Store password securely

secret-tool store --label="KeepassXC" password keepass

🧰 Autostart script

#!/bin/bash
PASSWORD=$(secret-tool lookup password keepass)
echo $PASSWORD | /usr/bin/keepassxc --pw-stdin /path/to/your.kdbx --keyfile /path/to/keyfile.key > /path/to/autostart.log 2>&1

βœ… KeepassXC Settings

  • Minimize window on startup
  • Minimize instead of quitting
  • Show system tray icon