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

 

Custom Arch ISO

Sometimes need some strange things… to do )

Latest image

archlinux-baseline-zfs-2026.01.11-x86_64.iso

sha256

ab2a6c571f955e3a02102743ff8234fc018009b76b74666c3b20731918c361d1

home.nest.org.ru/isos/

# - 2025-06-24 ADD: clonezilla
# - 2025-07-03 ADD: stress-ng
# - 2025-07-30 ADD: multipath-tools dmidecode
# - 2025-08-04 ADD: lzbench-git
# - 2025-08-05 ADD: minicom parallel mbuffer vim \
#                   vim binwalk binsider diffoscope \
#                   dhcp bind tcpdump rsync
#              CNG: disable audit (BIOS+UEFI boot) 
# - 2025-08-30 ADD: iptraf-ng hashcat
#              CNG: linux 6.16.x zfs-2.3.4
# - 2025-09-04 ADD: smp-utils
# - 2025-09-05 ADD: /root/smartdatacollection.sh
# - 2025-10-01 ADD: wget
# - 2025-11-20 CNG: linux 6.17.x zfs-2.3.5
# - 2026-01-05 CNG: linux 6.18.x zfs-2.4.0
#              ADD: testdisk+photorec ddrescue

NB Rocky Linux 9.5 VNC Server

$ grep PRETTY /etc/os-release 
PRETTY_NAME="Rocky Linux 9.5 (Blue Onyx)"

 

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 jump
echo ":1=jump" | sudo tee -a /etc/tigervnc/vncserver.users
sudo su - jump -c "vncpasswd"
sudo systemctl enable --now vncserver@:1
sudo firewall-cmd --add-port=5901/tcp --permanent
sudo firewall-cmd --reload