Running Uptime Kuma in podman
- Example podman build here: https://www.simpletest.nl/2021/11/03/uptime-kuma/
- Setting selinux contexts and podman hints here: https://lukas.zapletalovi.com/2020/01/deploy-photoprism-in-centos-80.html
Install tools; open firewall:
$ sudo dnf -y install podman policycoreutils-devel
$ sudo firewall-cmd --add-port=3001/tcp
- Read more about Running Uptime Kuma in podman
- Log in to post comments
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:
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=tvuser
- Read more about Fedora kiosk
- Log in to post comments
NodeRED flow to set RGB color based on who is home
NodeRED flow to set RGB color based on who is home
Manage podman with systemd
After getting the containers running you can have systemd start and stop them for you.
$ podman pull docker.io/library/httpd $ podman run -dt -p 8080:80/tcp --name httpd docker.io/library/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
- Read more about Manage podman with systemd
- Log in to post comments
Home Assistant automation to save Ring camera video to disk
- id: '1664919647127' alias: Notify when doorbell senses motion description: '' trigger: - type: motion platform: device device_id: cfad552d81098c4038ea2d4bd813b366 entity_id: binary_sensor.front_door_motion domain: binary_sensor condition: [] mode: single action: - service: notify.persistent_notification data: message: '{{ trigger.to_state.attributes.friendly_name }} opened {{now().strftime("%c")}}' title: Doorbell motion sense - service: downloader.download_file data:
Install version of PHP
- Read more about Install version of PHP
- Log in to post comments
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
- Read more about Permanently enable wake-on-lan with nmcli
- Log in to post comments
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.
Oboo Clock
- Read more about Oboo Clock
- Log in to post comments
ssh root@Oboo-Clock-69F0
http://oboo-clock-69f0/clock.html
Software repo:
http://repo.getoboo.com/oboo-clock/packages/
http://repo.getoboo.com/oboo-clock/packages/latest/
Audio
Enable Bluetooth speaker audio: gpioctl dirout-high 3
Disable Bluetooth speaker audio: gpioctl dirout-low 3
gpioctl dirout-low 41
sleep 2
gpioctl dirout-high 41
sleep 2
gpioctl dirout-low 41
sleep 2
gpioctl dirout-high 41
SSH tunnel to fairlane in WSL
- Read more about SSH tunnel to fairlane in WSL
- Log in to post comments
Open WSL and sign your private key. Then, run this command:
ssh -p 2223 -L 127.0.0.1:8080:10.19.7.10:80 www.fishparts.net
Pointing your browser at http://localhost:8080 will get you to fairlane's web page.
Workload Scheduler power users: You need rlwrap
If you use the Linux shell very much, you find its history functions very useful. You can recall previous commands very easily, just using the arrow keys.
If you use the Workload Scheduler command-line interfaces, conman and composer, you really miss the history. Sure there's the redo command, but its editing capability is limited to the last command you typed.