Skip to content

Raspberry Pi - Configuration

After the initial setup, you can fine-tune various aspects of your Raspberry Pi’s behavior and enable specific hardware features using configuration tools. The primary tools are the graphical ‘Raspberry Pi Configuration’ application and the command-line raspi-config utility.

Raspberry Pi Configuration (Graphical Tool)

Section titled “Raspberry Pi Configuration (Graphical Tool)”

If you are using Raspberry Pi OS with the desktop environment, this is the easiest way to configure common settings. Access it via:

Application Menu -> Preferences -> Raspberry Pi Configuration

The tool has several tabs:

  • Password: Change the password for the default pi user (highly recommended for security).
  • Hostname: Set the name your Raspberry Pi uses on the network (e.g., my-pi).
  • Boot: Choose whether to boot to the Desktop (graphical interface) or CLI (command line interface).
  • Auto Login: Enable/disable automatic login for the pi user on boot (convenient but less secure).
  • Network at Boot: Option to wait for a network connection before the desktop loads (useful for network-dependent services).
  • Splash Screen: Enable/disable the graphical splash screen shown during boot.
  • Resolution: Set the screen resolution for your display (usually detected automatically, but can be overridden).
  • Underscan: Enable/disable underscan. If you see black borders around your desktop, disable underscan. If the desktop extends beyond your screen, enable it. (Often handled automatically by modern HDMI).

This tab is crucial for enabling hardware communication interfaces:

  • Camera: Enable/disable the CSI camera port.
  • SSH: Enable/disable Secure Shell access for remote command-line login.
  • VNC: Enable/disable the built-in RealVNC server for remote graphical desktop access.
  • SPI: Enable/disable the Serial Peripheral Interface.
  • I2C: Enable/disable the Inter-Integrated Circuit interface.
  • Serial Port: Configure the UART serial port (enable/disable hardware, enable/disable login shell over serial).
  • 1-Wire: Enable/disable the 1-Wire interface (often used for temperature sensors like DS18B20).
  • Remote GPIO: Allow GPIO access from another computer over the network (requires specific server software running).
  • Overclock: (Use with caution!) Allows increasing the CPU speed beyond stock settings. May require improved cooling (heatsink/fan) and can potentially reduce stability or lifespan. Only recommended for advanced users.
  • GPU Memory: Adjust the amount of system RAM allocated to the Graphics Processing Unit. The default is usually sufficient unless running graphics-intensive applications or certain video tasks.

Set regional settings:

  • Locale: Set the language, country, and character encoding for the system.
  • Timezone: Set the geographic region to ensure the clock is correct.
  • Keyboard: Configure the layout to match your physical keyboard (e.g., US, UK, German).
  • Wi-Fi Country: Set the country you are in to ensure Wi-Fi uses the correct frequencies and power levels allowed by local regulations.

Most changes require a reboot to take effect. The tool will prompt you if necessary.

This tool provides access to mostly the same configuration options as the graphical tool, but works entirely within the command line interface. It’s essential if you are using Raspberry Pi OS Lite or connecting remotely via SSH.

To launch it, open a terminal and type:

sudo raspi-config

Navigate the menus using the arrow keys, Tab key to switch between options, Spacebar to select/deselect checkboxes, and Enter to confirm selections or enter submenus. Select ‘Finish’ to exit. It will also prompt for a reboot if needed.

If you didn’t configure Wi-Fi during the initial setup wizard:

  • Desktop: Click the network icon (Wi-Fi fans or Ethernet symbol) in the top-right system tray. Select your Wi-Fi network name (SSID) from the list. Enter the password (Pre-Shared Key) when prompted.
  • Command Line (raspi-config): Run sudo raspi-config, go to ‘System Options’ -> ‘Wireless LAN’, enter your SSID and password.
  • Command Line (Manual): More advanced users can edit the /etc/wpa_supplicant/wpa_supplicant.conf file directly.

A successful connection is usually indicated by the network icon changing appearance or by checking the IP address using the ip addr show wlan0 command.

For models with built-in Bluetooth (Pi 3 / 4 / Zero W / Zero 2 W / 400):

  • Desktop: Click the Bluetooth icon in the system tray. Make your Bluetooth device discoverable (pairing mode). Click ‘Add Device’ on the Pi, wait for it to scan, select your device from the list, and click ‘Pair’. Follow any on-screen prompts (e.g., confirming a PIN).
  • Command Line: Use the bluetoothctl utility. Type bluetoothctl, then commands like scan on, pair <device_MAC_address>, trust <device_MAC_address>, connect <device_MAC_address>.