Raspberry Pi 4

  • All the commands below are tested under Debian Buster 10

Wpa_supplicant.conf

  • For a fresh OS, you may need to create or edit the wpa_supplicant.conf in order for the Raspi to be connected to Wifi after its startup

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
ap_scan=1
update_config=1

network={
    ssid="<Name of your wireless LAN>"
    psk="<Password for your wireless LAN>"
}

Clean up space

  • Sometimes, you would like to clean up space of SD card

  • You can uninstall some unnecessary package and do some cleaning

$ sudo apt-get purge wolfram-engine libreoffice* scratch -y
$ sudo apt-get clean
$ sudo apt-get autoremove -y

Enable I2C

  • go to /boot/config.txt and change to the following:

Detect I2C

  • Install tools for I2C

  • Scan I2C devices

Enable UART1

  • To enable UART, go to /boot/cmdline.txt and removed the line "console=serial0,115200"

  • It should become like the following:

  • go to /boot/config.txt and add

Use default uart TX0, RX0

Disable MAC address randomization

  • To bind your Raspi to static ip address assigned by router, you would hope the MAC address is always the same for the Raspi.

  • To avoid randomization, create file at /etc/NetworkManager/conf.d/100-disable-wifi-mac-randomization.conf

References

Last updated