====== Headless setup ====== ===== Enable SSH at first boot ===== Create a file name "ssh" in the boot partition ===== Since April 2022 - setup user account ===== [[https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/|An update to Raspberry Pi OS Bullseye]] Create file named "userconf" in the boot partition The contents should be in the form pi:$6$o./WGPVrH4SYmDs/$88CAS1V7inbLrzAZ1CVk984zLzJYe5IKV5SGyMgjaNtHSHhuYzFQLbQY9G.XkxlZjaEi3/fnphUBmF7EBZt0I1 The password hash can be created by running a command like this echo 'raspberry' | openssl passwd -6 -stdin ===== Enable WiFi using NetworkManager ===== Create file /etc/NetworkManager/system-connections/.nmconnection [connection] id= uuid= type=wifi interface-name=wlan0 timestamp=1697375379 [wifi] mode=infrastructure ssid= [wifi-security] auth-alg=open key-mgmt=wpa-psk psk= [ipv4] method=auto [ipv6] addr-gen-mode=default method=auto [proxy] Set correct permissions chmod 600 /etc/NetworkManager/system-connections/.nmconnection Remove NetworkManager.state file as that by default disables WiFi rm /var/lib/NetworkManager/NetworkManager.state ====== Valgrind ====== [[https://bugs.launchpad.net/raspbian/+bug/1743293]] [[https://snapcraft.io/valgrind]] Install newer valgrind for example by using a snap package \\ Use this configuration to suppress some non-real errors cat ~/.valgrindrc --sigill-diagnostics=no --suppressions=/home/pi/.valgrind.supp cat ~/.valgrind.supp { libarmmemv7laddr8 Memcheck:Addr8 obj:/usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so } { libarmmemv7laddr4 Memcheck:Addr4 obj:/usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so } { libarmmemv7laddr2 Memcheck:Addr2 obj:/usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so } { libarmmemv7laddr1 Memcheck:Addr1 obj:/usr/lib/arm-linux-gnueabihf/libarmmem-v7l.so }