Skip to content

Instantly share code, notes, and snippets.

@e-cite
e-cite / docker-installation.md
Last active May 22, 2024 11:47
Debian Docker installation tutorial

Debian Docker installation tutorial

https://docs.docker.com/engine/install/debian/

  1. Remove old docker, update and install requirements
    sudo apt-get remove docker docker-engine docker.io containerd runc
    sudo apt-get update
    sudo apt-get install \
        apt-transport-https \
        ca-certificates \
        curl \
    
@e-cite
e-cite / kvm-installation.md
Last active October 4, 2025 21:13
Debian KVM installation tutorial

Debian KVM installation tutorial

https://wiki.debian.org/KVM

  1. Update system, install KVM (server without graphical tools) and additional tools
    sudo apt-get update && sudo apt-get dist-upgrade
    sudo apt-get install --no-install-recommends qemu-system libvirt-clients libvirt-daemon-system
    sudo apt-get install qemu-utils dnsmasq-base bridge-utils iptables netcat-openbsd
    sudo apt-get install ovmf  # For UEFI-Support in VMs (Aber aufgrund eines Bugs sind mit UEFI-VMs keine Snapshots möglich!)
    sudo apt-get install qemu-system-modules-spice  # Falls oben mit --no-install-recommends installiert wurde, muss ab Debian Trixie dieses Paket mit installiert werden, damit spice-Grafikausgabe möglich ist.
    
@e-cite
e-cite / IAMRole-VMOperator.json
Created December 6, 2020 13:32
Azure IAM Role "VM operator" (Only start and stop VM)
{
"Name": "VM Operator",
"IsCustom": true,
"Description": "Can start, restart and stop (deallocate) virtual machines.",
"Actions": [
"Microsoft.Compute/*/read",
"Microsoft.Compute/virtualMachines/start/action",
"Microsoft.Compute/virtualMachines/restart/action",
"Microsoft.Compute/virtualMachines/deallocate/action"
],
@e-cite
e-cite / yubikey-ssh-authentication.md
Last active July 29, 2025 08:49
Yubikey SSH authentication

Authenticate to OpenSSH-Server with either public key or with YubiKey OTP + password

When you have access to your private key file, use it for quick login. When you are on the go, use your Yubikey OTP and your publickey or .

Tutorial: https://developers.yubico.com/yubico-pam/YubiKey_and_SSH_via_PAM.html

  1. Install yubico pam module:
    sudo apt-get install libpam-yubico