Skip to main content

Raspberry Pi (树莓派) Overview

The Raspberry Pi is a versatile series of single-board computers (SBCs) used for everything from learning basic programming to deploying high-performance edge computing nodes.

Hardware Specifications

ModelSoCArchitectureMemoryCPU
RPi 1 ABCM2835ARMv6 (32-bit)256 MB1× ARM1176 @ 700 MHz
RPi 2 BBCM2836ARMv7 (32-bit)1 GB4× Cortex-A7 @ 900 MHz
RPi 3 BBCM2837ARMv8 (64-bit)1 GB4× Cortex-A53 @ 1.2 GHz
RPi 4 BBCM2711ARMv8 (64-bit)1, 2, 4, 8 GB4× Cortex-A72 @ 1.5 GHz
RPi 5BCM2712ARMv8 (64-bit)4, 8 GB4× Cortex-A76 @ 2.4 GHz
Zero 2 WBCM2710A1ARMv8 (64-bit)512 MB4× Cortex-A53 @ 1 GHz
PicoRP2040Cortex-M0+264 KB2× M0+ @ 133 MHz
  • Raspberry Pi 400: A Pi 4 with 4GB RAM integrated into a compact keyboard casing. Official Product Page.

Getting Started (Headless Setup)

You can set up a Raspberry Pi without a monitor or keyboard using the "headless" method.

1. Preparing the OS

Use the Raspberry Pi Imager for the easiest setup.

  • Tip: Click the gear icon to pre-configure WiFi (SSID/Password), SSH (enabled), and user account (username/password) before flashing.

2. Manual Configuration (Legacy Method)

If flashing a raw .img file using dd:

  1. Mount the boot partition on your PC.
  2. Create an empty file named ssh (no extension) in the root of the boot partition to enable SSH.
  3. Configure WiFi by creating wpa_supplicant.conf:
    network={
    ssid="YOUR_WIFI_NAME"
    psk="YOUR_WIFI_PASSWORD"
    }

3. Initial SSH Access

# Default hostname is raspberrypi.local
ssh [email protected]
# Default password: raspberry (unless changed in Imager)

Post-Installation Tips

raspi-config

Use the official configuration tool for common tasks:

sudo raspi-config
  • Expand filesystem to fill the SD card.
  • Change password & hostname.
  • Enable hardware interfaces (I2C, SPI, Camera).

Environment Setup (Golang Example)

# Install Go (Cortex-A architectures)
GOVERSION=1.21.0
wget https://golang.org/dl/go$GOVERSION.linux-armv6l.tar.gz
sudo tar -C /usr/local -xzf go$GOVERSION.*.tar.gz
export PATH=$PATH:/usr/local/go/bin

System Monitoring

Temperature Monitoring

Monitor CPU and GPU temperatures in real-time:

watch -n 1 '
echo -n "CPU: " && sed -re "s/(..)(.).*/\1.\2°C/" /sys/class/thermal/thermal_zone0/temp;
echo -n "GPU: " && vcgencmd measure_temp | sed -re "s/temp=([0-9.]+).*/\1°C/"
'

Folder Contents

Official Resources