You are not logged in.

#1 2023-04-04 16:41:58

ArchMark
Member
Registered: 2023-03-30
Posts: 36

Help with xrdp setup

After reading the ArchWiki - xrdp, I installed xrdp:

yay -S xrdp-git
yay -S xorgxrdp
sudo systemctl enable xrdp
sudo systemctl start xrdp

I went to the Windows 11 system, ran Remote Desktop Connection, entered the hostname/IP of the system, and it connects. 

I receive the Xorg login window, enter the username and password, hit enter.

Now here is the problem: I only receive a blue window and not the Linux desktop.

What am I missing?

Neofetch:
OS: Arch Linux x86_64 
Host: OptiPlex 7010 01 
Kernel: 6.2.9-arch1-1 
Uptime: 20 hours, 38 mins 
Packages: 885 (pacman) 
Shell: bash 5.1.16 
Resolution: 1600x900 
DE: Plasma 5.27.3 
WM: KWin 
Theme: [Plasma], Breeze [GTK2/3] 
Icons: [Plasma], breeze [GTK2/3] 
Terminal: konsole 
CPU: Intel i7-3770 (8) @ 3.900GHz 
GPU: Intel IvyBridge GT2 [HD Graphics 4000] 
Memory: 1822MiB / 15883MiB 

Logged in to KDE with X11 and Wayland, no difference.

Thank you.

Offline

#2 2023-04-04 19:21:51

ArchMark
Member
Registered: 2023-03-30
Posts: 36

Re: Help with xrdp setup

I found that I had to modify /etc/X11/xrdp/xorg.conf file:

Section "ServerFlags"
    # This line prevents "ServerLayout" sections in xorg.conf.d files
    # overriding the "X11 Server" layout (xrdp #1784)
    Option "DefaultServerLayout" "X11 Server"
    Option "DontVTSwitch" "on"
    Option "AutoAddDevices" "off"
    Option "AutoAddGPU" "off"   <<--- ADD
EndSection

Section "Screen"
    Identifier "Screen (xrdpdev)"
    Device "Video Card (xrdpdev)"
    Monitor "Monitor"
    DefaultDepth 24
    GPUDevice ""  <<--- ADD
    SubSection "Display"
        Depth 24
        Modes "640x480" "800x600" "1024x768" "1280x720" "1280x1024" "1600x900" "1920x1080"
    EndSubSection
EndSection

Edit these files as well (if needed):

sudo vim /etc/X11/Xwrapper.config
---
# Allow anyone to start X:
allowed_users=anybody
---

sudo vim /etc/xrdp/sesman.ini
---
[Xorg]
param=/usr/lib/Xorg
# Leave the rest of the lines untouched
---

and:

cp /etc/X11/xinit/xinitrc ~/.xinitrc
~/.xinitrc

# ...

# !!! Remove several lines from "twm" to "xterm",
# !!! since we don't need them and they throw error if not removed

# Start Desktop Environment
exec dbus-run-session -- startplasma-x11

Then restart services:

sudo systemctl restart xrdp xrdp-sesman

When I ran Remote Desktop Connection in  Windows 11, the RDP connection connected and logged in to the KDE Plasma desktop!

Offline

#3 2023-05-05 18:38:02

Perro
Member
Registered: 2023-05-02
Posts: 8

Re: Help with xrdp setup

Thank you! Just confirming that this works with xorgxrdp-glamor, too

Offline

#4 2023-07-23 06:48:31

wenbushi
Member
Registered: 2016-11-10
Posts: 14

Re: Help with xrdp setup

It works! Thanks for sharing!

Offline

#5 2023-07-23 11:24:52

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Help with xrdp setup

The OP has not been back since May 8, so I am going to consider this thread abandoned and close it now.

Offline

Board footer

Powered by FluxBB