- Open the Terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Re-run the script as root if not already running as root | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "This script requires root. Re-running with sudo..." | |
| exec sudo "$0" "$@" | |
| fi | |
| free_mem="$(free | grep 'Mem:' | awk '{print $7}')" | |
| used_swap="$(free | grep 'Swap:' | awk '{print $3}')" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # activate `appimage-run` first: https://wiki.nixos.org/wiki/Appimage | |
| appimage=<your_appimage_path> # set your executable path | |
| QT_PLUGIN_PATH= appimage-run "$appimage" # RUN IT | |
| # SOURCE: https://discourse.nixos.org/t/appimage-run-fails-loading-qt-platform-plugin-xcb/29293 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Re-run the script as root if not already running as root | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "This script requires root. Re-running with sudo..." | |
| exec sudo "$0" "$@" | |
| fi | |
| ID="0000:00:14.0" # your controller id; look for ID with `sudo ls /sys/bus/pci/drivers/xhci_hcd/` (SUDO REQUIRED) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| echo "Disabling touchpad..." | |
| sudo modprobe -r psmouse | |
| echo "Enabling touchpad..." | |
| sudo modprobe psmouse | |
| echo "Should work now. Otherwise, check 'dmesg' or reboot" | |
| # SOURCE: https://askubuntu.com/q/671910 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # start `default` virtual network interface | |
| sudo virsh net-start default | |
| # SOURCE: https://forum.level1techs.com/t/solved-qemu-network-default-is-not-active-booting-from-hard-disk/194698 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Check if the script is running with root privileges | |
| if [ $(id -u) != 0 ]; then | |
| echo "This script must be run as root." | |
| exit 1 | |
| fi | |
| # Check if the teamviewerd process exists and kill it if it does | |
| if pgrep -x teamviewerd > /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Put this file into ~/.config/autostart | |
| [Desktop Entry] | |
| Name=Kill AnyDesk | |
| GenericName=Kill AnyDesk | |
| Comment=Simple script to kill AnyDesk service at login | |
| Exec=killall anydesk # Ensure `killall` is available on your OS | |
| Terminal=false | |
| Type=Application | |
| Icon=software-update-urgent-symbolic # Adwaita does not provide AD icon | |
| Categories=GNOME;GTK;Utility |
AI only formatted this doc and added explanations where it knew. I confirm all the steps here were actually taken by me to achieve the desired result🙂
This guide walks you through setting up an unprivileged LXC container on Debian 12 to run Docker, using systemd for proper cgroup delegation.
- Debian 12 (Bookworm) host system
After numerous fails and hours of scouting the web, I finally resolved all the issues related with Clonezilla on modern hardware. You may call me dumb for not just pressing "K" in the scrambled Clonezilla GRUB screen to enable kernel modesetting but whatever idc I found that out only while inspecting GRUB config y'know. 🙂
For more info why that may be relevant in your case skip here
Download the latest version (here I used Debian stable) → official link