Xfce messed up when using xrdp

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
Handiness4046
Level 1
Level 1
Posts: 2
Joined: Wed Jan 24, 2024 4:17 pm

Xfce messed up when using xrdp

Post by Handiness4046 »

Hey there,
I know this topic has been here a few times already but for some reason there doesn't seem to be a solution for it.
These are the topics I already found:
viewtopic.php?p=2114045
viewtopic.php?t=318007

My issue looks exactly like the screenshots already posted in the other topics.
I am using a fresh install of Linux Mint 21.3 Xfce and installed xRDP version 0.9.17.
Everything works and looks fine so far.
But then, when I reboot and connect via xRDP(from another Linux Machine, using Remmina) the nicely customized Mint-Xfce Desktop Environment is gone and I get something like a default Xfce DE with some broken remnants of the Mint-Xfce.
I found some guides that suggested putting startxfce4 in the .xsession-File but that did not change the behavior and from my understanding it shouldn't be necessary because I don't have multiple environments installed.

To me it seems like xRDP is trying to start a session but it doesn't use the proper environment or config files so I end up with a mess but really this is beyond my skill level and I have no idea how to proceed from here.

Has anyone been able to get this to work? Log in via xRDP and just receive the expected Mint-Xcfe Desktop Environment?
User avatar
JerryF
Level 16
Level 16
Posts: 6572
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Xfce messed up when using xrdp

Post by JerryF »

Are you remoting into your computer from another network or from within the same one?
Handiness4046
Level 1
Level 1
Posts: 2
Joined: Wed Jan 24, 2024 4:17 pm

Re: Xfce messed up when using xrdp

Post by Handiness4046 »

From within the same network.
User avatar
JerryF
Level 16
Level 16
Posts: 6572
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Xfce messed up when using xrdp

Post by JerryF »

When I get home from work this afternoon, I can post the steps I took to set up VNC and use that with Remmina.
User avatar
JerryF
Level 16
Level 16
Posts: 6572
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Xfce messed up when using xrdp

Post by JerryF »

I had some extra time this morning:

1. Remove the default Vino server:

Code: Select all

sudo apt-get -y remove vino
2. Install x11vnc:

Code: Select all

sudo apt-get -y install x11vnc
3. Create the directory for the password file:

Code: Select all

sudo mkdir /etc/x11vnc
4. Create the encrypted password file:

Code: Select all

sudo x11vnc --storepasswd /etc/x11vnc/vncpwd
You will be asked to enter (whatever you want) and verify the password. Then press Y to save the password file.

5. Create the systemd service file for the x11vnc service:

Code: Select all

xed admin:///lib/systemd/system/x11vnc.service
You'll be asked twice for your password. This is normal.

Copy/Paste the following code into the empty file.

#####
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -noxdamage -repeat -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target
#####

Save the file.

6: Reload the services:

Code: Select all

sudo systemctl daemon-reload
7. Enable the x11vnc service at boot time:

Code: Select all

sudo systemctl enable x11vnc.service
8. Start the service by:
Either rebooting or

Code: Select all

sudo systemctl start x11vnc.service
To allow VNC, open Firewall program.
Click on Rules.
Click on the + sign at the bottom to add a rule.
Use these settings:
Shutter_005.jpg
Do this for the other computer.
Post Reply

Return to “Xfce”