LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-11-2023, 02:01 PM   #1
gaohinc
LQ Newbie
 
Registered: Jul 2023
Posts: 3

Rep: Reputation: 0
xrdp login screen using lightdm configuration


I'm trying to configure Debian 12 (Bookworm) to serve xrdp remote desktops but to present the lightdm gdm instead of the stock xrdp login screen. Is this possible?

I have the xrdp set up and it's working fine. I'm just trying to figure out how to get the gdm display manager in the remote session so my users can pick from the list to log in.

Any help would be appreciated
 
Old 07-21-2023, 09:16 PM   #2
GentleThotSeaMonkey
Member
 
Registered: Dec 2016
Posts: 338
Blog Entries: 4

Rep: Reputation: 128Reputation: 128
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xrdp using lightdm configuration gaohinc Linux - Desktop 0 07-12-2023 03:46 PM
Using lightdm/xrdp in a headless single board computer for remote connection mahaju Linux - Newbie 6 10-30-2021 08:13 AM
[SOLVED] lightdm-session error message after removal of lightdm rng Linux - General 3 08-28-2017 02:48 PM
[SOLVED] xrdp-v0.6.0 RHEL 6.4 Workstation. xrdp loaded started with sesman, but cannot connect capperdog Linux - Newbie 4 02-04-2014 02:56 PM
LXer: Simple LightDM Manager: Change The LightDM Background Or Logo Using A GUI LXer Syndicated Linux News 0 10-05-2011 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration