JEFF KOENIG'S Web Site! Search - The Internet - Computers - Business - Chicago - Entertainment |
Raspberry Pi Raspberry Pi - Raspberry Pi OS (previously called Raspbian) Update raspberry pi: sudo apt update sudo apt upgrade sudo reboot # Clean out old packages that are no longer needed: sudo apt autoremove --purge # # ? or sudo apt full-upgrade # # If Raspberry Pi 4: sudo rpi-eeprom-update Pi-hole - DNS Ad Blocker Pi-hole statistics "Privacy levels" Synology NAS Docker pihole - Quick Config - How To Setup Pi-hole On A Synology NAS - Kev Quirk DNS Over HTTPS - How to implement DNS-Over-HTTPS on PiHole Update Pi-hole (as your active userID (not root)): sudo pihole -up raspbian-x - Twister OS Raspberry Pi 4 Model B - 4GB DDR4 - Microcenter Raspberry Pi 4 Official 15W Power Supply US - (Black - Microcenter) - (White - Microcenter) How-To Improve Your Raspberry Pi Boot Time On Raspbian Lite TeslaUSB - Raspberry Pi Zero W used in Tesla car to automatically backup dashcam video and also store music files FAQ Wiki /mnt/musicarchive mountpoint looks corrupt Force archive: touch /tmp/archive_is_unreachable Diagnose issues TeslaUSB discord server Update TeslaUSB: sudo -i /root/bin/setup-teslausb upgrade Time sync: Raspbian "bookworm" uses "systemd-timesyncd.service" by default: systemctl status systemd-timesyncd.service Configuration file is here: /etc/systemd/timesyncd.conf Find your pool NTP server listing here: https://support.ntp.org/Servers/NTPPoolServers Example /etc/systemd/timesync.conf configuration: [Time] NTP=0.us.pool.ntp.org 1.us.pool.ntp.org 2.us.pool.ntp.org 3.us.pool.ntp.org To see time status, type: timedatectl status To see NTP servers status: timedatectl timesync-status ISSUES: Issue: "sudo apt update" gets stuck at 98% or such, then you need to remove and regenerate corrupted package lists: sudo mv /var/lib/apt/lists /var/lib/apt/lists_bak sudo mkdir -p /var/lib/apt/lists/partial sudo apt update # Make sure you have enough free space for installing packages df -h / # Then install updates and reboot: sudo apt upgrade sudo reboot Issue after "sudo apt update": "W: http://raspbian.raspberrypi.com/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details." Fix: cd /etc/apt sudo cp trusted.gpg trusted.gpg.d Issue after "sudo apt update" similar to: "apt update Release file for is not valid yet (invalid for another Updates for this repository will not be applied." Note, your time on the device is likely wrong, run "date" to check the day/time on the device. If date/time is wrong, then fix: sudo date -s "YYYY-MM-DD HH:MM:SS" Then fix the hardware clock also (Note: hwclock did not work for me on Raspberry Pi Zero): sudo hwclock --systohc or sudo hwclock -w |