Skip to content

Instantly share code, notes, and snippets.

@timsonner
timsonner / wslc-arch-rdp-guide.md
Created August 7, 2026 04:51
Install guide for running a full Arch Linux XFCE desktop inside a WSL container, accessed via RDP from Windows.

Arch XFCE Desktop over RDP with WSL Containers (wslc)

Install guide for running a full Arch Linux XFCE desktop inside a WSL container, accessed via RDP from Windows.

Adapted from the Podman version of this guide.


Prerequisites

@timsonner
timsonner / podman-arch-rdp-guide.md
Last active July 28, 2026 05:28
Arch desktop over RDP with Podman

Arch XFCE Desktop over RDP with Podman
Install guide


0. Prepare the host

You need Podman (to run the container) and an RDP client (to connect to it).

sudo apt update
@timsonner
timsonner / cockpit-install.md
Created July 25, 2026 08:41
Cockpit install

Cockpit — VM & Podman support

Quick install reference for this host (Ubuntu).

Install

Core + Virtual Machines (libvirt)

sudo apt update
@timsonner
timsonner / set-zfs-arc.md
Last active July 19, 2026 22:05
Cap ZFS ARC to free RAM under VMs / high memory pressure

One-liners to limit ZFS ARC (live + permanent) so it doesn’t eat most of your RAM next to KVM/libvirt guests. Defaults leave arc_max uncapped; 4–8 GB is a good desktop/VM ceiling.

Live:

# 8 GB ZFS ARC Cache
echo $((8 * 1024 * 1024 * 1024)) | sudo tee /sys/module/zfs/parameters/zfs_arc_max
# 4 GB ZFS ARC Cache
@timsonner
timsonner / debloat-ubuntu.sh
Last active July 19, 2026 21:14
Debloat Ubuntu 26.04: Remove Snaps (App Store), MOTD, Software Updater, Help, and Ubuntu Pro / ESM messages in apt
#!/usr/bin/env bash
# --- 1. Disable MOTD News ---
systemctl stop motd-news.timer motd-news.service
systemctl disable motd-news.timer
chmod -x /etc/update-motd.d/50-motd-news
if [ -f /etc/default/motd-news ]; then
sed -i 's/^ENABLED=1/ENABLED=0/' /etc/default/motd-news
fi
@timsonner
timsonner / fix-nvidia.sh
Created July 19, 2026 11:55
fix broken nvidia install ubuntu 26.04
#!/usr/bin/env bash
# Fix NVIDIA RTX 3050 Mobile on Ubuntu 26.04 (XPS 15 9520)
# Root causes found:
# 1) GRUB has nomodeset -> disables KMS (i915 + nvidia-drm)
# 2) DKMS nvidia modules signed with a private key obscure Canonical-signed modules
# 3) Secure Boot is ON and MOK only has Canonical CA -> DKMS modules cannot load
# 4) Partial server/headless stack installed instead of full desktop driver
set -euo pipefail
if [[ ${EUID:-$(id -u)} -ne 0 ]]; then
@timsonner
timsonner / one-liners.md
Created June 27, 2026 17:43
Taken from my GitHub profile page
@timsonner
timsonner / python-module-commands.md
Created June 13, 2026 22:41
Python module commands

Python module commands

1. Installed packages

Show what pip has installed in the current environment:

python3 -m pip list

2. Details / dependencies for an installed package

@timsonner
timsonner / pangolin-mobile-tunnel-fix.ps1
Last active June 6, 2026 04:58
Hack to allow Pangolin tunnel over mobile hotspot on Windows.
# Fixes Pangolin DNS issues with some mobile hotspots where they don't allow 1.1.1.1 or others and force device to use 172.20.10.1:53
# This patches olm config file on the fly to allow connection. Allows Pangolin tunnel over personal hotspot. uWu.
# Run in elevated PowerShell terminal
# Get the active network's DNS server IP (excluding loopback and Pangolin itself)
$dnsServers = @(Get-DnsClientServerAddress -AddressFamily IPv4 |
Where-Object { $_.InterfaceAlias -ne "Pangolin" -and $_.InterfaceAlias -notlike "Loopback*" -and $_.ServerAddresses.Count -gt 0 } |
Select-Object -ExpandProperty ServerAddresses)
if ($dnsServers.Count -eq 0) {
@timsonner
timsonner / hermes-sound-through-ssh-guide.md
Created June 1, 2026 08:12
How to get voice recording working for Hermes agent over SSH from Windows PowerShell session to remote Linux host

Audio Setup Guide: Remote Sound Routing (Windows & Linux)

This guide shows you how to route sound from your Windows client to your remote Linux server using PulseAudio and SSH tunneling. This enables your CLI agent or remote application (like Hermes) to record and play sound directly.


1. Client-Side Setup (Windows)

  1. Download PulseAudio for Windows:
  • Download the latest community-maintained build (e.g., pulseaudio-win32 by pgaskin).