Skip to content

Instantly share code, notes, and snippets.

Upgrade Debian 12 (Bookworm) to Debian 13 (Trixie)

1. Preparation & Safety First

  • Backup crucial data and configs — especially /etc, /var/lib/dpkg, /var/lib/apt/extended_states, and results from:
    dpkg --get-selections '*'
    Also consider backing up user home dotfiles (~/.config, etc.).

Debian disk

Get size of all files/directories in current directory

du -h --max-depth=1

📊 Check Disk Usage and Partition Info

🔐 Intercept HTTPS Traffic

This guide walks through methods to intercept HTTPS traffic on mobile, including how to bypass certificate pinning in third-party apps using tools like Postman, HTTP Toolkit, and apk-mitm.


📦 Method 1: Capture HTTPS Traffic Using Postman's Built-in Proxy

Steps:

  1. Install Postman on your desktop.

Proxmox: Passing Host Devices into LXC Containers

This document explains common ways to pass host devices into Proxmox LXC containers. Examples use /dev/net/tun.

Applies to: Proxmox VE with LXC (cgroup v2)


Option 1: Bind-mount a Device (Classic / Manual Way)

Linux Mint network

Setup static ip

Linux Mint use netplan to manage network interface

Find current interface setting

ls -lah /etc/netplan/

Modify interface setting

VPN(Virtual Private Network)

Verify VPN

curl ifconig.io

Verify VPN for torrent

https://ipleak.net/

Proxmox VM

Create VM

  1. General

    Enter a Name for the VM

  2. OS

Proxmox post install

Correct sources to update and install packages

cat <<EOF >/etc/apt/sources.list
deb http://deb.debian.org/debian bookworm main contrib
deb http://deb.debian.org/debian bookworm-updates main contrib
deb http://security.debian.org/debian-security bookworm-security main contrib
EOF

Create Proxmox API Token

  1. Navigate to the Proxmox portal, click on Datacenter > Permissions > Groups

  2. Click the Create button. Name the group something informative, like api-ro-users

  3. Click on the Permissions > Add -> Group Permission

     Path: /
     Group: group from Step 2
     Role: PVEAuditor
    

Propagate: Checked

Home assistant as VM on Proxmox

Prepare image

Copy link of KVM file from HA website

In proxmox

wget <ADDRESS>

Expand the compressed image