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

Zigbee / SmartHome

Devices
https://zigbee.blakadder.com/search.html

ZHA (Zigbee Home Automation)
https://www.home-assistant.io/integrations/zha/#known-working-zigbee-radio-modules
https://www.home-assistant.io/integrations/zha/

Aubess Power Monitor Switch 16A Switch Module BK7231N (BL0942)
https://www.elektroda.com/rtvforum/topic3912748.html
https://templates.blakadder.com/aubess_power_monitor_switch.html
https://www.elektroda.com/rtvforum/topic3951016.html
https://openbekeniot.github.io/webapp/devicesList.html
https://www.elektroda.com/rtvforum/topic3895572.html#20033093
https://www.elektroda.com/rtvforum/topic3912748.html
https://www.elektroda.com/rtvforum/topic3887748.html#20266899
https://github.com/openshwprojects/OpenBK7231T_App
https://github.com/tuya-cloudcutter/tuya-cloudcutter
https://www.youtube.com/@elektrodatv
https://www.elektroda.com/rtvforum/topic3887748-90.html
https://newreleases.io/project/github/openshwprojects/OpenBK7231T_App/release/1.14.119
https://github.com/openshwprojects/BK7231GUIFlashTool

Tuya
Login: https://iot.tuya.com/
API Explorer: https://eu.iot.tuya.com/cloud/explorer
Service / License: https://www.tuya.com/vas/commodity/IOT_CORE_V2
www.tuya.com/vas/user/service

custom ZHA quirks
https://smarthomescene.com/reviews/tuya-zigbee-single-clamp-energy-meter-review/?unapproved=4798&moderation-hash=ece87e207d73a3452151608ea851834d#comment-4798
https://github.com/zigpy/zha-device-handlers/issues/1973#issuecomment-1668617636

ZG-204ZV HOBEIAN
https://gist.github.com/vinzent/2cd645b848fd3b6a0c3e5762956ec89f#file-zg-204zm-py

Bionx

G2 console code access

With the battery installed on your bike, turn the BionX on.
Hold down "Power" and "Mode" until you see 4 zeroes.
Enter code the 4 digit code by using plus/minus to change each number and "Power" to move to the next number.
Press "Power" one more time to confirm the code

Links
https://erowbike.com/bionx
https://www.ebike-technik.de/bionx_einstellcodes.php
https://electricbikereview.com/forums/threads/how-to-get-access-to-your-bionx-console-code-menu-codelist-included.519/

Install Brother P-Touch QL-500 / QL-550 / QL-560 / QL-570 under Ubuntu

wget https://raw.githubusercontent.com/panticz/installit/master/hardware/install.brother-ql-labelprinter.sh -O- | bash

sudo su

[ ! -d /usr/share/cups/model ] && mkdir /var/spool/lpd
[ ! -d /usr/share/cups/model ] && mkdir /usr/share/cups/model
#ln -s /etc/init.d/cups /etc/init.d/cupsys

# create outdated cupsys init script
cat < /etc/init.d/cupsys
#!/bin/bash

/etc/init.d/cups \$@
EOF
chmod a+x /etc/init.d/cupsys

cat < /var/lib/dpkg/info/ql570cupswrapper.list
./
./usr/
./usr/local/
./usr/local/Brother/
./usr/local/Brother/PTouch/
./usr/local/Brother/PTouch/ql570/
./usr/local/Brother/PTouch/ql570/cupswrapper/
./usr/local/Brother/PTouch/ql570/cupswrapper/cupswrapperql570pt1
./usr/local/Brother/PTouch/ql570/cupswrapper/brcupsconfpt1
EOF

mkdir -p /var/spool/lpd/ql570

wget -q https://download.brother.com/welcome/dlfp002168/ql550lpr-1.0.1-0.i386.deb -P /tmp
dpkg -i --force-all /tmp/ql5*lpr-*.i386.deb

wget -q https://download.brother.com/welcome/dlfp002171/ql550cupswrapper-1.0.1-0.i386.deb -P /tmp
dpkg -i --force-all /tmp/ql5*cupswrapper-*.i386.deb

# connect and power-on the printer

# delete default printer
lpadmin -x QL-570

# create new printer (example for QL-500)
lpadmin -p Brother_P-Touch -E -v usb://Brother/QL-500 -P /usr/share/cups/model/Brother/brother_ql550_printer_en.ppd \
  -o BrPriority=BrQuality \
  -o PageSize=29x90 \
  -o PageRegion=29x90 \
  -o ImageableArea=29x90 \
  -o PaperDimension=29x90

recreate printer

lpadmin -x QL-500
#lpadmin -p Brother_QL-500 -E -v usb://Brother/QL-500 -P /usr/share/cups/model/brql500.ppd

lpadmin -p Brother_38x90 -v socket://PRINTSERVER_IP:9100 -E -P /usr/share/cups/model/Brother/brother_ql570_printer_en.ppd -o PageSize=38x90 -o PageRegion=38x90 -o ImageableArea=38x90 -o PaperDimension=38x90

set Label to 38x90 mm

