Skip to content

Instantly share code, notes, and snippets.

View hmidani-abdelilah's full-sized avatar

hmidani abdelilah hmidani-abdelilah

View GitHub Profile
@yorickdowne
yorickdowne / friday.md
Last active May 2, 2025 23:27
Debian 13 trixie upgrade

Debian 13

This is a placeholder for instructions when Debian 13 is released in August 2025

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.

Note upgrade is only supported from Debian 12 to Debian 13. If you are on Debian 11, upgrade to Debian 12 first. Then once on Debian 12, you can upgrade to Debian 13.

# 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