From e8cec7a30fa30e74d4e56477a16ce35e403c7ef3 Mon Sep 17 00:00:00 2001 From: Linus Nuber Date: Fri, 20 Nov 2026 22:08:42 +0100 Subject: [PATCH] Initial --- allow-flatpak-bundle-install.howto | 15 +++ btrfs/snapshot-ro-rw.howto | 1 + nf-5.1.json | 141 +++++++++++++++++++++++++++++ pip3-python.howto | 5 + qemu/start-bootable-device.howto | 8 ++ rpm-ostree-cheatsheet.html | 47 ++++++++++ vm-x-resize.sh | 8 ++ 7 files changed, 225 insertions(+) create mode 100644 allow-flatpak-bundle-install.howto create mode 100644 btrfs/snapshot-ro-rw.howto create mode 100644 nf-5.1.json create mode 100644 pip3-python.howto create mode 100644 qemu/start-bootable-device.howto create mode 100644 rpm-ostree-cheatsheet.html create mode 100644 vm-x-resize.sh diff --git a/allow-flatpak-bundle-install.howto b/allow-flatpak-bundle-install.howto new file mode 100644 index 0000000..950ab83 --- /dev/null +++ b/allow-flatpak-bundle-install.howto @@ -0,0 +1,15 @@ +# +# die folgende policy kit regel erlaubt den gruppenmitgliedern +# von wheel das passwortlose installieren eines flatpak +# bundle aka. datei im ggs. zur installation von einem remote +# +sudo tee /etc/polkit-1/rules.d/99-flatpak-bundle.rules << 'EOF' +polkit.addRule(function(action, subject) { + if (action.id == "org.freedesktop.Flatpak.install-bundle" && + subject.active == true && subject.local == true && + subject.isInGroup("wheel")) { + return polkit.Result.YES; + } + return polkit.Result.NOT_HANDLED; +}); +EOF diff --git a/btrfs/snapshot-ro-rw.howto b/btrfs/snapshot-ro-rw.howto new file mode 100644 index 0000000..2961507 --- /dev/null +++ b/btrfs/snapshot-ro-rw.howto @@ -0,0 +1 @@ +btrfs property set -ts /path/to/snapshot ro false | true diff --git a/nf-5.1.json b/nf-5.1.json new file mode 100644 index 0000000..a352f8e --- /dev/null +++ b/nf-5.1.json @@ -0,0 +1,141 @@ +{ + "PresetList": [ + { + "AlignAVStart": false, + "AudioAutomaticNamingBehavior": "unnamed", + "AudioCopyMask": [ + "copy:mp2", + "copy:mp3", + "copy:aac", + "copy:ac3", + "copy:dts", + "copy:dtshd", + "copy:eac3", + "copy:alac", + "copy:flac", + "copy:truehd", + "copy:vorbis", + "copy:opus" + ], + "AudioEncoderFallback": "av_aac", + "AudioLanguageList": [ + "any" + ], + "AudioList": [ + { + "AudioBitrate": 384, + "AudioCompressionLevel": -1.0, + "AudioDitherMethod": "auto", + "AudioEncoder": "copy", + "AudioMixdown": "5point1", + "AudioNormalizeMixLevel": false, + "AudioSamplerate": "auto", + "AudioTrackDRCSlider": 0.0, + "AudioTrackGainSlider": 0.0, + "AudioTrackQuality": 3.0, + "AudioTrackQualityEnable": false + } + ], + "AudioSecondaryEncoderMode": true, + "AudioTrackNamePassthru": true, + "AudioTrackSelectionBehavior": "first", + "ChapterMarkers": true, + "ChildrenArray": [], + "Default": true, + "FileFormat": "av_mkv", + "Folder": false, + "FolderOpen": false, + "InlineParameterSets": false, + "MetadataPassthru": true, + "Mp4iPodCompatible": false, + "Optimize": false, + "PictureAllowUpscaling": false, + "PictureAutoCrop": true, + "PictureBottomCrop": 120, + "PictureChromaSmoothCustom": "", + "PictureChromaSmoothPreset": "off", + "PictureChromaSmoothTune": "none", + "PictureColorspaceCustom": "", + "PictureColorspacePreset": "off", + "PictureCombDetectCustom": "", + "PictureCombDetectPreset": "off", + "PictureCropMode": 1, + "PictureDARWidth": 1920, + "PictureDeblockCustom": "strength=strong:thresh=20:blocksize=8", + "PictureDeblockPreset": "off", + "PictureDeblockTune": "medium", + "PictureDeinterlaceCustom": "", + "PictureDeinterlaceFilter": "off", + "PictureDeinterlacePreset": "", + "PictureDenoiseCustom": "", + "PictureDenoiseFilter": "off", + "PictureDenoisePreset": "", + "PictureDenoiseTune": "none", + "PictureDetelecine": "off", + "PictureDetelecineCustom": "", + "PictureForceHeight": 0, + "PictureForceWidth": 0, + "PictureHeight": 1080, + "PictureItuPAR": false, + "PictureKeepRatio": true, + "PictureLeftCrop": 0, + "PictureModulus": 2, + "PicturePAR": "auto", + "PicturePARHeight": 1, + "PicturePARWidth": 1, + "PicturePadBottom": 0, + "PicturePadColor": "black", + "PicturePadLeft": 0, + "PicturePadMode": "none", + "PicturePadRight": 0, + "PicturePadTop": 0, + "PictureRightCrop": 0, + "PictureRotate": "angle=0:hflip=0", + "PictureSharpenCustom": "", + "PictureSharpenFilter": "off", + "PictureSharpenPreset": "", + "PictureSharpenTune": "", + "PictureTopCrop": 136, + "PictureUseMaximumSize": true, + "PictureWidth": 1920, + "PresetDescription": "H.265 video (up to 1080p30) and AAC passthrough audio, in an MKV container.", + "PresetDisabled": false, + "PresetName": "nf-5.1", + "SubtitleAddCC": false, + "SubtitleAddForeignAudioSearch": true, + "SubtitleAddForeignAudioSubtitle": false, + "SubtitleBurnBDSub": true, + "SubtitleBurnBehavior": "foreign", + "SubtitleBurnDVDSub": true, + "SubtitleLanguageList": [], + "SubtitleTrackNamePassthru": true, + "SubtitleTrackSelectionBehavior": "none", + "Type": 1, + "UsesPictureFilters": true, + "VideoAvgBitrate": 2500, + "VideoColorMatrixCodeOverride": 0, + "VideoColorRange": "limited", + "VideoEncoder": "x265", + "VideoFramerate": "auto", + "VideoFramerateMode": "cfr", + "VideoGrayScale": false, + "VideoHWDecode": 0, + "VideoLevel": "auto", + "VideoMultiPass": true, + "VideoOptionExtra": "", + "VideoPasshtruHDRDynamicMetadata": "all", + "VideoPreset": "medium", + "VideoProfile": "auto", + "VideoQualitySlider": 24.0, + "VideoQualityType": 2, + "VideoScaler": "swscale", + "VideoTune": "", + "VideoTurboMultiPass": false, + "x264Option": "", + "x264UseAdvancedOptions": false + } + ], + "VersionMajor": 72, + "VersionMicro": 0, + "VersionMinor": 0 +} \ No newline at end of file diff --git a/pip3-python.howto b/pip3-python.howto new file mode 100644 index 0000000..d46abd8 --- /dev/null +++ b/pip3-python.howto @@ -0,0 +1,5 @@ +# Verwende uv / uvx als Ersatz für nicht installiertes pip / pip3 +# Als root: +curl -LsSf https://astral.sh/uv/install.sh | sh +uv tool install btrfs-backup +ln -s /root/.local/bin/btrfs-backup /usr/local/sbin diff --git a/qemu/start-bootable-device.howto b/qemu/start-bootable-device.howto new file mode 100644 index 0000000..e547b9d --- /dev/null +++ b/qemu/start-bootable-device.howto @@ -0,0 +1,8 @@ +# BIOS +sudo qemu-system-x86_64 -enable-kvm -rtc base=localtime -m 2G -vga virtio -drive file=/dev/,readonly=off,cache=none,format=raw,if=virtio + +# UEFI +sudo qemu-system-x86_64 -bios /usr/share/OVMF/OVMF.fd -enable-kvm -rtc base=localtime -m 2G -vga virtio -drive file=/dev/,readonly=off,cache=none,format=raw,if=virtio + +# VNC +vncviewer localhost:5900 diff --git a/rpm-ostree-cheatsheet.html b/rpm-ostree-cheatsheet.html new file mode 100644 index 0000000..49a6d41 --- /dev/null +++ b/rpm-ostree-cheatsheet.html @@ -0,0 +1,47 @@ + + + + + + RPM-Ostree Befehle für Fedora 45 Kinoite + + + +

