2022-1104 updated Uncompress *.xz file using 7-Zip uncompression in Windows (right click, 7-Zip - Open archive - drag *.img file over to destination location) Example compressed : 2022-09-22-raspios-bullseye-armhf-lite.img.xz Example uncompressed: 2022-09-22-raspios-bullseye-armhf-lite.img Use balenaEtcher Portable (https://www.balena.io/etcher/) to write *.img image to MicroSD card Example: 2022-09-22-raspios-bullseye-armhf-lite.img From MicroSD card "boot" partition (was Q: in my case), create: "ssh" file that is empty to allow remote ssh access "userconf" to allow a userID to login. userconf file needs the following: username:encrypted-password Create encrypted-password for userconf file as such: echo "normal-password" | openssl passwd -6 -stdin Disconnect MicroSD card and install in Rasberry Pi Check router DHCP Lease list and snapshot currently leased IPs (IP - DHCP Server - Leases) Power on raspberry pi connected to network cable Check router DHCP Lease list and compare to previous snapshot currently leased IPs to find new raspberry pi IP (IP - DHCP Server - Leases) Change current password: passwd # Change configurations via command line menu system: sudo raspi-config # Change hostname manually (edit files then reboot): sudo su - vi /etc/hostname vi /etc/hosts # or Change Hostname with command line menu system: raspi-config 1 System Options S4 Hostname # Change to root and set static IP address info: sudo su - vi /etc/dhcpcd.conf # Example static IP configuration: #interface eth0 #static ip_address=192.168.0.10/24 #static ip6_address=fd51:42f8:caae:d92e::ff/64 #static routers=192.168.0.1 #static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1 interface eth0 static ip_address=192.168.1.11/24 static routers=192.168.1.1 static domain_name_servers=192.168.1.1 Update raspberry pi zero: apt update apt upgrade # or: apt full-upgrade # If Raspberry Pi 4: rpi-eeprom-update Enable "ll" directory listing: vi .bashrc alias ll='ls -lA' Enable private/public key login: mkdir -m 700 .ssh vi .ssh/authorized_keys chmod 600 .ssh/authorized_keys Set localisation, timezone, WLAN country raspi-config 5 Localisation Options - Change Locale (en_US.UTF-8 then en_US.UTF-8) 5 Localisation Options - Change Time Zone (US - Central) 5 Localisation Options - Change Keyboard Layout 5 Localisation Options - Change WLAN Country (US United States) Fix date formatting: -- Example old date display: $ date Fri 4 Nov 18:18:25 CDT 2022 Example new date display: $ date Sat Aug 22 2020 09:17:02 PM CDT -- vi /usr/share/i18n/locales/en_US Change next line to following line: date_fmt "%a %d %b %Y %r %Z" change to: date_fmt "%a %b %d %Y %r %Z" Then run: dpkg-reconfigure locales Reboot to apply updates: reboot Show os version of Raspberry Pi: cat /etc/os-release or lsb_release -a apt commands: apt install (package) apt remove (package) apt search (package) apt show (package) apt list apt edit-sources Force HDMI: ----------- Add these two lines to /boot/config.txt and reboot Raspbmc: hdmi_force_hotplug=1 hdmi_drive=2 hdmi_force_hotplug=1 sets the Raspbmc to use HDMI mode even if no HDMI monitor is detected. hdmi_drive=2 sets the Raspbmc to normal HDMI mode (Sound will be sent if supported and enabled). Without this line, the Raspbmc would switch to DVI (with no audio) mode by default. WiFi: ----------- iwlist wlan0 scan iwconfig Temperature example script: --------------------------------- $ cat temps.sh #!/bin/bash cpu1=$(cat /sys/class/thermal/thermal_zone0/temp) cpu=$((cpu1/1000)) gpu=`/opt/vc/bin/vcgencmd measure_temp | sed s/temp=//g` voltage=`/opt/vc/bin/vcgencmd measure_volts | sed s/volt=//g` echo "$(date) @ $(hostname)" echo "---------------------------------------------" echo "CPU = $cpu'C" echo "GPU = $gpu" echo "Voltage = $voltage" OLD: ------------------------------------------ Remove then re-attach MicroSD card to computer Old Login defaults l:pi p:raspberry Set localisation, timezone, WLAN country raspi-config 4 Localisation Options - Change Locale (en_US.UTF-8 then en_US.UTF-8) 4 Localisation Options - Change Time Zone (US - Central) 4 Localisation Options - Change Keyboard Layout 4 Localisation Options - Change WLAN Country (US United States)