lpadmin -p Brother_38x90 -v usb://Brother/QL-500 -E -P /usr/share/cups/model/Brother/brother_ql570_printer_en.ppd -o PageSize=38x90 -o PageRegion=38x90 -o ImageableArea=38x90 -o PaperDimension=38x90 -o BrPriority=BrQuality -o orientation-requested-default=4

test

OpenWRT: ASUS RT-AC68U

Flash OpenWRT firmware
https://openwrt.org/toh/asus/rt-ac68u

# @workstation
wget https://downloads.openwrt.org/releases/21.02.1/targets/bcm53xx/generic/openwrt-21.02.1-bcm53xx-generic-asus_rt-ac68u-squashfs.trx

ip a add 192.168.1.5/24 dev enp0s25
ip l set dev enp0s25 up

# power OFF router
# hold RESET button and power ON router

# open 192.168.1.1 in browser and upload firmware

WebUI
http://192.168.1.1/cgi-bin/luci/

Micron NVME

https://www.micron.com/products/ssd/data-center-ssd-downloads
https://www.micron.com/-/media/client/global/documents/products/software/storage-executive-software/msecli/msecli_linux.run?rev=aca5cd015ac341779afe4ecdff1d3611

Mellanox: SR-IOV (Single Root IO Virtualization)

Install Mellanox Driver
http://www.panticz.de/mellanox/install-dirver

lspci | grep Mellanox
mstconfig -y -d  18:00.1 set SRIOV_EN=1 NUM_OF_VFS=16

#cat /etc/modprobe.d/mlnx.conf 
#options mlx4_core num_vfs=5 probe_vf=5

apt install -y sysfsutils

cat < /etc/sysfs.d/mlnx-sriov_numvfs.conf
class/net/ens6f0/device/sriov_numvfs = 8
class/net/ens6f1/device/sriov_numvfs = 8
class/net/ens7f0/device/sriov_numvfs = 8
class/net/ens7f1/device/sriov_numvfs = 8
EOF

# /boot/grub/grub.cf
intel_iommu=on

ll /sys/class/net/en{p,s}*
echo 8 > /sys/class/net/ens6f0/device/sriov_numvfs

Configure VLAN

ip link add link ens7f0v6 vlan1234  type vlan id 1234
dhclient -v vlan1234

Configure netplan
http://www.panticz.de/netplan

network:
  version: 2
  renderer: networkd

  ethernets:
    eno1:
      dhcp4: yes
    eno2:
      virtual-function-count: 4
    vf1:
      match:
        name: eno2v[0-3]
      dhcp4: no
      #    eno2v0:
      #dhcp4: no
       #mtu: 9000

  vlans:
    stage-mgmt:
      id: 3649
      #link: eno2v0
      link: vf1
      dhcp4: yes

OpenStack SR-IOV
https://docs.openstack.org/neutron/latest/admin/config-sriov.html

Links
https://docs.mellanox.com/pages/viewpage.action?pageId=19801751
https://www.mellanox.com/related-docs/prod_software/Mellanox_EN_for_Linux_User_Manual_v3_20.pdf
https://community.mellanox.com/s/article/howto-configure-and-probe-vfs-on-mlx5-drivers
http://bloggf.dannf.org/index.php/2019/10/22/passing-lots-of-pcie-devices-to-a-kvm-guest/

Install Mellanox MFT


https://www.mellanox.com/products/adapter-software/firmware-tools

#URL=https://www.mellanox.com/downloads/MFT/mft-4.26.1-3-x86_64-deb.tgz
URL=https://www.mellanox.com/downloads/MFT/mft-4.27.0-83-x86_64-deb.tgz

wget -q ${URL} -P /tmp
tar xzf /tmp/mft-*-x86_64-deb.tgz -C /tmp/

sudo apt install -y gcc make dkms linux-headers-$(uname -r)
/tmp/mft-*-x86_64-deb/install.sh 

mst start

AVM Fritz!Box

Fritz!Box Modellliste
https://de.wikipedia.org/wiki/Fritz!Box-Modellliste

Fritz!Box NAS
https://service.avm.de/help/de/FRITZ-Box-7360-v2-avme/016/hilfe_speicher_einstellungen_samba

Format USB pen

mkfs.ext3 -L usb8gb /dev/sdc1

Emergency / fallback IP
http://169.254.1.1/

sudo ip a add 169.254.1.111/24 dev eth0

Fallback IP

# set router to lan
ip r add 169.254.0.0/16 dev enp7s0

ping 169.254.1.1
http://169.254.1.1/

Nautilus

smb://fritz.nas
ftp://fritz.nas

Fix smaba v1 share access
# /etc/samba/smb.conf
[global]
client min protocol = CORE

Speed test
http://avm.de/nc/service/zack-der-speedtest-fuer-ihre-breitbandverbindung/
https:/192.168.178.1/support.lua

# from Linux
iperf -c 192.168.178.1 -p 4711 -t 60 -i 10

# from Windows
iperf.exe -c 192.168.178.1 -p 4712 -u -t 60 -i 10 -b 1000M

Fix 1h VPN timeout

CONNECTION=CON1
while true
do
	[ "$(nmcli con show ${CONNECTION} | grep STATUS)" ] || nmcli con up id ${CONNECTION}
	sleep 10
done

FRITZ!Box
AVM Produktvergleich: https://ch.avm.de/produkte/avm-produktvergleich/fritzbox/dslvdsl/
https://freetz.github.io/wiki/

Mellanox ConnectX-3 Pro UEFI iPXE boot

Device Type:      ConnectX3Pro
  Part Number:      MCX312B-XCC_Ax
  Description:      ConnectX-3 Pro EN network interface card; 10GigE; dual-port SFP+; PCIe3.0 x8 8GT/s; RoHS R6
  PSID:             MT_1200111023
  PCI Device Name:  /dev/mst/mt4103_pci_cr0
  Port1 MAC:        ec0d9a00aab1
  Port2 MAC:        ec0d9a00aab2
  Versions:         Current        Available    
     FW             2.42.5000      N/A          
     PXE            3.4.0752       N/A

Flash UEFI firmware
Request UEFI firmware from support@mellanox.com
http://www.panticz.de/mellanox/firmware-update

Install MFT
http://www.panticz.de/install-mellanox-mft

Flash firmware

flint -y -d /dev/mst/mt4103_pci_cr0 -i firmware fw-ConnectX3Pro-rel-2_42_5000-MCX312B-XCC_Ax-FlexBoot-3.4.752-UEFI-14.11.46.bin b
Device Type:      ConnectX3Pro
  Part Number:      MCX312B-XCC_Ax
  Description:      ConnectX-3 Pro EN network interface card; 10GigE; dual-port SFP+; PCIe3.0 x8 8GT/s; RoHS R6
  PSID:             MT_1200111023
  PCI Device Name:  /dev/mst/mt4103_pci_cr0
  Port1 MAC:        ec0d9a00aab1
  Port2 MAC:        ec0d9a00aab2
  Versions:         Current        Available    
     FW             2.42.5000      N/A          
     PXE            3.4.0752       N/A          
     UEFI           14.11.0046     N/A

Fix iPXE boot issue (recompile ipxe.efi) when connected to LACP swith port
http://www.panticz.de/ipxe/compile

# disable NET_PROTO_LACP
diff --git a/src/config/general.h b/src/config/general.h
index 3c14a2cd..d860f450 100644
--- a/src/config/general.h
+++ b/src/config/general.h
@@ -38,7 +38,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
 #undef NET_PROTO_IPV6          /* IPv6 protocol */
 #undef NET_PROTO_FCOE          /* Fibre Channel over Ethernet protocol */
 #define        NET_PROTO_STP           /* Spanning Tree protocol */
-#define        NET_PROTO_LACP          /* Link Aggregation control protocol */

# compile
make bin-x86_64-efi/ipxe.efi

# deploy ipxe.efi
scp /tmp/ipxe/src/bin-x86_64-efi/ipxe.efi tftp.example.com:/tftpboot/

Yamaha RX-D485 / RX-V485

Yamaha Web Control
Live demo: http://yamaha.panticz.de/
Repository: https://github.com/panticz/yamaha-web-control

API

curl -q http://192.168.178.4/YamahaExtendedControl/v1/system/getFeatures  | jq .

Control
# Volume Up / Down
http://192.168.178.4/YamahaExtendedControl/v1/main/setVolume?volume=up&step=5
http://192.168.178.4/YamahaExtendedControl/v1/main/setVolume?volume=down&step=5

# Change input
http://192.168.178.4/YamahaExtendedControl/v1/main/prepareInputChange?input=usb
http://192.168.178.4/YamahaExtendedControl/v1/main/setInput?input=net_radio
http://192.168.178.4/YamahaExtendedControl/v1/main/setInput?input=server
http://192.168.178.4/YamahaExtendedControl/v1/main/setInput?input=spotify

# Power
http://192.168.178.4/YamahaExtendedControl/v1/main/setPower?power=on
http://192.168.178.4/YamahaExtendedControl/v1/main/setPower?power=standby

# Get Device info
http://192.168.178.4/YamahaExtendedControl/v1/system/getDeviceInfo

# Get Available Device Features
http://192.168.178.4/YamahaExtendedControl/v1/system/getFeatures

# Get Network Status
http://192.168.178.4/YamahaExtendedControl/v1/system/getNetworkStatus

# Get Function Status (e.g.: Auto Power Standby)
http://192.168.178.4/YamahaExtendedControl/v1/system/getFuncStatus

# Get Location info and zone list (device)
http://192.168.178.4/YamahaExtendedControl/v1/system/getLocationInfo

# Get zone info (device|zone)
http://192.168.178.4/YamahaExtendedControl/v1/main/getStatus

# Get Sound Program List (device|zone)
http://192.168.178.4/YamahaExtendedControl/v1/main/getSoundProgramList

Allow access data from your reciver (CORS exception)
# firefox
https://addons.mozilla.org/en-US/firefox/addon/cross-domain-cors/
# chrome / chromium
https://chrome.google.com/webstore/detail/cross-domain-cors/mjhpgnbimicffchbodmgfnemoghjakai

Pagination

  • Previous page
  • 2
  • 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