Knowledge for the World

How to automatically boot into the Raspberry Pi desktop (GUI)

  • by Zach (130)
  • 2 minutes

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

1

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

2

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!

3

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

sudo update-rc.d lightdm disable