How To Make Raspberry Pi Boot In To GUI By Default

setup GUI by default in Raspbian OS

It’s been some times since I bought Raspberry Pi but honestly, I hardly did anything with it. Since my Dell Ultrabook is in Dell service center (for weeks now), I started using Raspberry Pi once again as an alternative.

I have previously written about how to install Raspbian OS on a SD card in Ubuntu. I did the same once again and installed Raspberry Pi once again. Only thing which I missed at the first run was to set up the GUI. And thus when I booted in Raspberry Pi again, I landed in command line directly. So how to you run Raspbian GUI then?

Set up Raspbian GUI boot

When you install Raspbian for the first time, it indeed present several option to configure for the first use. But since I did not pay attention in a hurry, I just tabbed finish on that screen. If you faced the same situation and end up with just command line in Raspbian OS, no need to despair, it is very easy to set up Raspberry Pi to boot in GUI by default. Let’s see how to do it.

Step 1:

When you are in the command line, log in with default user password (if you did not change it). Default user for Raspbian OS is pi and the default password should be raspberry.

Step 2:

When you are logged in, run the following command:

sudo raspi-config

This command will open up the Raspberry Pi configuration, the same which we saw in the first boot.

Step 3:

In this configuration screen, look for the option of Enable Boot to Desktop/Scratch. Select it using a combination of arrow, tab and/or enter keys (I forgot which ones are used).

Setup GUI in Raspbian Raspberry Pi OS

Step 4:

In the next screen, choose Desktop Login as user ‘Pi’ at the graphical desktop.


Step 5:

You’ll be asked to reboot afterwards.


On the next boot, you will be logged in to LXDE desktop environment. And you can enjoy the GUI experience with Raspberry Pi.

Raspbian OS GUI

 I hope this tutorial helped you to set up your Raspberry Pi to boot in GUI by default. Feel free to drop your questions and suggestions in the comment box.

Similar Posts

  • Get into the GUI by using startx after you’ve logged in. Then you can use (from memory) the preferences menu in the GUI to select either boot to CLI or the desktop.

  • How can I run the Pi-Star Digital Voice Dashboard while running without deleting Gui Desktop?