Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid

Update Intel NIC firmware

# Intel Ethernet Connections Boot Utility, Preboot Images und EFI-Treiber

wget https://downloadmirror.intel.com/29137/eng/Preboot.tar.gz

tar xzf Preboot.tar.gz -C /tmp

cd /tmp/APPS/BootUtil/Linux_x64
chmod +x bootutil64e 
./bootutil64e

DBAN

Download
http://www.dban.org/download

Create DBAN USB boot pen

sudo su

USB_DEVICE=/dev/sdb

umount ${USB_DEVICE}*
parted ${USB_DEVICE} -s mklabel msdos
parted ${USB_DEVICE} -s mkpart primary 1 100%
parted ${USB_DEVICE} -s set 1 boot on
mkfs.vfat ${USB_DEVICE}1

install-mbr ${USB_DEVICE}
syslinux -f ${USB_DEVICE}1

wget https://altushost-swe.dl.sourceforge.net/project/dban/dban/dban-2.3.0/dban-2.3.0_i586.iso -O /tmp/dban-2.3.0_i586.iso
mount /tmp/dban-2.3.0_i586.iso /mnt -o loop
cp /mnt/{dban.bzi,isolinux.cfg} /mnt
umount /mnt

# Reconnect USB pen
#MOUNTPOINT=$(findmnt -n -o TARGET ${USB_DEVICE}1)
MOUNTPOINT=/mnt
mount ${USB_DEVICE}1 ${MOUNTPOINT}
cp /mnt/dban.bzi ${MOUNTPOINT}/
cp /mnt/isolinux.cfg ${MOUNTPOINT}/syslinux.cfg

# OPTIONAL: enable autonuke quick wipe mode as default
sed -i "s/DEFAULT .*/DEFAULT quick/g" ${MOUNTPOINT}/syslinux.cfg
sed -i "s/PROMPT .*/PROMPT 0/g" ${MOUNTPOINT}/syslinux.cfg

umount ${MOUNTPOINT}

DCPMM (Intel Optane DC Persistent Memory Module NV-DIMM)

# install
sudo apt install -y ndctl ipmctl

# diagnostic
ipmctl show -dimm
ipmctl show -topology -dimm
ipmctl show -memoryresources
ipmctl start -diagnostic

# firmware
ipmctl show -dimm -firmware
ndctl update-firmware all -f fw_ekvb0_1.2.0.5444_rel.bin

ddrescue

Install

apt install -y gddrescue
dpkg -i gddrescue_1.22-1_amd64.deb

Rescue

ddrescue /dev/sda sda.dd sda.ddrescue.log

Get server(s) power consumption

bmc_credentials.conf

export BMC_USER=ADMIN
export BMC_PASS=ADMIN

get-power-consumption.sh

#!/bin/bash

# source BMC credentials
. $(dirname "${BASH_SOURCE[0]}")/bmc_credentials.conf