RPM-Ostree Paketverwaltung: Fedora 45 Kinoite

+

Da dnf auf Fedora Atomic Systemen (wie Kinoite) standardmäßig nicht auf dem Host verfügbar ist, werden folgende Befehle zur Suche und Verwaltung verwendet:

+ +

1. Suche nach Paketen (Empfohlen)

+

Seit Version 2023.6 unterstützt rpm-ostree die Suchfunktion direkt auf dem Host.

+
+ rpm-ostree search <paketname> +
+

Beispiel: Suche nach dem Editor nano.

+ +

2. Alternative: Suche via Toolbox

+

Falls die Version veraltet ist oder eine detaillierte dnf-Suche benötigt wird:

+
+ toolbox run dnf search <paketname> +
+ +

3. Installation (Layering)

+

Nach der Suche kann ein Paket als Overlay installiert werden:

+
+ rpm-ostree install <paketname> +
+

Hinweis: Ein Neustart ist für die Aktivierung der installierten Pakete erforderlich.

+ +

4. Status und Überprüfung

+

Auflisten der installierten Overlay-Pakete und Systemstatus:

+
+ rpm-ostree status +
+
+ rpm -qa | grep <paketname> +
+ + diff --git a/vm-x-resize.sh b/vm-x-resize.sh new file mode 100644 index 0000000..3c285b9 --- /dev/null +++ b/vm-x-resize.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Aufrufen beim Einloggen in Debian basierten VMs (z. Bsp. über die Sitzungsverwaltung) + +OUT=$(xrandr --query | awk '/ connected/{print $1; exit}') +while true; do + sleep 0.5 + xrandr --output "$OUT" --auto 2>/dev/null +done