Skip to content

Instantly share code, notes, and snippets.

View mikaeldui's full-sized avatar
🏢
Working on something

Mikael Dúi Bolinder mikaeldui

🏢
Working on something
View GitHub Profile
@mikaeldui
mikaeldui / trilium.container
Last active May 3, 2025 15:08
Trilium Quadlet
# /etc/containers/systemd/trilium.container
[Unit]
Description=Trilium Container
[Container]
ContainerName=trilium
Image=docker.io/zadam/trilium:latest
Volume=/home/USERNAME/trilium-data:/home/node/trilium-data:z
PublishPort=8080:8080
AutoUpdate=registry
@mikaeldui
mikaeldui / Fedora 42 Magnet Links.md
Created April 22, 2025 22:14
Fedora 42 Torrents Magnet Links
@mikaeldui
mikaeldui / Fedora Workstation to Server.md
Created April 22, 2025 12:58
Convert Fedora Workstation to Fedora Server

Convert Fedora Workstation to Fedora Server

So, you installed Fedora Workstation on your server and ended up not using the desktop environment after all and want to convert to Fedora Server without doing a re-installation? It's very easy to do:

  1. Boot to console: systemctl set-default multi-user.target
  2. Change identity: dnf swap fedora-release-identity-workstation.noarch fedora-release-identity-server.noarch

It might take an update of the kernel before the server calls itself "Fedora Server".

While it is possible to completely remove a desktop environment, things could break:

@mikaeldui
mikaeldui / PeerBanHelper Quadlet.md
Last active April 22, 2025 17:46
PeerBanHelper Podman Quadlet

PeerBanHelper as Quadlet

Quadlets are available since Podman 4.4, and offer an easy way to manage container and to keep them updated!

  1. Check podman --version.
  2. Create /etc/containers/systemd/peerbanhelper.container with the content below:
[Unit]
Description=PeerBanHelper Container
@mikaeldui
mikaeldui / media-server1.md
Last active April 22, 2025 21:53
Systemd .mount for SSHFS

Mounting SSHFS (SFTP) using systemd

Why use fstab when there's systemd?

# /etc/systemd/system/media-server1.mount
[Unit]
Description=Mount unit for Server1

[Mount]
What[email protected]:/
@mikaeldui
mikaeldui / Fedora Intel Optane.md
Last active April 23, 2025 00:06 — forked from gabrieljcs/lvm-cache-fedora.md
Fedora LVM Cache for Intel Optane SSD

Fedora LVM Cache for Intel Optane

Did you know that LVM has built-in support for Intel Optane? Neither did I. It's a manual configuration though and it doesn't seem to be easy to do with BTRFS, so I simply went for EXT4.

Why would you want to enable the Optane cache? It supports super low latency no matter how much you use it while the big NVMe SSD is going to get slower the busier it is.

Note: I'm talking about laptop NVMe SSDs with built-in Optane cache. Mine is a Intel® Optane™ Memory H10 32GB + Intel® QLC 3D NAND SSD 512GB, M.2 80mm PCIe 3.0, which came pre-installed in my HP Spectre x360.

To start:

  1. Enter the UEFI and turn on ACHI for the SSD (I don't know if I did it as I forgot my UEFI password)
@mikaeldui
mikaeldui / Globalping Probe Quadlet.md
Last active April 22, 2025 17:47
Globalping Probe Podman Quadlet

Globalping Probe as Quadlet

Quadlets are available since Podman 4.4, and offer an easy way to manage container and to keep them updated!

  1. Check podman --version.
  2. Create /etc/containers/systemd/globalping-probe.container with the content below:
# Equivalent to sudo podman run -d --cap-add=NET_RAW --network host --restart=always \
# --name globalping-probe globalping/globalping-probe
[Unit]
@mikaeldui
mikaeldui / Proton Mail WDK on CF Workers.md
Last active April 22, 2025 21:39
Setting up Web Key Directory (WKD) for Proton Mail using Cloudflare Workers

Web Key Directory for Proton Mail using Cloudflare Workers

Web Key Directory is a way for non-Proton users find your keys and encrypt the messages sent to you. Proton doesn't offer this for custom domains out-of-the-box, but you can proxy requests from your domain to Proton.

  1. Create a Cloudflare Worker
  2. Put this code in the Worker:
export default {
 async fetch(request, env, ctx) {
@mikaeldui
mikaeldui / Proton VPN IPv6 Manual Setup.md
Last active May 8, 2025 01:10
Proton VPN IPv6 Manual Setup

Proton VPN IPv6 Manual Setup

Over 80% of the servers support IPv6 but only the Linux app and the browser extension support it at the moment.

The Linux app supports IPv6 over the VPN but still connects to the VPN server using IPv4.

It's possible to make changes to the WireGuard configs that you can get from https://account.protonvpn.com/downloads to enable IPv6.

An easy way to test if a server supports IPv6 is to use the browser extension and then go to myip.wtf or test-ipv6.com.

@mikaeldui
mikaeldui / macOS-F41.md
Last active December 14, 2024 12:53
Setting up macOS on Fedora F41 using Boxes

Summary

I need macOS to test apps for macOS. I'm running Fedora Workstation F41 (latest version while writing this). I already have a Ubuntu and a Windows VM in Gnome Boxes.

Setup

Tried to follow this guide: https://github.com/kholia/OSX-KVM Some steps in the guide could be skipped for me.

  • Clone the repository. Files from this repository are used in the following steps.

cd ~