# Install xRDP

{% hint style="info" %}
Important: At least Ubuntu 18.04 LTS (Bionic Beaver) or Debian 10 (Buster) must be used as OS. Newer versions are recommended.
{% endhint %}

First, the server should be updated:

```
// Debian
sudo apt update; sudo apt upgrade -y

// Ubuntu
sudo apt update; sudo apt upgrade -y
```

After the update, the necessary packages will be installed:

```
// Debian
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils -y

// Ubuntu
sudo apt install ubuntu-desktop -y
```

Then xRDP can be installed:

```
// Debian
sudo apt install xrdp

// Ubuntu
sudo apt install xrdp
```

After installation, the status should return "**active**":

```
// Debian
sudo systemctl status xrdp

// Ubuntu
sudo systemctl status xrdp
```

![](https://user-images.githubusercontent.com/61953937/167338588-910589f1-4cfc-482b-95d1-179f0d58ed66.png)

If the status is okay, a user still needs to be created. Then the xRDP service has to be restarted:

```
// Debian
sudo adduser xrdp ssl-cert; sudo systemctl restart xrdp

// Ubuntu
sudo adduser xrdp ssl-cert; sudo systemctl restart xrdp
```

When finishing the configuration, you can connect to the root or the respective user data of the server via Remote Desktop. The default port is: 3389

### Connection[​](https://zap-hosting.com/guides/docs/vserver-linux-xrdp#connection) <a href="#connection" id="connection"></a>

The connection can be made via any RDP tool, connected with IP:PORT. When connecting you will be asked for the login data:

![](https://user-images.githubusercontent.com/61953937/167338595-c36f7912-4201-478c-8b97-ecfe1fd0773e.png)

After successful login you see the desktop. With Ubuntu it looks a bit different than with Debian:

Ubuntu:

![](https://user-images.githubusercontent.com/61953937/167338601-9ad25d8c-b799-4430-aca5-37bd6b122cb6.png)

Debian:

![](https://user-images.githubusercontent.com/61953937/167338611-9ecaaa54-aa98-4eaa-95d5-968decef2219.png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snghosting.com/linux-server/install-xrdp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
