Skip to content

Instantly share code, notes, and snippets.

View k3karthic's full-sized avatar
💭
I may be slow to respond.

Karthic Kumaran k3karthic

💭
I may be slow to respond.
View GitHub Profile
@k3karthic
k3karthic / notes.md
Created December 20, 2025 07:47
Fedora Silverblue - Move Wifi Passwords to System Config

During a router reboot, it's possible for the system to connect to the router before it's ready to process connections. This causes the system to get abrupt failures which make it think that the password stored in the keyring is incorrect.

The following commands move the password to an unencrypted system configuration file which allows the system to re-connect without triggering a confirmation dialog.

$ nmcli connection modify "YourWiFiName" connection.permissions ""
$ nmcli connection modify "YourWiFiName" 802-11-wireless-security.psk-flags 0
$ nmcli connection up "YourWiFiName"
@k3karthic
k3karthic / update-oci-images.sh
Last active December 20, 2025 08:07
Fedora Silverblue - Update toolbox base images
#!/bin/bash
set -euo pipefail
# --- CONFIGURATION ---
# Add container names you want to skip, separated by a pipe |
# Example: "steam|web-browser|testing"
IGNORE_LIST="steam"
# 1. Define all update logic as a single function
# This function will be called by xargs for each toolbox
@k3karthic
k3karthic / notes.md
Created October 20, 2025 22:23
Fedora Silverblue - ReadyMedia

Step 1 : Create toolbox container for Syncthing

toolbox create -d ubuntu --release 24.04 -c syncthing
toolbox enter syncthing
~/bin/run-container-playbooks.sh
exit

Step 2 : Create systemctl service

@k3karthic
k3karthic / notes.md
Last active October 20, 2025 13:56
Fedora Budgie Atomic - Sunshine

Install

Step 1: Add copr repo

sudo curl -L -o /etc/yum.repos.d/lizardbyte-stable-fedora-42.repo https://copr.fedorainfracloud.org/coprs/lizardbyte/stable/repo/fedora-42/lizardbyte-stable-fedora-42.repo

Step 2: Refresh

@k3karthic
k3karthic / run-container-playbooks.sh
Last active October 20, 2025 22:07
Fedora Silverblue - Run Container Ansible Playbooks
#!/usr/bin/env bash
# Exit immediately if a command exits with a non-zero status.
set -eo pipefail
# --- 1. Verify we are inside a Toolbox container ---
echo "▶️ Checking environment..."
if [ ! -f /run/.containerenv ]; then
echo "❌ Error: This script must be run inside a Toolbox container." >&2
exit 1
@k3karthic
k3karthic / notes.md
Last active October 20, 2025 22:21
Fedora Silverblue - Syncthing

Step 1 : Create toolbox container for Syncthing

toolbox create -d ubuntu --release 24.04 -c syncthing
toolbox enter syncthing
~/bin/run-container-playbooks.sh
exit

Step 2 : Create systemctl service

@k3karthic
k3karthic / notes.md
Last active October 2, 2025 17:50
Fedora Silverblue - VM
@k3karthic
k3karthic / update-toolboxes.sh
Last active October 2, 2025 11:19
Fedora Silverblue - Update all toolboxes
#!/bin/bash
#
# Script to update all packages in all available Toolbox containers.
# It automatically detects the distro (Fedora, Debian, Ubuntu, Arch, etc.)
# and uses the correct package manager.
# Exit immediately if a command exits with a non-zero status.
set -e
echo "🔍 Starting update process for all Toolbox containers..."
@k3karthic
k3karthic / notes.md
Last active October 15, 2025 13:34
Fedora Silverblue - DNS
@k3karthic
k3karthic / notes.md
Last active October 15, 2025 13:34
Fedora Silverblue - LUKS with TPM + SSD Trim