# Error message: "agcolor unable to access colors. Is X running and DISPLAY set?"

**URL:** <https://forums.rockylinux.org/t/error-message-agcolor-unable-to-access-colors-is-x-running-and-display-set/7807>\
**Category:** Social & Community\
**Created:** [November 9, 2022, 1:37pm UTC](https://forums.rockylinux.org/t/error-message-agcolor-unable-to-access-colors-is-x-running-and-display-set/7807 "2022-11-09T13:37:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHEN122](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@CHEN122](https://forums.rockylinux.org/u/CHEN122)\
**Post date:** [November 9, 2022, 1:37pm UTC](https://forums.rockylinux.org/t/error-message-agcolor-unable-to-access-colors-is-x-running-and-display-set/7807/1 "2022-11-09T13:37:56Z")

</div>

Problem: I have installed a software that does not start or when it does crashes fairly quickly giving the error message “agcolor unable to access colors. Is X running and DISPLAY set?”  
I am relatively an inexperienced Linux user. I know you will ask for some details regarding the system , I try to provide a hint below but please guide me on what you might need.  
I found a 2012 answer: Does it help at all to change the display colour depth to something different - e.g. if you’re currently using 32 bit colour depth, did you try 16 or 24?  
But I won’t change the color depth of Linux systems

---

<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:** [November 9, 2022, 1:54pm UTC](https://forums.rockylinux.org/t/error-message-agcolor-unable-to-access-colors-is-x-running-and-display-set/7807/2 "2022-11-09T13:54:56Z")

</div>

What is `agcolor`? I can’t find such thing from base nor EPEL.

> Is X running and DISPLAY set?

X Window System, X11, is windowing system. When you have graphical session on Rocky,  
the windows are drawn by Xorg (X11 server), or by Wayland. Wayland is not X11, but has XWayland (X11 server). If you have GUI session, then you should have X11 server.

The X11 client applications connect to X11 server with identifier that is stored in environment variable DISPLAY. For example:

```auto
$ echo $DISPLAY
:0

```

That is, when I start X11 client program, it will connect to **localhost:0** (where the X11 server listens).

If you have only a console session, then DISPLAY is not set. (One can actually tunnel X via ssh, etc, but that is an another story.)

---

<div class="post-metadata">

**Author:** ![CHEN122](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@CHEN122](https://forums.rockylinux.org/u/CHEN122)\
**Post date:** [November 9, 2022, 2:02pm UTC](https://forums.rockylinux.org/t/error-message-agcolor-unable-to-access-colors-is-x-running-and-display-set/7807/3 "2022-11-09T14:02:05Z")

</div>

How to change the color depth of the redhat system.I need is 8bit color depth.But I don’t know how to modify the display

---

<div class="post-metadata">

**Author:** ![CHEN122](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@CHEN122](https://forums.rockylinux.org/u/CHEN122)\
**Post date:** [November 9, 2022, 2:29pm UTC](https://forums.rockylinux.org/t/error-message-agcolor-unable-to-access-colors-is-x-running-and-display-set/7807/4 "2022-11-09T14:29:16Z")

</div>

How to change the color depth of the redhat system.I need is 8bit color depth.But I don’t know how to modify the display

---

<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:35am UTC](https://forums.rockylinux.org/t/error-message-agcolor-unable-to-access-colors-is-x-running-and-display-set/7807/5 "2023-08-25T03:35:02Z")

</div>


