User Tools

Site Tools


general:raspberry_pi

Headless setup

Enable SSH at first boot

Create a file name “ssh” in the boot partition

Since April 2022 - setup user account

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/<ssid_name>.nmconnection

[connection]
id=<ssid>
uuid=<uuid>
type=wifi
interface-name=wlan0
timestamp=1697375379

[wifi]
mode=infrastructure
ssid=<ssid>

[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk=<PSK in plaintext>

[ipv4]
method=auto

[ipv6]
addr-gen-mode=default
method=auto

[proxy]

Set correct permissions

chmod 600 /etc/NetworkManager/system-connections/<ssid_name>.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
}
general/raspberry_pi.txt · Last modified: 2025/10/12 14:09 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki