Install zfs on Rocky Linux

From a fresh Rocky Linux install, need to add some repos.

# dnf install epel-release -y

Install the repo instructions for getting zfs

dnf install$(rpm --eval "%{dist}").noarch.rpm

Installing zfs pulls in all the kernel modding requirements like kernel-devel and gcc

dnf install zfs

Load the zfs module

/sbin/modprobe zfs

Post Fedora install process

After installing Fedora, here are some things to add.

Edit /etc/dnf/dnf.conf and add the following lines:


Then run the dnf upgrade:

sudo dnf -y upgrade --refresh

Reboot after refreshing.

Update the firmware

sudo fwupdmgr get-devices
sudo fwupdmgr refresh --force
sudo fwupdmgr get-updates
sudo fwupdmgr update

Fedora kiosk

Install gnome kiosk (gdm, zenity, and firefox should already be installed).

sudo dnf install -y gnome-kiosk-script-session

Create the user and give them a password.

sudo useradd -c "TV user" -m tvuser

sudo passwd tvuser

Modify the GDM configuration to automatically login the user on startup. Edit /etc/gdm/custom.conf to add these:


Manage podman with systemd

After getting the containers running you can have systemd start and stop them for you.

$ podman pull

$ podman run -dt -p 8080:80/tcp --name httpd

Now you can create systemd files:

$ cd $HOME/.config/systemd/user

$ podman generate systemd --new --files --name httpd

The podman generate command creates a systemd service file named container-httpd.service. Reload the daemon to read the new file:

$ systemctl --user daemon-reload

Stop the running container

Home Assistant automation to save Ring camera video to disk

- id: '1664919647127'
  alias: Notify when doorbell senses motion
  description: ''
  - type: motion
    platform: device
    device_id: cfad552d81098c4038ea2d4bd813b366
    entity_id: binary_sensor.front_door_motion
    domain: binary_sensor
  condition: []
  mode: single
  - service: notify.persistent_notification
      message: '{{ trigger.to_state.attributes.friendly_name }} opened {{now().strftime("%c")}}'
      title: Doorbell motion sense
  - service: downloader.download_file

Install version of PHP

dnf module list php
dnf module reset php
dnf remove php php-fpm
dnf remove php\*
dnf module enable php:remi-8.1
dnf refresh
dnf install php php-fpm composer php-bcmath php-cli php-common php-fedora-autoloader php-gd php-intl php-mbstring php-mysqlnd php-opcache php-pdo php-pecl-imagick-im7 php-pecl-zip php-process php-sodium php-tcpdf php-tidy php-xml phpMyAdmin

Permanently enable wake-on-lan with nmcli

First, check that the interface supports WoL:

sudo ethtool enp4s0 |grep Wake
    Supports Wake-on: g
    Wake-on: d

Supports Wake-on: g is required for WoL to work. You can change the setting with ethtool or NetworkManager. When you use ethtool, the change does not survive a reboot.

sudo ethtool -s enp4s0 wol g

By using Network Manager nmcli commands, the change persists reboots.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer