# Installing a GUI Desktop Environment for Rocky Linux (RPI)

**URL:** <https://forums.rockylinux.org/t/installing-a-gui-desktop-environment-for-rocky-linux-rpi/5592>\
**Category:** Rocky Linux Help & Support\
**Created:** [March 12, 2022, 6:18pm UTC](https://forums.rockylinux.org/t/installing-a-gui-desktop-environment-for-rocky-linux-rpi/5592 "2022-03-12T18:18:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nasheayahu](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@nasheayahu](https://forums.rockylinux.org/u/nasheayahu)\
**Post date:** [March 12, 2022, 6:18pm UTC](https://forums.rockylinux.org/t/installing-a-gui-desktop-environment-for-rocky-linux-rpi/5592/1 "2022-03-12T18:18:44Z")

</div>

Hi, in following these instructions [Rocky Linux on Raspberry Pi](https://wiki.rockylinux.org/en/special-interest-groups/alt-arch/raspberry-pi) I’m still not able to get the GUI working. I keep getting the login prompt, is these instructions still valid and if not where is an updated version you can link me too?

---

<div class="post-metadata">

**Author:** ![FrankCox](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/frankcox/32/1572_2.png) [@FrankCox](https://forums.rockylinux.org/u/FrankCox)\
**Post date:** [March 12, 2022, 7:44pm UTC](https://forums.rockylinux.org/t/installing-a-gui-desktop-environment-for-rocky-linux-rpi/5592/2 "2022-03-12T19:44:43Z")

</div>

If you’re seeing the login prompt then your next step should be to enter your username and password and try logging in.

After that, see what happens when you type startx

---

<div class="post-metadata">

**Author:** ![nasheayahu](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@nasheayahu](https://forums.rockylinux.org/u/nasheayahu)\
**Post date:** [March 12, 2022, 7:49pm UTC](https://forums.rockylinux.org/t/installing-a-gui-desktop-environment-for-rocky-linux-rpi/5592/3 "2022-03-12T19:49:41Z")

</div>

Hi, thank for the reply, I get this;

[rocky@pi4fcam ~]$ startx  
-bash: startx: command not found

So this mean I’m missing additional preferences?

---

<div class="post-metadata">

**Author:** ![FrankCox](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/frankcox/32/1572_2.png) [@FrankCox](https://forums.rockylinux.org/u/FrankCox)\
**Post date:** [March 12, 2022, 9:12pm UTC](https://forums.rockylinux.org/t/installing-a-gui-desktop-environment-for-rocky-linux-rpi/5592/4 "2022-03-12T21:12:00Z")

</div>

I don’t use Rocky on Raspberry pi but xorg-x11-xinit is what provides the startx command on “regular” Rocky so I suspect you’re missing at least that.

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [March 13, 2022, 6:30pm UTC](https://forums.rockylinux.org/t/installing-a-gui-desktop-environment-for-rocky-linux-rpi/5592/5 "2022-03-13T18:30:04Z")

</div>

The instructions are telling you to use epel, and then xfce, but then at the end if says if you want xfce instead of gnome…

---

<div class="post-metadata">

**Author:** ![anemarkus](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@anemarkus](https://forums.rockylinux.org/u/anemarkus)\
**Post date:** [March 14, 2022, 9:02am UTC](https://forums.rockylinux.org/t/installing-a-gui-desktop-environment-for-rocky-linux-rpi/5592/7 "2022-03-14T09:02:23Z")

</div>

> [@shalom](#):
>
> ```auto
> startx
> 
> ```

I do have a question. Now that Wayland exists, is X11 (and with that, startx) necessarily installed? What display server would be used on a raspberry by default, Wayland or X11?

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [March 14, 2022, 9:18am UTC](https://forums.rockylinux.org/t/installing-a-gui-desktop-environment-for-rocky-linux-rpi/5592/8 "2022-03-14T09:18:13Z")

</div>

> [@anemarkus](#):
>
> I do have a question. Now that Wayland exists, is X11 (and with that, startx) necessarily installed? What display server would be used on a raspberry by default, Wayland or X11?

More on that: I’ve got the impression that ‘startx’ is deprecated. (I have not used ‘startx’ in a decade or so.)

`sudo systemctl isolate graphical.target`  
is the command to shift to what is roughly equivalent to “runlevel 5”.  
If one wants to go ta that target on boot, then: `sudo systemctl set-default graphical.target`

Shutting down the GUI subsystems, “return to 3” is with `sudo systemctl isolate multi-user.target`

The graphical.target starts displaymanager (RHEL has `gdm`) and dm offers the “login dialog” and starts (Wayland or X11) user session.  
What baffles me is: who draws the login dialog?

---

<div class="post-metadata">

**Author:** ![anemarkus](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@anemarkus](https://forums.rockylinux.org/u/anemarkus)\
**Post date:** [March 14, 2022, 9:59am UTC](https://forums.rockylinux.org/t/installing-a-gui-desktop-environment-for-rocky-linux-rpi/5592/9 "2022-03-14T09:59:09Z")

</div>

> [@jlehtone](#):
>
> What baffles me is: who draws the login dialog?

in gdm.conf there is

```auto
[daemon]
# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=false

```

I would think by default it’s Wayland.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:53am UTC](https://forums.rockylinux.org/t/installing-a-gui-desktop-environment-for-rocky-linux-rpi/5592/10 "2023-08-25T03:53:41Z")

</div>


