NB arduino-cli RP2040-zero

arduino-cli config add board_manager.additional_urls \
    https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
arduino-cli core update-index
arduino-cli core install rp2040:rp2040
arduino-cli compile -b rp2040:rp2040:waveshare_rp2040_pizero
arduino-cli upload -b rp2040:rp2040:waveshare_rp2040_pizero -p /dev/ttyACM0

 

NB smartdatacollection.sh Script

#!/bin/bash
# remove -l farm from params
# set desirable disk_type 

curr_date=$(date --iso-8601)
smart_dir=${curr_date}_smartctl_data
disk_type="ST18000NM008J"
smartctl=$(which smartctl)
#smartctl="/root/usr/local/sbin/smartctl"

[ -d ${smart_dir} ] || echo mkdir ${smart_dir}
lsscsi -i | grep ${disk_type} | grep 0x50 | awk -v smart_dir="$smart_dir" \
        -v smartctl="$smartctl" \
        '{print smartctl " -x -l farm "$6 " > "smart_dir"/smartctl_-x_-l_farm_"$7".txt"}' 
echo "tar cfj $0_${smart_dir}.tar.bz2 ${smart_dir}/*"

Run: bash smartdatacollection.sh | time bash

Save: smartdatacollection.sh_2025-07-30_smartctl_data.tar.bz2

 

NB VNC Server Setup

OEL/RedHat Server Setup

sudo dnf update -y
sudo dnf install -y epel-release
sudo dnf groupinstall -y "Xfce" "base-x"
sudo dnf install tigervnc-server firefox
sudo id support
echo ":1=support" | sudo tee -a /etc/tigervnc/vncserver.users
sudo su - support -c "vncpasswd"
sudo systemctl enable --now vncserver@:1
sudo firewall-cmd --add-port=5901/tcp --permanent
sudo firewall-cmd --reload

Session setup (/home/support/.config/tigervnc/config)

session=xfce
geometry=1920x1080
alwaysshared
interface=127.0.0.1

VNC connection

vncviewer -passwd /home/jump/.config/tigervnc/passwd -via server_address_ip 127.0.0.1:5901 

 

NB Change Default Kernel OEL

# grubby --default-kernel
/boot/vmlinuz-5.15.0-310.184.5.2.el9uek.x86_64
# grubby --info=ALL | grep ^kernel
kernel="/boot/vmlinuz-5.15.0-310.184.5.2.el9uek.x86_64"
kernel="/boot/vmlinuz-5.15.0-302.167.6.el9uek.x86_64"
kernel="/boot/vmlinuz-5.14.0-570.30.1.0.1.el9_6.x86_64"
kernel="/boot/vmlinuz-5.14.0-503.11.1.el9_5.x86_64"
kernel="/boot/vmlinuz-0-rescue-dfbeda345e8248dda7782b18ad072ff3"
# grubby --set-default
/boot/vmlinuz-5.14.0-570.30.1.0.1.el9_6.x86_64
The default is /boot/loader/entries/dfbeda345e8248dda7782b18ad072ff3-5.14.0-570.30.1.0.1.el9_6.x86_64.conf with index 2 and kernel /boot/vmlinuz-5.14.0-570.30.1.0.1.el9_6.x86_64