if [ $# -eq 1 ]; then
    BMC_NODES="${1}"
else
    echo "Usage: $0 \"\""
    echo "e.g $0 \"10.0.0.1 \$(echo 10.0.2.{10..20})\""
    exit
fi

printf "%-40s %-10s %-10s\n" "Server" "Current" "AVG"
for BMC_NODE in ${BMC_NODES}; do
    POWER_CONSUMPTION=$(curl --connect-timeout 3 -s https://${BMC_NODE}/redfish/v1/Chassis/1/Power/ -k -u ${BMC_USER}:${BMC_PASS} | jq -r ".PowerControl[].PowerConsumedWatts")
    [ -z ${POWER_CONSUMPTION} ] && POWER_CONSUMPTION=$(ipmitool -I lanplus -H ${BMC_NODE} -U ${BMC_USER} -P ${BMC_PASS} dcmi power reading | awk '/Instantaneous/ {print $(NF-1)}')

    POWER_CONSUMPTION_AVG=$(curl --connect-timeout 3 -s https://${BMC_NODE}/redfish/v1/Chassis/1/Power/ -k -u ${BMC_USER}:${BMC_PASS} | jq -r ".PowerControl[].PowerMetrics.AverageConsumedWatts")
    [ -z ${POWER_CONSUMPTION_AVG} ] && POWER_CONSUMPTION_AVG=$(ipmitool -I lanplus -H ${BMC_NODE} -U ${BMC_USER} -P ${BMC_PASS} dcmi power reading | awk '/Average/ {print $(NF-1)}')

    printf "%-40s %-10s %-10s\n" "${BMC_NODE}" "${POWER_CONSUMPTION}" "${POWER_CONSUMPTION_AVG}"
done

define server (BMC) list

BMC_NODES="
10.0.0.222
$(echo www{1..9}.example.com)
$(echo 10.0.1.{101..201})
"

Get data from redfish / ipmi

Bluetooth

https://didier.io/post/raspberrypi-stream-sound-over-bluetooth

Kodi
https://wiki.libreelec.tv/pulseaudio?s[]=bluetooth

OpenWRT

Supported devices
https://openwrt.org/toh/start

Update

opkg -verbosity=0 update
for PKG in $(opkg list-upgradable | cut -d" " -f1 | grep -v Multiple); do
    opkg upgrade ${PKG}
done

factory reset
https://openwrt.org/docs/guide-user/troubleshooting/failsafe_and_factory_reset

firstboot -y && reboot

FRITZ!Box 3490
https://boxmatrix.info/wiki/FRITZ!Box_3490
https://forum.openwrt.org/t/port-to-avm-fritz-box-3490/52692/77
http://www.aboehler.at/doku/doku.php/projects:fritz3490

FRITZ!Box 7360
https://boxmatrix.info/wiki/FRITZ!Box_Fon_WLAN_7360_v2
https://openwrt.org/toh/avm/avm_fritz_box_7360_v2

# update firmware
ssh 192.168.1.1
URL=http://downloads.openwrt.org/snapshots/targets/lantiq/xrx200/openwrt-lantiq-xrx200-avm_fritz7360-v2-squashfs-sysupgrade.bin
wget ${URL} -P /tmp
scp /tmp/openwrt-lantiq-xrx200-avm_fritz7360-v2-squashfs-sysupgrade.bin 192.168.1.1:/tmp/
ssh root@192.168.1.1
echo 3 > /proc/sys/vm/drop_caches
mtd -r write /tmp/openwrt-lantiq-xrx200-avm_fritz7360-v2-squashfs-sysupgrade.bin firmware

# from stock firmware
wget http://downloads.openwrt.org/snapshots/targets/lantiq/xrx200/openwrt-lantiq-xrx200-avm_fritz7360-v2-squashfs-sysupgrade.bin -P /tmp

Set your client IP to 192.168.178.2
Power on your your Fritzbox and connect to 192.168.178.1 via ftp in the first 5 seconds.

cd /tmp
ftp 192.168.178.1
login with adam2/adam2
type into the ftp prompt:
passive
binary
debug 1
quote MEDIA FLSH
put openwrt-lantiq-xrx200-avm_fritz7360-v2-squashfs-sysupgrade.bin mtd1

Solaar: Configure devices connected to Logitech wireless MX receivers

Install

sudo apt-get install -y solaar-gnome3

Run
Application starts minimized in menu bar

solaar

Links
https://wiki.ubuntuusers.de/Logitech_Unifying_Empf%C3%A4nger/

NVMe firmware update with Intel SSD Firmware Update Tool

Intel SSD Firmware Update Tool
https://downloadcenter.intel.com/download/30509?v=t
https://downloadcenter.intel.com/download/30373?v=t
https://downloadmirror.intel.com/30509/eng/CLI-Intel-MAS-1.8-User-Guide-Public-342245-010US.pdf
# latest version
https://www.intel.com/content/www/us/en/download/19520/intel-memory-and-storage-tool-cli-command-line-interface.html?v=t

wget https://downloadmirror.intel.com/30373/eng/Intel%C2%AE_SSD_FUT_3.0.11.zip

intelmas show -output json
intelmas load -f -intelssd 0
intelmas show -output json -intelssd -sensor

for NVME_ID in $(intelmas show -output json -intelssd | jq '.[] | select(.ProductFamily | contains("Intel")) .Index'); do
    intelmas show -intelssd ${NVME_ID}
    intelmas load -force -intelssd ${NVME_ID}
done

Intel NVMe firmware update with Intel SSD Data Center Tool (deprected)
Check for latest version: https://downloadcenter.intel.com/search?keyword=SSD+Firmware+Update+Tool

URL=https://downloadmirror.intel.com/29720/eng/Intel_SSD_DCT_3.0.26_Linux.zip

wget ${URL} -O /tmp/Intel_SSD_Data_Center_Tool_Linux.zip
unzip -d /tmp /tmp/Intel_SSD_Data_Center_Tool_Linux.zip
sudo dpkg -i /tmp/isdct_*_amd64.deb

# Enable support for devices behind LSI RAID controller
isdct set -system EnableLSIAdapter=true

# show all avaiable Intel NVMe devices
isdct show -intelssd

isdct show -d Index,FirmwareUpdateAvailable -intelssd
isdct show -o json -d DevicePath -intelssd | jq -r .[].DevicePath

# update firmware
isdct load -intelssd 0

Flash all Intel NVMe drives

for NVME_ID in $(isdct show -d Index -intelssd | grep Index | cut -d ":" -f2); do
    isdct show -intelssd ${NVME_ID}
    yes | isdct load -intelssd ${NVME_ID}
done

Links
https://www.thomas-krenn.com/de/wiki/Intel_SSD_Data_Center_Tool
https://downloadcenter.intel.com/de/download/28639/Intel-SSD-Data-Center-Tool-Intel-SSD-DCT-?product=87278

LineageOS

Andorid Apps (arm, nano)
https://opengapps.org/?api=9.0&variant=nano

wget https://netix.dl.sourceforge.net/project/opengapps/arm/20200429/open_gapps-arm-9.0-nano-20200429.zip -P /tmp

Compile Heimdall (tested with v1.4.2)

sudo apt-get install -y build-essential cmake zlib1g-dev qt5-default libusb-1.0-0-dev libgl1-mesa-glx libgl1-mesa-dev

git clone https://gitlab.com/BenjaminDobell/Heimdall.git /tmp/Heimdall
cd /tmp/Heimdall
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make

# test
cd bin/
./heimdall version

Boot phone to recovery mode
Vol- + Home + Power

Download recovery file
https://twrp.me/Devices/

wget https://dl.twrp.me/hlte/twrp-3.3.1-0-hlte.img -P /tmp

Flash LineageOS
https://wiki.lineageos.org/devices/hlte/install

#./heimdall print-pit
./heimdall flash --RECOVERY /tmp/twrp-3.3.1-0-hlte.img --no-reboot
adb sideload /tmp/lineage-*-nightly-hlte-signed.zip
adb sideload /tmp/open_gapps-arm-*-nano-*.zip
adb reboot

Debug with ADB

adb shell tail -f /tmp/recovery.log

Play Protect certified
https://forum.shiftphones.com/threads/solved-device-no-longer-play-protect-certified-after-update-to-lineageos-22-1.5596/
https://www.google.com/android/uncertified/

adb root
adb shell
sqlite3 /data/user/$(cmd activity get-current-user)/*/*/gservices.db "select * from main where name = \"android_id\";"

Pagination

  • Previous page
  • 3
  • Next page
hardware
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung