I probably need to write something here
Recover data from QNAP disks, partitioned with LVM
The QNAP fails. The dreadful event. The disks are fine, but they are useless in any other enclosure, other than other QNAP. Even if you connect them to a PC, you won’t be able to mount them. QNAP are using several standard Linux utilities for RAID and LVM management. However, they have added a few custom functionalities to those and have not upstreamed them. Meaning, that without a custom kernel, the disks won’t mount, and the data cannot not be read....
Adguard Home on Alpine Linux
The official installation method of Adguard Home doesn’t work on Alpine Linux, due to absence of Systemd. However, it’s pretty simple to run it with OpenRC: wget the Adguard archive (from Github), extract to /opt/AdGuardHome add this to /etc/init.d/AdguardHome #!/sbin/openrc-run # # openrc service-script for AdGuardHome # # place in /etc/init.d/ # start on boot: "rc-update add adguardhome" # control service: "service adguardhome <start|stop|restart|status|checkconfig>" # description="AdGuard Home: Network-level blocker" pidfile="/run/$RC_SVCNAME.pid" command="/opt/AdGuardHome/AdGuardHome" command_args="-s run" command_background=true extra_commands="checkconfig" depend() { need net provide dns after firewall } checkconfig() { "$command" --check-config || return 1 } stop() { if [ "${RC_CMD}" = "restart" ] ; then checkconfig || return 1 fi ebegin "Stopping $RC_SVCNAME" start-stop-daemon --stop --exec "$command" \ --pidfile "$pidfile" --quiet eend $?...
Various Unifi / Edgerouter Snippets
Clear dnsmasq lease from Unifi USG The file to remove the lease from is /var/run/dnsmasq-dhcp.leases Forward DNS to Pihole/Adguard Set DHCP’s DNS server as your router’s IP. Then in the router’s config configure forwarding section of DNS. dns { forwarding { cache-size 0 listen-on switch0 name-server 10.0.0.10 } } Route domain to a specific IP Add an option to route some domain to some IP (which e.g. hosts reverse proxy for that domain)...
NanoPi Neo enable analog audio on DietPi
If you wire 3.5mm jack using the GPIO pinout on Nano Pi, you might not get any sound. Apparently, analog audio output is disabled in DietPi. To enable it, edit the following line in /boot/armbianEnv.txt: overlays=analog-codec usbhost1 usbhost2 Armbian doesn’t have this issue. This method works, because DietPi is based on Armbian....