# An X server is running, but DISPLAY is not set (/docs/troubleshooting/browser-display-not-set)

What turno browser doctor means by "DISPLAY is not set, but an X server is running here on <display>", and the fix.

This page is for when `turno browser doctor` reports the finding below: what it means and how to fix it.

## What you see [#what-you-see]

```text
  !  DISPLAY is not set, but an X server is running here on <display>
     manual: set DISPLAY=<display> where turno-browser runs: export it in your shell profile, and for user services add DISPLAY=<display> to a file in ~/.config/environment.d/
```

It is a warning; warnings do not change the exit code. Words in angle brackets stand for values from your machine.

## Why it happens [#why-it-happens]

turno-browser drives a headed Chrome, which needs DISPLAY to find the X server. One is running on this machine (its socket is in /tmp/.X11-unix), often an Xvfb started as a user service, but this session does not have DISPLAY set, so Chrome cannot use it.

## Fix [#fix]

Set DISPLAY=&lt;display&gt; where turno-browser runs: export it in your shell profile, and for user services add DISPLAY=&lt;display&gt; to a file in ~/.config/environment.d/.

No single command fixes this one, so doctor names the manual step.

Then run `turno browser doctor` again to see the row turn into `ok`.

The check lives in [`packages/browser/src/doctor.ts`](https://github.com/wimo-dev/turno/blob/main/packages/browser/src/doctor.ts).