# Rustdesk - Unsupported display server tty, x11 expected

**URL:** <https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072>\
**Category:** Troubleshooting\
**Created:** [27 March 2026 17:09 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072 "2026-03-27T17:09:56Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Will-WC2L](https://dietpi.com/forum/user_avatar/dietpi.com/will-wc2l/32/8838_2.png) [@Will-WC2L](https://dietpi.com/forum/u/Will-WC2L)\
**Post date:** [27 March 2026 17:09 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/1 "2026-03-27T17:09:56Z")

</div>

Hi Folks,  
I’m just getting back into Linux. Since I’m using an older RPi 3 Model B+ (aarch64) device, I thought I would try/use dietpi OS. I want to place the device at a remote site for remote access.

The plan is to use Rustdesk on the raspberry pi device for local network access. I keep getting an “Unsupported display server tty, x11 expected” on the Rustdesk screen. I have poked around, but no joy. Can someone point me in the right direction??

System:  
Host: DietPi  
Kernel: 6.12.75+rpt-rpi-v8  
arch: aarch64 bits: 64  
Desktop: Xfce v: 4.20.1  
Distro: Debian GNU/Linux 13 (trixie)  
RPi 3 Model B+ (aarch64)

Rustdesk installed, Version: 1.4.6, Build date: 2026-03-05 05:28

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [27 March 2026 17:22 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/2 "2026-03-27T17:22:40Z")

</div>

Maybe something @StephanStS can help with

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [27 March 2026 17:46 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/3 "2026-03-27T17:46:54Z")

</div>

So XFCE is running and when you start the client software you see this message?  
And can you share the output of

```sh
 echo $XDG_SESSION_TYPE

```

### edit #1:

you mean this?

 ![Unbenannt-1](https://dietpi.com/forum/uploads/default/original/2X/f/f0d3d6621854e8be32656d78725e28489c53eb19.png)

I could connect to the machine just fine, despite this error message:

 ![rustdesk](https://dietpi.com/forum/uploads/default/original/2X/b/b7cbc383c1c46d9d3ea676659095c30e0f8a4436.jpeg)

But `XDG_SESSION_TYPE` is set to tty despite the fact that XFCE is running, maybe this is why we see the message but it’s working anyways.  
I guess it#s still `tty` because we start it from console via `startx`. And Rustdesk works because there is a display available.

@MichaIng what do you think?

### edit #2:

When setting autostart to Desktop → LightDM login mask, `XDG_SESSION_TYPE` is set to `x11` tho and the message does not appear.

---

<div class="post-metadata">

**Author:** ![Will-WC2L](https://dietpi.com/forum/user_avatar/dietpi.com/will-wc2l/32/8838_2.png) [@Will-WC2L](https://dietpi.com/forum/u/Will-WC2L)\
**Post date:** [27 March 2026 18:32 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/4 "2026-03-27T18:32:57Z")

</div>

Now to see if I can get the regular users to login automatically, startx and make sure Rustdesk start. Then this will be useful. So far, I’m enjoying Dietpi.

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [27 March 2026 18:41 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/5 "2026-03-27T18:41:16Z")

</div>

You can use `dietpi-autostart` to directly log into the desktop environment.

For app autostart in XFCE see

> **[Application Autostart - xfce:xfce4-session:preferences \[Xfce Docs\]](https://docs.xfce.org/xfce/xfce4-session/preferences#application_autostart)**

---

<div class="post-metadata">

**Author:** ![Will-WC2L](https://dietpi.com/forum/user_avatar/dietpi.com/will-wc2l/32/8838_2.png) [@Will-WC2L](https://dietpi.com/forum/u/Will-WC2L)\
**Post date:** [27 March 2026 21:58 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/7 "2026-03-27T21:58:52Z")

</div>

WOW, I thought I had totally messed it up. Took a few times to get the autologin/autostart to work. The biggest key was to add this command via cli: _sudo systemctl enable rustdesk_  
The cool thing, even the client does not throw the “unsupported error” anymore (either one).  
So, now it appears to work!!  
Thanks for pointing me in the right direction!!

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [28 March 2026 07:10 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/8 "2026-03-28T07:10:17Z")

</div>

How did you installed rustdesk?

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [28 March 2026 12:12 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/9 "2026-03-28T12:12:24Z")

</div>

That service is not enabled by default. It is only needed when connecting to an own RustDesk server, AND when it is wanted that other clients can always open a connection to your system, even if you did not start the RustDesk GUI.

It seems that service sets up the environment for the client behind the scenes, so that `XDG_SESSION_TYPE` is correct, or ignored? However, this is not what that service is meant for, and it is not intended to be needed, and obviously it is not needed and that error can be ignored anyway. That it checks for `XDG_SESSION_TYPE` is actually unnecessary: If there was not X session, there wouldn’t be any RustDesk GUI at all, but it would error out immediately.

`XDG_SESSION_TYPE` indeed is only set when starting the desktop via display managers like LightDM, not when doing it via `startx`, i.e. not for desktop autologins as root via `dietpi-autostart`. Maybe we should do this via LightDM as well, to have a proper PAM/logind registered X11 session.

---

<div class="post-metadata">

**Author:** ![Will-WC2L](https://dietpi.com/forum/user_avatar/dietpi.com/will-wc2l/32/8838_2.png) [@Will-WC2L](https://dietpi.com/forum/u/Will-WC2L)\
**Post date:** [28 March 2026 12:26 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/10 "2026-03-28T12:26:32Z")

</div>

Through the software search. I only needed the client.

---

<div class="post-metadata">

**Author:** ![Will-WC2L](https://dietpi.com/forum/user_avatar/dietpi.com/will-wc2l/32/8838_2.png) [@Will-WC2L](https://dietpi.com/forum/u/Will-WC2L)\
**Post date:** [28 March 2026 12:37 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/11 "2026-03-28T12:37:59Z")

</div>

I’m not sure why/how it all works. I believe that I set the user to auto login first. Then I chose the LightDM to auto start. Then sent the command in the terminal.

Addting the _sudo systemctl enable rustdesk_ seemed to allow me to connect to the pi from my PC. I do run my own Rustdesk server via container on another device. All of my settings were added to the client initially. When I opened the client, all of the error messages were gone.

Not sure I answered the question correctly. I was stumbling along. For me, Rustdesk has been very reliable for cross platform support. The ability to also control a pi3 wasHUGE. I did try to install DietPi on an older pi2 and the 32bit version never worked. I’ll stick with 4 or newer..

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [28 March 2026 13:20 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/12 "2026-03-28T13:20:35Z")

</div>

If you use LightDM, the service shouldn’t be needed anymore to mute the warning.

> [@Will-WC2L](#):
>
> Addting the _sudo systemctl enable rustdesk_ seemed to allow me to connect to the pi from my PC.

You should also be able to connect if you open the RustDesk client UI on the Pi. This is how it works by default, also on other operating systems like Windows: it connects to the server when the application is started, and disconnects when you close it. So there are no inbound connections possible without your intention. The `rustdesk.service` establishes the connection at boot and keeps it open, so inbound connections are always possible. If this is what you want, then the service is the right thing to use, but it is not the right thing to mute that warning that can be ignored in any case.

---

<div class="post-metadata">

**Author:** ![Will-WC2L](https://dietpi.com/forum/user_avatar/dietpi.com/will-wc2l/32/8838_2.png) [@Will-WC2L](https://dietpi.com/forum/u/Will-WC2L)\
**Post date:** [28 March 2026 13:47 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/13 "2026-03-28T13:47:45Z")

</div>

The service is exactly what I need/want. It is for my access to remote sites. I didn’t intend to mute the warning. I didn’t make any changes to mute them. I literally just did what I said. My only intention was to allow the pi to automatically login, start the GUI and allow the service to run. They will be setup headless.

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [28 March 2026 14:15 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/14 "2026-03-28T14:15:37Z")

</div>

Okay, I just wanted to make that clear, since it seemed like the service was part of the solution to solve/mute the warning. There might be the impression that this service is needed or intended for the RustDesk client in general, while this impression could lead to an unnecessarily opened system, and the service should fail/exit if no own RustDesk server is configured, i.e. if the public one is used.

For completeness, the service is described in our docs: [Remote Desktop Access Software Options - DietPi.com Docs](https://dietpi.com/docs/software/remote_desktop/#client-installation-and-setup_1-using-a-self-hosted-rustdesk-server)

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [26 June 2026 14:16 UTC](https://dietpi.com/forum/t/rustdesk-unsupported-display-server-tty-x11-expected/25072/15 "2026-06-26T14:16:20Z")

</div>

Closed on 26 June 2026 14:16 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
