How to Automatically Boot into the Raspberry Pi Desktop (GUI)

Zach Zach (249)
2 minutes

Is your Raspberry Pi booting into the command line (CLI) by default? This short guide will show you how to boot into Raspberry Pi OS Desktop automatically instead!

Raspberry PiRaspberry Pi ×1

Howchoo is reader-supported. When you buy through links on our site, we may earn a small affiliate commission at no cost to you.

Log into your Pi via SSH or connect a monitor and keyboard to get to the command line.

Type the following command:

sudo raspi-config

Then, use your arrow keys to navigate to Enable Boot to Desktop and press enter. Select the Desktop login option and press enter.

Reboot and you’re good to go!

Alternatively, you can make the same change without using the raspi-config GUI by running the following command:

sudo update-rc.d lightdm disable
It’s time for a project kit you can keep around the house.
Ash Ash (343)
0

The Raspberry Pi is a wonderfully flexible SBC and easily one of our favorite open-source boards on the market today.