Welcome to LQ! Sorry you didn't get any reply. I know absolutely nothing about this (since I only know Unix CLI), but I dug this up on the internet. (even if it's total garbage maybe it'll get the discussion going!)
To configure Linux to serve XRDP remote desktops while presenting LightDM or GDM (Gnome Display Manager) instead of the stock XRDP login screen, you'll need to make a few adjustments to the XRDP configuration and the display manager settings. The process may vary depending on your Linux distribution, but the general steps are as follows:
1. **Install XRDP and LightDM/GDM (if not already installed):**
Make sure you have XRDP and LightDM/GDM installed on your Linux system. The commands to install these packages vary based on the distribution you are using. For example, on Ubuntu-based systems, you can use:
```bash
sudo apt update
sudo apt install xrdp lightdm
```
Replace `lightdm` with `gdm3` if you are using GDM instead.
2. **Stop XRDP service:**
Before making changes, stop the XRDP service:
```bash
sudo systemctl stop xrdp
```
3. **Backup XRDP configuration:**
Create a backup of the original XRDP configuration file:
```bash
sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak
```
4. **Edit XRDP configuration:**
Open the XRDP configuration file for editing:
```bash
sudo nano /etc/xrdp/xrdp.ini
```
Find the section `[xrdp1]` (or a similar section) in the file. This section controls the X11rdp session, which is the stock XRDP login screen.
5. **Configure XRDP to use LightDM/GDM:**
Change the `name` parameter in the `[xrdp1]` section to `gnome`. This change will make XRDP use the GNOME session, which will be handled by LightDM or GDM, depending on your system. Update the section to look like this:
```ini
[xrdp1]
name=gnome
lib=libxup.so
username=ask
password=ask
```
6. **Save the changes** and exit the text editor (Nano: press `Ctrl + X`, then `Y` to confirm, then `Enter`).
7. **Restart XRDP service:**
Start the XRDP service again:
```bash
sudo systemctl start xrdp
```
8. **Disable autostart of XRDP login screen (optional):**
If you don't want the stock XRDP login screen to appear at all, you can disable its autostart. This step is optional since the previous configuration change should already direct XRDP to use LightDM/GDM. However, to be sure, you can do this:
```bash
sudo systemctl disable xrdp-sesman
```
This will prevent the XRDP session manager from starting automatically on system boot.
9. **Restart your system or XRDP service** to apply the changes fully:
```bash
sudo systemctl restart xrdp
```
Now, when you connect to the XRDP remote desktop, you should see the LightDM or GDM login screen instead of the stock XRDP login screen. Choose your preferred desktop session (e.g., GNOME) and proceed to log in as you would locally.
|