Skip to content

Instantly share code, notes, and snippets.

@yorickdowne
yorickdowne / friday.md
Last active May 2, 2026 04:50
Debian 13 trixie upgrade

Debian 13 "Trixie"

Caution On systems with more than one EFI partition, such as systems set up for RAID with mdadm, grub-efi only upgrades one of the EFI partitions, the one mounted to /boot/efi. This can cause failure on reboot, with the system going into BIOS or EFI shell. Discussion here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1135137
See bottom of this gist for a way to verify EFI before rebooting, and upgrading the second copy so a reboot is safe

To start, read the official release notes.

If your install fits into "vanilla Debian plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Debian 13 "trixie" from Debian 12 "bookworm" can be helpful. 3rd-party repos are handled with a find command.

# In The Name Of Allah .
# -- --- ---- -- ----- -
# Fri Jan 22 05:48:48 2021
# Written By : zer0err0r .
# ======= == = ========= =
# 3, Persisting Our SPI Ruleset .
$ nft list ruleset > spi_nftables
$ nft flush ruleset
$ nft -f spi_nftables
# In The Name Of Allah .
# -- --- ---- -- ----- -
# Fri Jan 22 05:48:48 2021
# Written By : zer0err0r .
# ======= == = ========= =
# 2, Lets Create A Basic SPI Firewall .
= We will create a new [table], then a [chain], Then define our [rules] .
= The ruleset that we will write represent a basic stateful_packet_inspection[SPI] firewall .
# In The Name Of Allah .
# -- --- ---- -- ----- -
# Fri Jan 22 05:48:48 2021
# Written By : zer0err0r .
# ======= == = ========= =
# 1, Introducing NFTables On CentOS 8 .
= Its the default NetFilter frontend in CentOS8 .
= I mean, The default firewall on CentOS8 [FirewallD] uses NFTables as a backend .
= In CentOS7 it was [Netfilter <= IPTables <= FirewallD] .
# In The Name Of Allah .
# -- --- ---- -- ----- -
# Fri Nov 13 04:40:22 2020
# Written By : zer0err0r .
# ======= == = ========= =
# 12, VirtIO Windows LAB .
# Defining variables :
vm=win1
virsh='virsh --connect qemu:///system'
# In The Name Of Allah .
# -- --- ---- -- ----- -
# Wed Nov 11 05:56:57 2020
# Written By : zer0err0r .
# ======= == = ========= =
# 11, VirtIO .
= para_virtualization VMs performance are better than full VMs .
= para_virtualization require modifying the VM from inside, Unlike full_virtualization .
= full_virtualization performance can be as fast as the para_virtualization using VirtIO drivers .
# In The Name Of Allah .
# -- --- ---- -- ----- -
# Wed Nov 11 05:56:57 2020
# Written By : zer0err0r .
# ======= == = ========= =
# 8, [virt-manager] .
= [virt-manager] is the GUI of [KVM + QEMU < Libvirt] .
= Exploring the interface, How to add new remote host .
# In The Name Of Allah .
# -- --- ---- -- ----- -
# Sun Nov 8 08:29:08 2020
# Written By : zer0err0r .
# ======= == = ========= =
# 6, Creating VMs with pools .
# First, Create a VM volume .
$ virsh vol-create-as my_pool centos1.raw 10G --format raw # raw, pool .
#This procedure setup up a container with the latest kdenlive on debian
host +
lxc launch images:ubuntu/focal/amd64 kdenlivebuild
lxc exec kdenlivebuild -- /bin/bash
apt update
apt upgrade
apt install sudo
useradd -m kdeuser --shell /bin/bash
usermod -aG sudo kdeuser
@hmidani-abdelilah
hmidani-abdelilah / install_lamp_18.sh
Created July 16, 2019 13:50 — forked from ankurk91/install_lamp_ubuntu.sh
Ubuntu 18.04 - PHP development (php 7.2, MySQL 5.7, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 18.04 dev Server
# Run like - bash install_lamp.sh
# Script should auto terminate on errors
echo -e "\e[96m Adding PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/apache2