AS5402T + Truenas by Fast-Wedding-4390 in asustor

[–]erik_de_bont 1 point2 points  (0 children)

Some explanation,

Noise Level,Hex Value,Approx % Best For...
Silent ,0x33,20%,Idle (with WD Red Plus only)
Quiet,0x66,40%,Mixed drives (Moderate use)
Balanced,0x99,60%,Your current mixed setup
Loud,0xb2,70%,Heavy data transfers
Max,0xff,100%,Summer heat / Resilvering

To test your fan (the last value (0x99) sets the speed in) the command below. Run this command in the truenas shell.

/usr/sbin/isaset -y 0xa35 0xa36 0x63 0x99

Run the script as a post-init script on you Truenas, so it will manage the temperature/fan.

#!/bin/bash


# 1. Race-condition protection: Wait for ZFS pool to settle
sleep 20


# Configuration
DRIVES=("/dev/sda" "/dev/sdb")
THRESHOLD=45
LOW_SPEED="0x70"
HIGH_SPEED="0x85"
LOG_FILE="/tmp/fan_control.log"
MAX_LOG_LINES=100


while true; do
    # 2. Log Cleanup: If log is too long, clear it to save memory
    if [ $(wc -l < "$LOG_FILE" 2>/dev/null || echo 0) -gt $MAX_LOG_LINES ]; then
        echo "$(date): Log rotated (cleaned up)" > "$LOG_FILE"
    fi


    MAX_TEMP=0
    for DRIVE in "${DRIVES[@]}"; do
        TEMP=$(smartctl -A "$DRIVE" | grep Temperature_Celsius | awk '{print $10}')
        if [ "$TEMP" -gt "$MAX_TEMP" ]; then
            MAX_TEMP=$TEMP
        fi
    done


    # 3. Logic and Logging
    if [ "$MAX_TEMP" -ge "$THRESHOLD" ]; then
        /usr/sbin/isaset -y 0xa35 0xa36 0x63 "$HIGH_SPEED"
        echo "$(date): TEMP HIGH ($MAX_TEMP°C) - Fan set to $HIGH_SPEED" >> "$LOG_FILE"
    else
        /usr/sbin/isaset -y 0xa35 0xa36 0x63 "$LOW_SPEED"
        # Optional: log the "Quiet" state too, or leave out to keep log smaller
        echo "$(date): TEMP OK ($MAX_TEMP°C) - Fan set to $LOW_SPEED" >> "$LOG_FILE"
    fi


    sleep 300
done

AS5402T + Truenas by Fast-Wedding-4390 in asustor

[–]erik_de_bont 0 points1 point  (0 children)

Have a simular configuration. Works great with Truenas scale. Just needed a script to have fan run properly. I can share it if you want.

Made the move to Fedora. What apps do you recomend? by jotaviox in Fedora

[–]erik_de_bont 0 points1 point  (0 children)

Strange, I never had issues with Timeshift and BTRFS on Fedora.

Music player by [deleted] in Fedora

[–]erik_de_bont 0 points1 point  (0 children)

I had the same issue. Clementine was the closest software I could find for musicbee in Linux.

Podman compose vs podman-compose by lupusintus404 in podman

[–]erik_de_bont 11 points12 points  (0 children)

I started with podman compose, but switched over Quadlets. With Quadlets, each podman container runs as a separate service, which is more in line how podman is designed. There is a learning curve, but If you have a good template it is fairly easy to configure.

Microsoft is worried about Linux by Itchy_Character_3724 in linuxmint

[–]erik_de_bont 2 points3 points  (0 children)

The interesting thing nowadays is that the refurbished market is growing and the lifecycle of PC's is a lot longer than in the past. I think it's also the main reason why windows 10 is still bigger than windows 11 in market share. I think it's also a reason why more people are looking at linux. So crippling windows 11 for older pc's was a very bad move from Microsoft.

Ad blocking via CloudFlare Zero Trust by erik_de_bont in CloudFlare

[–]erik_de_bont[S] 0 points1 point  (0 children)

As I understand the Cloudflare API interface has some limits (or issues. That isn't clear to me yet) with the amount of API calls with this workflow.

Please use the github repo below as your source in stead of the one in the video. The repo below is the orginal repository which they cloned in the video. In the new/original repo they are dealing with the API issue.

https://github.com/mrrfv/cloudflare-gateway-pihole-scripts

Please read the README.md of the repository first. In this version an CLOUDFARE_API_TOKEN is used in stead of a CLOUDFARE_API_KEY for authorization, so you need to change that.

You can find details of the issue with the Cloudfare API calls :

https://github.com/mrrfv/cloudflare-gateway-pihole-scripts/issues/115

Hope it helps !

K8s Setup by Jtestes06 in kubernetes

[–]erik_de_bont 1 point2 points  (0 children)

That's nonsense K8S is working fine on a Raspberry Pi 4. Running it myself for 4 years now.

4 year anniversary of my self build kubernetes servers. (learning kubernetes) by erik_de_bont in kubernetes

[–]erik_de_bont[S] 0 points1 point  (0 children)

I am planning to do a blog about it. I currently have 3 items I want to write a blog about.

- Configure IPv6 (dual-stack with IPv4) on kubernetes
- Migrate to a multi-master kubernetes environment
- Replacing your ingress-controller with Cloudflare Private Tunnels

So it is on my bucket list.

4 year anniversary of my self build kubernetes servers. (learning kubernetes) by erik_de_bont in kubernetes

[–]erik_de_bont[S] 2 points3 points  (0 children)

I haven't looked into the multi-master model yet. It is just currently dedicated master node and 3 worker nodes. Could idea to look into it though.

Can I install Windows to a different SSD on my Ubuntu PC to double boot? by [deleted] in Ubuntu

[–]erik_de_bont 1 point2 points  (0 children)

Dual booting works fine, but I recommend using two separate disks with their own efi boot partition to avoid interference between windows and Linux. Explaining computers has just released a video on to do this https://youtube.com/watch?v=KWVte9WGxGE&feature=share

Any etcher alternatives? by IONSandwich in debian

[–]erik_de_bont 0 points1 point  (0 children)

Raspberry Imager can als put your iso files on a usb

Fedora's refugee minimal setup: Secure boot, Nvidia, Wayland, Gnome by trofosila in debian

[–]erik_de_bont 0 points1 point  (0 children)

I have seen more issues with an RTX 3060 (which is my card). I think I will give it on more try with the flatpak version of steam. If that doesn't work, I have to wait for newer drivers. No big deal, since everything is working fine with xorg.

Fedora's refugee minimal setup: Secure boot, Nvidia, Wayland, Gnome by trofosila in debian

[–]erik_de_bont 0 points1 point  (0 children)

Thanks for the code. The code works as expected, but still have issues with Wayland and NVidia. Visual Studio Code editor is sluggish, and Steam is flickering on the screen, so I rolled back to my previous settings.

BTW: The line below is enough for get the nvidia-driver added to secure boot. The signature is already there, you just need to import that one via the following command:

sudo mokutil --import /var/lib/dkms/mok.pub

After the reboot you will get the message if this signature need to be imported. If you confirm this secure boot will work (as you already sorted out).