$linuxjunkies
>

raspi-config(8)

Interactive configuration tool for Raspberry Pi system settings.

UbuntuDebianFedoraArch

Synopsis

raspi-config [--help] [--version] [nonint]

Description

raspi-config is the official Raspberry Pi configuration utility that provides an interactive menu-driven interface for system setup and customization. It allows users to configure hardware settings, enable/disable interfaces, expand the filesystem, set passwords, configure locale and timezone, and manage performance settings without manual file editing.

When run without arguments, it launches an interactive ncurses menu. The nonint option enables non-interactive mode for scripting and automation, allowing configuration changes to be applied programmatically via command-line flags.

Common options

FlagWhat it does
--helpDisplay help message and available options
--versionShow version information
nonintRun in non-interactive mode for scripted automation
do_expand_rootfsExpand filesystem to fill SD card (nonint mode)
do_change_passChange pi user password (nonint mode)
do_configure_keyboardSet keyboard layout and model (nonint mode)
do_change_localeSet system locale (nonint mode)
do_change_timezoneSet timezone (nonint mode)
do_wifi_ssid_passphraseConfigure WiFi SSID and password (nonint mode)
do_sshEnable or disable SSH server (nonint mode)
do_spiEnable or disable SPI interface (nonint mode)
do_i2cEnable or disable I2C interface (nonint mode)

Examples

Launch interactive configuration menu with all options

sudo raspi-config

Expand filesystem to use full SD card capacity without user interaction

sudo raspi-config nonint do_expand_rootfs

Set timezone to Eastern Time non-interactively

sudo raspi-config nonint do_change_timezone America/New_York

Configure system locale to US English UTF-8

sudo raspi-config nonint do_change_locale en_US.UTF-8

Disable SSH server (0=disable, 1=enable)

sudo raspi-config nonint do_ssh 0

Enable SPI interface for hardware communication

sudo raspi-config nonint do_spi 1

Configure WiFi connection with SSID and password

sudo raspi-config nonint do_wifi_ssid_passphrase MyNetwork MyPassword

Display the version of raspi-config installed

sudo raspi-config --version

Related commands