Hi All,
Fedora 41 Xfce 4.12
I am trying to set up xRDP with Xfce. When I log into xRDP from mstsc.exe (Windows 10), I am prompted (session = Xorg) from my user name and password. After entering it, I get a blue screen that eventually times out with
Can't create session for user todd -X server could not be started.
What am I doing wrong?
-T
This is the instructors I am following:
Install Xrdp Server to connect to Fedora Desktop Xfce from the Windows Remote Desktop feature.
References: https://www.server-world.info/en/note?os=Fedora_41&p=desktop&f=6
https://www.reddit.com/r/debian/comments/1hzuvww/how_to_switch_from_gnome_to... https://idroot.us/install-xrdp-centos-8/
[1] Install and Start Xrdp Server. # dnf -y install xrdp # systemctl enable --now xrdp # systemctl start xrdp
[2] vi /etc/xrdp/xrdp.ini Replace the port with a masked port For example: port=Not_3389 comment out all of [Xvnc] and [X11rdp] uncomment all of [Xorg] [Xorg] name=Xorg lib=libxup.so username=ask password=ask ip=127.0.0.1 port=-1 code=20 ; Frame capture interval (milliseconds) h264_frame_interval=16 rfx_frame_interval=32 normal_frame_interval=40
# systemctl restart xrdp
[3] If Firewalld is running, allow RDP port. # firewall-cmd --add-port=[port_you_chose]/tcp # firewall-cmd --runtime-to-permanent # firewall-cmd --reload
[4] vi /etc/xrdp/startwm.sh
# test -x /etc/X11/Xsession && exec /etc/X11/Xsession # exec /bin/sh /etc/X11/Xsession exec /usr/bin/xfce4-session
chmod 755 /etc/xrdp/startwm.sh # systemctl restart xrdp
[5] Connect from Windows clients. <Win><R> mstsc.exe
An example on Windows 11. --> Open Start Menu --> [Windows Tool] --> [Remote Desktop Connection]
On 3/31/25 1:04 PM, ToddAndMargo via users wrote:
Hi All,
Fedora 41 Xfce 4.12
I am trying to set up xRDP with Xfce. When I log into xRDP from mstsc.exe (Windows 10), I am prompted (session = Xorg) from my user name and password. After entering it, I get a blue screen that eventually times out with
Can't create session for user todd -X server could not be started.
What am I doing wrong?
-T
Figured it out. ALL the direction on the web were missing too much information. I actually found what was missing in one of my notes I had taken years ago for FC25.
Missing was # dnf install xorgxrdp
and # systemctl enable xrdp-sesman.service # systemctl start xrdp-sesman.service
Also see: Installing XRDP on Fedora 25 xrdp.install.configue.txt
and the syntax on /etc/xrdp/startwm.sh exec /bin/sh /usr/bin/startxfce4
-T
Install Xrdp Server to connect to Fedora Desktop Xfce from the Windows Remote Desktop feature. References: https://www.server-world.info/en/note?os=Fedora_41&p=desktop&f=6
https://www.reddit.com/r/debian/comments/1hzuvww/how_to_switch_from_gnome_to... https://idroot.us/install-xrdp-centos-8/
[1] Install and Start Xrdp Server. # dnf -y install xrdp xorgxrdp
# systemctl enable xrdp.service # systemctl start xrdp.service # systemctl enable xrdp-sesman.service # systemctl start xrdp-sesman.service
[2] vi /etc/xrdp/xrdp.ini Replace the port with a masked port For example: port=Not_3389 comment out all of [Xvnc] and [X11rdp] uncomment all of [Xorg] [Xorg] name=Xorg lib=libxup.so username=ask password=ask ip=127.0.0.1 port=-1 code=20 ; Frame capture interval (milliseconds) h264_frame_interval=16 rfx_frame_interval=32 normal_frame_interval=40
# systemctl restart xrdp
[3] If Firewalld is running, allow RDP port. # firewall-cmd --add-port=[port_you_chose]/tcp # firewall-cmd --runtime-to-permanent # firewall-cmd --reload
[4] vi /etc/xrdp/startwm.sh
# test -x /etc/X11/Xsession && exec /etc/X11/Xsession # exec /bin/sh /etc/X11/Xsession exec /bin/sh /usr/bin/startxfce4
chmod 755 /etc/xrdp/startwm.sh # systemctl restart xrdp
[5] Connect from Windows clients. <Win><R> mstsc.exe
An example on Windows 11. --> Open Start Menu --> [Windows Tool] --> [Remote Desktop Connection]