Skip to content

Instantly share code, notes, and snippets.

View florian-h05's full-sized avatar

Florian Hotze florian-h05

View GitHub Profile
@florian-h05
florian-h05 / dkms-module-signing.md
Created August 22, 2024 12:16 — forked from sbueringer/dkms-module-signing.md
Make DKMS sign kernel modules on installation, with full script support and somewhat distro independent

On systems with UEFI Secure Boot enabled, recent Linux kernels will only load signed modules, so it's about time DKMS grew the capability to sign modules it's building.

These scripts are extended and scriptified variants of https://computerlinguist.org/make-dkms-sign-kernel-modules-for-secure-boot-on-ubuntu-1604.html and https://askubuntu.com/questions/760671/could-not-load-vboxdrv-after-upgrade-to-ubuntu-16-04-and-i-want-to-keep-secur/768310#768310 and add some error checking, a passphrase around your signing key, and support for compressed modules.

dkms-sign-module is a wrapper for the more generic sign-modules which can also be used outside of DKMS.

Installation

  1. Create a directory under /root, say /root/module-signing, put the three scripts below in there and make them executable: chmod u+x one-time-setup sign-modules dkms-sign-module
@florian-h05
florian-h05 / docker-iptables-fix.md
Last active September 26, 2023 17:01 — forked from pedrolamas/docker-iptables-fix.sh
Script to fix Docker iptables on Synology NAS

Instructions

  • Open DSM on your Synology NAS
  • Save the above file to your Synology NAS
  • Open Control Panel and click on Task Scheduler
  • Click Create button -> Triggered Task -> User defined script
  • Give it a name, select "root" for User and "Boot-up" for Event, tick Enabled
  • Click Task Settings, paste "bash /volume1/path to script" on the User-defined script
  • Click OK button and you're done! The script will run after every reboot and should survive any updates of DSM!