Skip to content

Instantly share code, notes, and snippets.

@GuiltyDoggy
GuiltyDoggy / 50-cloud-init.yaml
Created November 2, 2021 01:18
Pi Zero 2 W - Ubuntu Server headless wifi setup - modify /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
eth0:
dhcp4: true
optional: true
@GuiltyDoggy
GuiltyDoggy / config.txt
Created October 8, 2021 17:36
Raspberry Pi 4 config.txt
[pi4]
max_framebuffers=2
[all]
kernel=vmlinuz
cmdline=cmdline.txt
initramfs initrd.img followkernel
# Enable the audio output, I2C and SPI interfaces on the GPIO header
dtparam=audio=on
@GuiltyDoggy
GuiltyDoggy / Firefox Override.txt
Last active May 24, 2022 12:16
Enable Wayland on Firefox (flatpak)
flatpak override --user --socket=wayland --env=MOZ_ENABLE_WAYLAND=1 org.mozilla.firefox
@GuiltyDoggy
GuiltyDoggy / set_dvorak.sh
Created September 30, 2021 13:42
Change keyboard layout at login for KDE Plasma Wayland
#! /bin/bash
# Refer to https://www.reddit.com/r/linuxquestions/comments/pyjh19/keyboard_layout_problem_kde_plasma_steam/
# Layout is 0-indexed, so Layout 1 is the second layout configured in KDE Settings keyboard layout list
sleep 5
qdbus org.kde.keyboard /Layouts setLayout 1
@GuiltyDoggy
GuiltyDoggy / create_package_list.sh
Created September 30, 2021 13:39
Scripts to set up environment within a Fedora Toolbox (Silverblue/Kinoite)
#! /bin/bash
# Run this inside an existing Toolbox container to retrieve list of manually installed packages. Edit list to contain what you want installed by default in the new Toolbox.
dnf repoquery --userinstalled --disableexcludes=all --queryformat "%{name}" > packages.list
@GuiltyDoggy
GuiltyDoggy / smb.conf
Last active September 22, 2021 00:12
smb.conf on Raspberry Pi 4 running Ubuntu Server
[sambashare]
comment = Samba on Ubuntu
path = /home/username/sambashare
read only = no
browsable = yes
@GuiltyDoggy
GuiltyDoggy / afp.conf
Last active October 28, 2021 13:52
afp.conf for Raspberry Pi 4 running Ubuntu Server
;
; Netatalk 3.x configuration file
; http://netatalk.sourceforge.net/3.0/htmldocs/afp.conf.5.html
;
[Global]
; Global server settings
log file = /var/log/netatalk.log
; Raspberry Pi OS netatalk package doesn't come with uams_dhx.so, which is required for OS 9. Using Ubuntu Server's package.
uam list = uams_dhx.so,uams_dhx2.so