Raspberry Pi

My Pi Collection

  • Pi 3B
  • Pi Zero W + Zero 2
  • Pi 4 (4GB)
  • CM4 (in my Homeassistant yellow)
  • Pico (Microcontroller)

Tools

Images

Commands

Config

raspi-config

Update

sudo apt-get --yes update
sudo apt-get --yes upgrade

From pi-tips.md

Cleanup

Remove unused apps and run cleaning functions

# http://raspberry.tips/faq/raspberry-pi-speicherplatz-voll-sd-karte-aufraeumen
sudo apt-get purge wolfram-engine
sudo apt-get remove --purge libreoffice*
sudo apt-get purge --auto-remove scratch
sudo apt-get remove --purge sonic-pi

# apt cleaning
sudo apt-get --yes autoremove
sudo apt-get --yes autoclean
sudo apt-get --yes clean

# Remove old logs
sudo rm -v /var/log/*.gz

# Find big files
sudo find / -type f -size +100M

Networking

Wifi Setup

wpa_supplicant

network={
	ssid="SSID"
	psk=PASSWORD
}

Docker

  • Setup
  • Containers
  • run in privileged mode for GPIO-access: docker run --device /dev/ttyAMA0:/dev/ttyAMA0 --device /dev/mem:/dev/mem --privileged -p {ports} {image}

Pico

  • MicroPython
    # connect to pico
    rshell --buffer-size=30 -p /dev/tty.usbmodem0000000000001 -a
    
    # copy single file
    cp main.py /pyboard
    
    # sync all files in folder
    cp -r developer/micropython/*.py /pyboard/
    
    # launch into a REPL-shell
    repl

Resources


3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679