π οΈ Raspberry Pi β raspi-config Tool Explained (2025 Beginner Guide)
π§² Introduction β What Is raspi-config?
raspi-config is the official configuration tool for Raspberry Pi OS. It provides a simple text-based interface that allows users to customize system settings like Wi-Fi, SSH, display, localization, performance, and moreβwithout editing system files manually.
π― In this guide, youβll learn:
- How to launch and use
raspi-config - All available configuration options explained
- Practical use cases (enable SSH, change hostname, expand filesystem)
- Best practices for beginners and advanced users
π How to Launch raspi-config
Open your Raspberry Pi terminal and run:
sudo raspi-config
Youβll see a menu-based interface with numbered sections. Use arrow keys to navigate, Enter to select, and Esc to exit.
π raspi-config Main Menu Options
Hereβs a complete breakdown of what each option does:
| π’ Menu Option | π Purpose |
|---|---|
| 1. System Options | Hostname, Boot behavior, Auto-login, Time zone |
| 2. Display Options | Resolution, overscan, screen blanking |
| 3. Interface Options | Enable/disable SSH, VNC, SPI, I2C, Serial, Camera |
| 4. Performance Options | Overclocking, GPU memory allocation |
| 5. Localisation Options | Language, keyboard layout, time zone, Wi-Fi country |
| 6. Advanced Options | Expand filesystem, fan control, bootloader, custom hostname |
| 7. Update | Update raspi-config tool to latest version |
β Each option modifies core OS settings safelyβideal for both beginners and power users.
π Enable SSH for Headless Access
To remotely control your Pi:
sudo raspi-config
β Interface Options
β SSH
β Enable
Then connect from another machine using:
ssh pi@<ip-address>
β Essential for headless Raspberry Pi projects.
π‘ Connect to Wi-Fi via raspi-config
sudo raspi-config
β System Options
β Wireless LAN
Enter your SSID and password, and your Pi will auto-connect on boot.
π» Set Hostname & Auto-Login
To change your Piβs name on the network:
sudo raspi-config
β System Options
β Hostname
To auto-login into desktop or CLI:
β System Options
β Boot / Auto Login
Choose:
- Desktop GUI with auto-login
- CLI with or without login prompt
π§ Enable GPIO Interfaces (SPI, I2C, Serial, Camera)
For hardware and sensor projects:
sudo raspi-config
β Interface Options
β Choose SPI / I2C / Serial / Camera
β Enable
π Useful for robotics, displays, and GPIO-based controls.
π§ͺ Expand Filesystem
Make full use of your SD card:
sudo raspi-config
β Advanced Options
β Expand Filesystem
β Run this after first boot to avoid space limitations.
π Set Locale, Keyboard, and Timezone
Localization options for your region:
sudo raspi-config
β Localisation Options
Set:
- Language (e.g., en_US.UTF-8)
- Keyboard (e.g., US, UK)
- Timezone (Asia/Kolkata, UTC, etc.)
- Wi-Fi country (e.g., IN, US)
π‘ Overclock (Optional β Use with Caution)
If you’re using active cooling, you can push your Piβs performance:
sudo raspi-config
β Performance Options
β Overclock
Options depend on the Pi model. β οΈ Use responsibly and monitor temperatures.
π Update raspi-config
To get the latest features:
sudo raspi-config
β Update
OR
sudo apt update
sudo apt install raspi-config
π Summary β Recap & Next Steps
raspi-config is the Swiss Army knife of Raspberry Pi configuration. It saves time, prevents mistakes, and helps you optimize your system with just a few keystrokes.
π Key takeaways:
- Launch with
sudo raspi-configfrom terminal - Configure SSH, Wi-Fi, hostname, GPIO, locale, and more
- Essential for headless setups and performance tuning
- Safe and user-friendly alternative to editing config files manually
βοΈ Real-world relevance: From setting up servers to robotics and remote access, raspi-config is used in almost every Raspberry Pi project.
β FAQs β Raspberry Pi raspi-config Tool
β Can I use raspi-config on Raspberry Pi OS Lite?
β Yes! Itβs fully functional even on headless setupsβno desktop required.
β How do I reset raspi-config settings?
β Simply rerun the tool:
sudo raspi-config
You can reconfigure any setting again.
β Is raspi-config only for Raspberry Pi OS?
β Yes, it’s optimized for Raspberry Pi OS. It may not work on other distros like Ubuntu or Arch Linux for ARM.
β How do I enable SPI or I2C from the command line?
β Use:
sudo raspi-config β Interface Options
Or manually edit /boot/config.txt.
β Does raspi-config require sudo?
β Yes. It changes system files, so administrative privileges are required.
Share Now :
