Dear XRDP,
Red Hat asked me to report this with you.
https://bugzilla.redhat.com/show_bug.cgi?id=1356732
This bug makes it an absolute nightmare to do remote maintenance!
Would one of our intrepid heroes please fix this for me?
Client 1:
Scientific Linux 7.2 (RHEL 7.2 Clone)
rdesktop-1.8.3-1.el7.nux.x86_64
Client 2:
mstsc.exe 6.3.9600.16415 from Windows 7 Professional
Server:
Fedora core 24, x64
xrdp-0.9.0-5.fc24.x86_64
Xfce 4.12
Neither clipboard from Linux works or the clipboard from Windows. Yes both are configured for clipboard and both work when logged into a Windows RDP (terminal services) server.
And the clipboard _IS_ supported in xrdp as of 0.7.0. See
http://www.xrdp.org/index.php?option=com_content&view=article&id=12:clipboard&catid=2:documents&Itemid=7
"The clipboard in RDP support several formats. As of xrdp v 0.7.0,
bitmaps are supported. You can copy and paste images between your
Linux or Windows client and xrdp server"
This also reproduces on Scientific Linux 7.2 and xrdp 0.9.0 as the server. I had to upgrade the server to FC24 do to SL 7.2 randomly not recognizing my system drives, which I reported under
https://bugzilla.redhat.com/show_bug.cgi?id=1353423
This is a nightmare. Please fix as soon as possible!
Many thanks,
-T
I'm not sure if this is the answer to your problem, but it helped me.
1) in your Remote Desktop Client, check the configuration and make sure printers and smart cards are UN selected. This might be in the advanced settings
2) make sure FUSE is installed and your user has permissions to the 'fuse' group.
Why do you need to disable printers in the clients?
On the server, "fuse" is installed but there is no such fuse group:
$ rpm -qa fuse
glusterfs-fuse-3.8.5-1.fc24.x86_64
fuse-libs-2.9.7-1.fc24.x86_64
fuse-2.9.7-1.fc24.x86_64
$ grep -i fuse /etc/group
$ # nothing comes back
What you did to fix it ?
I pressed the wrong button on the this screen. I though "close and Comment" was "close" the edit window, not the case. So I am reopening it.
No symptom change with printer redirects and file sharing redirect removed:
rdesktop -u "todd" -g 92%% -a 16 -r clipboard:CLIPBOARD uuu.vvv.www.xxx:yyy
Should there be a "fuse" group"?
do you mind trying with xfreerdp client ?
I don't mind. But I do not use xfreerdp. I use rdesktop in Linux and mstsc in Windows and both work fine with other RDP servers. It is just xrdp that the clipboard does not work with.
I just installed freerdp.x86_64 0:1.0.2-6.el7_2.1 on my Linux client machine. No symptom change.
Do you need me to keep xfreerdp around? I was about to delete it.
rdesktop is a major cause of trouble. Please consider moving to xfreerdp.
The clipboard when used with xfreerdp also does not work. There was no symptom change.
It also does not matter what client I am using, the clipboard still does not work with xrdp. The clipboards when used with those clients do work with various Windows RDP servers. Therefore the issue is on the server side with xrdp or supporting utilities.
The problem with trying other Linux clients (none of which work with xrdp's clipboard) is that xrdp needs to work with Windows clients as well. And the clipboard when used with mstsc.exe from both XP and W7 does not work with xrdp.
xfreerdp does not work as well as rdesktop either. (rdesktop's command line can be a chore to master though.) What issues are you having with it?
Clipboard (both direction) works fine, at least in RHEL 7.2.
Two things that might help:
On 11/24/2016 04:14 AM, nktl wrote:
Clipboard (both direction) works fine, at least in RHEL 7.2.
Two things that might help:
- Make sure you use latest devel build with 'native' xorgxrdp drivers
(not VNC-proxy session)- Check with different session manage / desktop environment - KDE
distributed with RHEL 7.2 definitively works OK.—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/neutrinolabs/xrdp/issues/469#issuecomment-262763008, or
mute the thread
https://github.com/notifications/unsubscribe-auth/AAzdxfB9kQkctwppO1DY458M5MiNvALYks5rBX-5gaJpZM4Kj_W8.
Hi Nktl,
Server's GUI is Xfce 4.12. I do not have room for KDE nor
the patience with it (it is buggy).
This is my xorg. Do you see anything wrong?
Many thanks,
-T
xrdp server: (Fedora Core 24)
$ rpm -qa *xorg*
xorg-x11-xkb-utils-7.7-17.fc24.x86_64
xorg-x11-utils-7.5-21.fc24.x86_64
abrt-addon-xorg-2.8.2-1.fc24.x86_64
xorg-x11-xauth-1.0.9-5.fc24.x86_64
xorg-x11-font-utils-7.5-31.fc24.x86_64
xorg-x11-server-utils-7.7-19.fc24.x86_64
xorg-x11-drv-openchrome-0.5.0-1.fc24.x86_64
xorg-x11-drv-vmmouse-13.1.0-3.fc24.x86_64
xorg-x11-fonts-Type1-7.5-16.fc24.noarch
xorg-x11-resutils-7.5-13.fc24.x86_64
xorg-x11-drv-vmware-13.0.2-11.20150211git8f0cf7c.fc24.x86_64
xorg-x11-drv-fbdev-0.4.3-24.fc24.x86_64
xorg-x11-drv-qxl-0.1.4-7.fc24.x86_64
xorg-x11-drv-vesa-2.3.2-24.fc24.x86_64
xorg-x11-server-Xorg-1.18.4-4.fc24.x86_64
xorg-x11-drv-nouveau-1.0.12-4.fc24.x86_64
xorg-x11-server-common-1.18.4-4.fc24.x86_64
xorg-x11-drv-evdev-2.10.3-1.fc24.x86_64
xorg-x11-fonts-ISO8859-1-100dpi-7.5-16.fc24.noarch
xorg-x11-xinit-1.3.4-11.fc24.x86_64
xorg-x11-drv-intel-2.99.917-24.20160712.fc24.x86_64
xorg-x11-drv-synaptics-1.8.3-2.fc24.x86_64
xorg-x11-drv-ati-7.6.1-3.20160215gitd41fccc.fc24.x86_64
xorg-x11-drv-wacom-0.32.0-2.fc24.x86_64
The server is now running Fedora Core 25. MSTSC.exe from Windows 7 Professional is still not able to copy and paste from/to the server. Tears!
Add CHANSRV_LOG_LEVEL=LOG_LEVEL_DEBUG to SessionVariables section in sesman.ini and restart your session.
You can see more logs for clipboard. The log is written to ~/.local/share/xrdp/xrdp-chansrv.log or ~/xrdp-chansrv.log.
Hi Metalefty,
Done and I did a
systemclt restart xrdp-sesman.service; systemctl restart xrdp.service
I promptly got lkicked off, but was able to log in again. This is what appeared in the log.
$ more xrdp-chansrv.log
[20161214-19:04:44] [CORE ] main: app started pid 3639(0x00000e37)
[20161214-19:04:44] [INFO ] main: DISPLAY env var set to :10.0
[20161214-19:04:44] [INFO ] main: using DISPLAY 10
[20161214-19:04:45] [INFO ] channel_thread_loop: thread start
[20161214-19:04:45] [INFO ] A connection received from: 0.0.0.0 port 0
[20161214-19:04:45] [DEBUG] my_trans_conn_in:
[20161214-19:04:45] [INFO ] An established connection closed to endpoint: NULL:N
ULL - socket: 11
[20161214-19:04:45] [DEBUG] my_trans_data_in:
[20161214-19:04:46] [DEBUG] process_message_init:
[20161214-19:04:46] [INFO ] send_init_response_message:
[20161214-19:04:46] [DEBUG] my_trans_data_in:
[20161214-19:04:46] [DEBUG] process_message_channel_setup:
[20161214-19:04:46] [DEBUG] process_message_channel_setup: num_chans 0
[20161214-19:04:46] [DEBUG] send_channel_setup_response_message:
Does this tell you anything?
-T
What do you see in the log when copy something to clipboard?
I put a tail on the log file. Then I copied something int the clipboard on the client side. No log change. Then I copied something into the clipboard on the server side. No log change. No amount of copying and pasting on either side caused a change in the log file.
You just can't copy/paste between the client/server. The server and the client can copy and paste to themselves just fine
I am using xrdp with both RHEL 6.2 and RHEL 7.1 servers and are able to use
the clipboard from Windows 7 RDP clients. Tomorrow I'll see what we're
doing to get this working.
-Nate
On Mon, Dec 19, 2016, 7:29 PM ToddAndMargo notifications@github.com wrote:
I put a tail on the log file. Then I copied something int the clipboard on
the client side. No log change. Then I copied something into the clipboard
on the server side. No log change. No amount of copying and pasting on
either side caused a change in the log file.You just can't copy/paste between the client/server. The server and the
client can copy and paste to themselves just fine—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
https://github.com/neutrinolabs/xrdp/issues/469#issuecomment-268137407,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE_NQXdtDY_LUtxaRDdFQhq6JOy4bkP0ks5rJz1zgaJpZM4Kj_W8
.
On 12/20/2016 08:11 PM, Nate wrote:
I am using xrdp with both RHEL 6.2 and RHEL 7.1 servers and are able to use
the clipboard from Windows 7 RDP clients. Tomorrow I'll see what we're
doing to get this working.-Nate
On Mon, Dec 19, 2016, 7:29 PM ToddAndMargo notifications@github.com wrote:
I put a tail on the log file. Then I copied something int the clipboard on
the client side. No log change. Then I copied something into the clipboard
on the server side. No log change. No amount of copying and pasting on
either side caused a change in the log file.You just can't copy/paste between the client/server. The server and the
client can copy and paste to themselves just fine
Hi Nate,
This server is on Fedora Core 25. RHEL 7.2 does not work
on a C236 chipset based motherboard (I found out the
hard way):
The bug I reported on it:
https://bugzilla.redhat.com/show_bug.cgi?id=1353423
Wish I could use RHEL or clones. :'(
I will be in the office the rest of Wednesday and all day
Thursday to assist. :-)
Thank you!
-T
I seem to have the same issue from the latest 'devel' branch. It looks like the xrdp-chanserv becomes defunct. Everything seems to continue working except for copy&paste. I still need to figure out why that process stops working.
Yves
Found why it was not working for me. I have an alternative location of the .Xauthority file, normally set by the XAUTHORITY environment variable, but it gets lost when xrdp-chansrv launches. It fails to connect to the x server and hence can't perform its tasks.
Yves
Same for me, neither xfreerdp or rdesktop works. Is there a method to fix this issue. @yvesdm3000
I am also experiencing this on LInux Mint 18 and Mate.
Using Windows RDP as well as xfreerdp. It's happening on two different systems, so I'll be happy to help if needed.
Edit: After adding logging lines for the chansrv and a restart, the clipboard now appears to be working.
Is there a new update for this to try?
Could you try the latest release?
I upgraded to xrdp-0.9.1-5.fc25.x86_64. Rebooted and got:

So I downgraded back to xrdp-0.9.0-6.fc25.x86_64. A least I am working again, even without the clipboard
Fedora 25 updates-testing has xrdp 0.9.1-5. It also has xorgxrdp 0.2.0-2.
Please try them.
You can also install xrdp and xorgxrdp from the git sources. It's not hard,
and it's documented in the Wiki.
Pavel
On Wed, Mar 15, 2017, 12:43 AM ToddAndMargo notifications@github.com
wrote:
I am currently running xrdp-0.9.0-6.fc25.x86_64 on Fedora Core 25. Is
there an RPM I could lead of the latest release? I see 0.9.1 up on
www.xrdp.org, but no RPM. I suppose I could slip it into 0.9.0's rpm, but
I won't have enough free time for about a month.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/neutrinolabs/xrdp/issues/469#issuecomment-286664619,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABQaYCciyPLFqLc9azpIyBH1W5bzDZ3Zks5rl5aCgaJpZM4Kj_W8
.
I did, I had to revert to 0.9.0. I updated the post after you read it.
You should check /var/log/xrdp-sesman.log for possible reasons for that failure. It includes the command line used to start Xvnc. Try running it to see why Xvnc fails.
I confirm that clipboard is not working in Fedora 25. The xrdp-chansrv log shows (if debug is enabled):
[20170319-00:23:27] [DEBUG] process_message_channel_setup: num_chans 0
It means there are no channels, including the channel used for clipboard information.
I confirm that clipboard is not working in Fedora 25
Then I won't bother upgrading until you tell me it is fixed. :-)
It turns out xfreerdp doesn't enable clipboard by default. If I use the clipboard option, clipboard works in both directions. The xrdp-chansrv log shows one channel. rdesktop supports clipboard without any options, but it loses clipboard contents sometimes.
Therapeutic Herb Manual
How do I do this?
It's in the manual. The command line option is /clipboard
Hi Proski,
I have spent hours trying to figure that out before I posted. I tried every which way to the wind. The reason I asked you was so that there would be zero ambiguity as to whether I did it correctly or not.
To make sure I have done this correctly, I need:
1) the name and path of the INI file
2) the section and the parameter to turn on the clipboard i the INI file
3) how to reload the INI into the XRDP server
I know this sounds like a homework assignment, but I really do not want to blow it again. And if it doesn't work, I want to make sure I report it correctly
You forgot to say what you were trying to achieve. The onus should be on the bug reporter to describe in all details how to reproduce the bug. i'm yet to see that description with xrdp 0.9.1.
The clipboard support is enabled by default in the xrdp configuration files. If you simply uninstall xrdp package, remove /etc/xrdp directory, and install xrdp package again, it should have clipboard enabled.
If you don't know how to reload configuration files, restarting xrdp and xrdp-sesman processes should work. If that's too complicated, just reboot and start xrdp and xrdp-sesman using systemctl start xrdp
To enable clipboard support in xfreerdp, run it like this:
xfreerdp /clipboard /v:localhost
I did not edit any configuration files for xfreerdp or rdesktop.
I suggest that you use different GUI programs on the client and the server to make sure they communicate using clipboard and not any other mechanisms. I used leafpad on the server (i.e. within the xfreerdp window) and gedit locally. I can copy in one window and paste in the other.
I am try to achieve one of two things: 1) get a working clipboard or 2) since you say you have it working, a bug report referencing this upstream report to Red Hat.
I will try uninstalling xrdp, renaming /etc/xrdp, and reinstalling the latest version. I usually test by copying from Firefox to Leafpad. I have a bug report open with Red Hat on some other piece of software (I forget) where the upgrade does not fix changes in the ini file and things get messed up pretty bad, so why should xrdp be an exception? And if that is it, Red Hat will have two such bug reports on upgrades not fixing the ini file.
I do like xfreerdp better than rdesktop as it more stable and I can name my widows in the status bar, plus it is a ton faster with file sharing. It also will work when you turn off 3DES (Sugar32) on your server to comply with PCI (credit card security), where rdesktop will not. (I have directions on how to turn of 3DES on Windows. If anyone wants it, just drop me a line.)
My version of xfreerdp, which is a nightly, does not use "/clipboard", it uses "+clipboard", so
some things may have changed.
$ /opt/freerdp-nightly/bin/xfreerdp | grep -i clip
+clipboard (default:off) Redirect clipboard
Clipboard Redirection: +clipboard
Thank you for the help! I will get back.
-T
I removed and reinstalled xrdp.
old xrdp-0.9.0-6
new xrdp-0.9.1-5
This is new: xrdp.ini
[Globals]
allow_channels=true
[Channels]
cliprdr=true
Now when I try to paste locally into leaf pad from a copy in remote Firefox and visa versa, the widow crashes (network disconnect) with the following errors:
[22:19:16:450] [32704:32716] [ERROR][com.freerdp.channels.cliprdr.client] - cliprdr_process_format_list failed with error 1359!
[22:19:16:450] [32704:32716] [ERROR][com.freerdp.channels.cliprdr.client] - cliprdr_order_recv failed with error 1359!
[22:19:16:450] [32704:32705] [ERROR][com.freerdp.core] - cliprdr_virtual_channel_client_thread reported an error. Error was 1359
[22:19:16:450] [32704:32705] [INFO][com.freerdp.client.x11] - Network disconnect!
[22:19:16:450] [32704:32705] [ERROR][com.freerdp.client.x11] - Failed to check FreeRDP file descriptor
The crash probably caused by #302. It is already fixed by #615 after v0.9.1. It means the issue is not fixed in your version. Try the latest devel snapshot.
where do I find it? https://github.com/neutrinolabs/xrdp/releases is the same version I am using
Is this it? https://github.com/neutrinolabs/xrdp
I want you to try the snapshot newer than the latest release. Get the source & compile manually. You're using Scientific Linux, you can also try X11RDP-RH-Matic.
You got one for Fedora?
and you wouldn't happen to know what I need to get around the idiot sudo error
Sorry, user todd may not run sudo on rn4.
No, Fedora is out of my scope. If you can wait for a while, please wait upcoming v0.9.2 release. We will release v0.9.2 by the end of March. It will take a few more days v0.9.2 comes Fedora though.
i am trying on both Fedora 25 and RHEL 7.3 (clone). Both stop me with an idiot sudo on my user name ( I edited the sh file on Fedora and substituted dnf for yum). Maybe I just should wait.
RHEL 7 (and clones) are OK. Try it on RHEL clone but don't on Fedora 25. Not tested on Fedora at all.
Sudo request for documentation:
https://github.com/metalefty/X11RDP-RH-Matic/issues/41
Fedora request:
https://github.com/metalefty/X11RDP-RH-Matic/issues/42
If you have both Fedora and RHEL clone, try it on RHEL.
I can't get past the idiot sudo error on either. That would be error #41 above
That is your issue. If you don't have root privilege, you shouldn't run RH-Matic on the system.
I have root privileges! I tried running it as root and it wagged the finger at me and exited! I hate sudo. I use su instead
I've built the latest 0.9.2 version with xorgrdp and fuse on Linux Mint 18.10 x64 and enabled Mate desktop for xsession.
When connecting from Windows 7 with mstsc.exe, clipboard from Windows to Linux do NOT work.
Everything else seems to be fine. Should I wait for the next release?
I had the same problem. Looked elsewhere in google-land, then read this evolved thread ...
Suddenly it struck me!
VNC clipboard only works if vncconfig is running in the background.
So I type in a terminal: vncconfig -nowin& ... and voila; Clipboard is now working!
I've built the latest 0.9.2 version with xorgrdp and fuse on Linux Mint 18.10 x64 and enabled Mate desktop for xsession.
When connecting from Windows 7 with mstsc.exe, clipboard from Windows to Linux do NOT work.
Actually, text copy/paste is working now. The only thing I cannot do - is to copy a file from Win to Mint via RDP.
What can I do to fix it?
Got some new symptoms for you guys.
Client:
$ cat /etc/redhat-release: Scientific Linux release 7.3 (Nitrogen
$rpm -qa *rdp*
freerdp-nightly-2.0-0+0~20170131033816.283~1.git58cc996.x86_64
freerdp-plugins-1.0.2-10.el7.x86_64
freerdp-libs-1.0.2-10.el7.x86_64
Server:
$ cat /etc/redhat-release: Fedora release 25 (Twenty Five)
$ rpm -qa xrdp: xrdp-0.9.2-5.fc25.x86_64
Okay, now the fun begins!
If you copy (
And it gets more fun. On the server, if you open a terminal as a user and run
$ vncconfig -nowin &
Then copy something to the clipboard on the client, the connection immediately terminates. No paste involved.
PleaseFixPleaseFixPleaseFixPleaseFixPleaseFixPleaseFixPleaseFix
Many thanks,
-T
Running F25 with xrdp-0.9.2-12.fc25 and xorgxrdp-0.2.3-1.fc25. Everything works fine with Xorg, and faster!
The trick is to add the file /etc/X11/Xwrapper.config with a single line:
allowed_users = anybody
otherwise Xorg does not starts because the default is to allow X11 only if you are on the console.
To avoid the choice between Xvnc and Xorg on the client side, just comment the [Xvnc] section in /etc/xrdp/xrdp.ini and modify the 'autorun' line as: autorun=Xorg". The rest of the setup is OK out of the box.
To run your favorite Windows Manager without going through the generic startup, you can add a '.xinitrc' file in your home directory (with exec permissions) containing the following lines:
#!/bin/sh
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec mate-session
# Or whatever you like, like
# exec gnome-session --session=gnome-classic
On 08/02/2017 08:58 AM, yoru74 wrote:
Running F25 with xrdp-0.9.2-12.fc25 and xorgxrdp-0.2.3-1.fc25.
Everything works fine with Xorg, and faster!The trick is to add the file /etc/X11/Xwrapper.conf with a single line:
allowed_users = anybody
otherwise Xorg does not starts because the default is to allow X11 only
if you are on the console.To avoid the choice between Xvnc and Xorg on the client side, just
comment the [Xvnc] section in /etc/xrdp/xrdp.ini. The rest of the setup
is OK out of the box.—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/neutrinolabs/xrdp/issues/469#issuecomment-319717049, or
mute the thread
https://github.com/notifications/unsubscribe-auth/AAzdxQg13zpwdgnPI0pQ1W7gY79cBo8xks5sUJyzgaJpZM4Kj_W8.
Well ...
$ rpm -qa *xrdp*
xrdp-0.9.2-12.fc25.x86_64
xorgxrdp-0.2.2-1.fc25.x86_64
./usr/share/man/man5/Xwrapper.config.5.gz
I haven't got an XWrapper.conf. I have a man page
for it though. Any words of wisdom?
-T
Just create it:
echo 'allowed_users = anybody' > /etc/X11/Xwrapper.config
otherwise the default value is used (console).
Okay, did that and changed /etc/xrdp/xrdp.ini's to autorun=Xorg.
New symptom: instead of after I log on and my screen going dark and then dying, I actually get to see my user's screen for two seconds, them it dies.
Any words of wisdom?
Does this have anything to do with bug:
Clipboard not working with xrdp:
https://github.com/neutrinolabs/xrdp/issues/469#issuecomment-287684797
As I remember, this bug also caused you to crash
okay. I changed my freexrdp runb string from "+clipboard" to "-clipboard" and now I no longer crash.
Not having the clipboard work is a YUGE pain in the neck. Do you have an tips on that?
okay. I changed my freexrdp runb string from "+clipboard" to "-clipboard" and now I no longer crash.
This is the bug with Xvnc, but it works with Xorg. Did you chose the right way on the login screen ?
"Did you chose the right way on the login screen ?"
What do you mean?
"Did you chose the right way on the login screen ?"
What do you mean?
Short answer: when you open the RDP session, you have the login screen, with the XRDP logo on top and a login/password form. On top of the login you have a drop-down menu where you can choose Xvnc or Xorg (or more stuff depending on your /etc/xrdp/xrdp.ini). You have to choose Xorg, Xvnc crashes with the clipboard.
Long answer: RDP is just the transmission protocol, on your Linux server you need a graphical environment. Xvnc simulates a physical graphic card, on which X11 will work as it does on a physical console. Then xrdp gets whatever is drawn on this card and sends it to the client. Another approach is to install the package xorgxrdp, which makes X11 work directly with RDP, bypassing the need of a graphic card. This is what makes Xorg faster than Xvnc.
You have other options too, if you want to access the physical graphical console via RDP, you can activate the X11vnc, which will attach a VNC session to a running X session on a physical graphic card. Many other possibilities are commented out in the xrdp.ini file. In all cases, xrdp will synchronize a physical display, keyboard, mouse, etc on a remote client with a local graphical display. It will send graphics to the RDP client and transmit keyboard and mouse events to the RDP server.
X11 was written to do the same thing, but the server runs on the client side. Your window manager and graphical programs running on a Linux server are clients of the X11 server running on your terminal. Xorgxrdp is a lightweight X11 server that will simply translate X11 <-> RDP.
Graphical user interfaces are easy to use but extremely complex to implement. We have a huge stack of standards, from cables to protocols, that make the whole thing work (most of the time ;-). Don't feel bad if this seems complex to you, it IS complex!
On 08/03/2017 09:03 AM, yoru74 wrote:
"Did you chose the right way on the login screen ?" What do you mean?Short answer: when you open the RDP session, you have the login
screen, with the XRDP logo on top and a login/password form. On top of
the login you have a drop-down menu where you can choose Xvnc or Xorg
(or more stuff depending on your /etc/xrdp/xrdp.ini). You have to choose
Xorg, Xvnc crashes with the clipboard.Long answer: RDP is just the transmission protocol, on your Linux
server you need a graphical environment. Xvnc simulates a physical
graphic card, on which X11 will work as it does on a physical console.
Then xrdp gets whatever is drawn on this card and sends it to the
client. Another approach is to install the package xorgxrdp, which makes
X11 work directly with RDP, bypassing the need of a graphic card. This
is what makes Xorg faster than Xvnc.You have other options too, if you want to access the physical graphical
console via RDP, you can activate the X11vnc, which will attach a VNC
session to a running X session on a physical graphic card. Many other
possibilities are commented out in the xrdp.ini file. In all cases, xrdp
will synchronize a physical display, keyboard, mouse, etc on a remote
client with a local graphical display. It will send graphics to the RDP
client and transmit keyboard and mouse events to the RDP server.X11 was written to do the same thing, but the server runs on the client
side. Your between a local Xserver with a keyboard and a mouse and a
clients (your window manager and graphical programs) that handle the
events and send updates to the display. Xorgxrdp is a lightweight
graphic card that will simply redirect the updates to the client via
RDP. This is why it is the fastest of all methods.
Okay, I see.
I have a choice of X11rdp, Xvnc, or Xorg
Xvnc: I am able to log in as long as I have the clipboard
(-clipboard) disabled
Xorg: with +clipboard, after entering my password and attempting
to show my screen, I die. With -clipboard, after entering
my password, I get a blank cyan screen.
X11rdp: after entering my password, just gives me a blank
cyan screen (with or without the clipboard).
So the only one I am able to use is Xvnc and only without
the clipboard.
By the way, I reproduced the clipboard thing with M$'s MSTSC
yesterday at a customer site.
I have a choice of X11rdp, Xvnc, or Xorg
Xvnc: I am able to log in as long as I have the clipboard
(-clipboard) disabledXorg: with +clipboard, after entering my password and attempting
to show my screen, I die. With -clipboard, after entering
my password, I get a blank cyan screen.X11rdp: after entering my password, just gives me a blank
cyan screen (with or without the clipboard).
Comment out the X11rdp and Xvnc sections in your /etc/xrdp/xrdp.ini file and restart xrdp (systemctl restart xrdp). X11rdp is used to link to an existing X11 session on the server, and Xvnc is buggy. Focus on Xorg.
Verify that xorgxrdp is installed on the server, and that you created the Xwrapper.config as stated above (dnf install xorgxrdp; cat /etc/X11/Xwrapper.config).
You can see the command that is launched by xrdp in /var/log/xrdp-sesman.log. You should see something like this:
setpriv --no-new-privs Xorg :21 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
Somehow your Xorg is not able to start. Login via ssh as the user that will use RDP (or simply "su - your_user" if you are already logged in as root), and run the same command from a shell, starting from Xorg (the 'setpriv --no-new-privs' is just to limit the privileges of the X server). You will get more information why it is not running.
On 08/03/2017 09:40 AM, yoru74 wrote:
I have a choice of X11rdp, Xvnc, or Xorg Xvnc: I am able to log in as long as I have the clipboard (-clipboard) disabled Xorg: with +clipboard, after entering my password and attempting to show my screen, I die. With -clipboard, after entering my password, I get a blank cyan screen. X11rdp: after entering my password, just gives me a blank cyan screen (with or without the clipboard).Comment out the X11rdp and Xvnc sections in your /etc/xrdp/xrdp.ini file
and restart xrdp (systemctl restart xrdp). X11rdp is used to link to an
existing X11 session on the server, and Xvnc is buggy. Focus on Xorg.Verify that xorgxrdp is installed on the server, and that you created
the Xwrapper.config as stated above (dnf install xorgxrdp; cat
/etc/X11/Xwrapper.config).You can see the command that is launched by xrdp in
/var/log/xrdp-sesman.log. You should see something like this:|setpriv --no-new-privs Xorg :21 -auth .Xauthority -config
xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log|Somehow your Xorg is not able to start. Login via ssh as the user that
will use RDP (or simply "su - your_user" if you are already logged in as
root), and run the same command from a shell, starting from Xorg (the
'setpriv --no-new-privs' is just to limit the privileges of the X
server). You will get more information why it is not running.
Thank you! I will be at one of the customer's site today
working on his network parameter firewall. It will be a
good time to test this.
Comment out the X11rdp and Xvnc sections in your /etc/xrdp/xrdp.ini file
done
and restart xrdp (systemctl restart xrdp). X11rdp is used to link to an existing X11 session on the server, and Xvnc is buggy. Focus on Xorg.
done
Verify that xorgxrdp is installed on the server,
It is:
xorgxrdp-0.2.3-1.fc25.x86_64
and that you created the Xwrapper.config as stated above (dnf install xorgxrdp; cat /etc/X11/Xwrapper.config).
I have an Xwrapper.conf but not a ".config":
allowed_users = anybody
You can see the command that is launched by xrdp in /var/log/xrdp-sesman.log. You should see something like this:
setpriv --no-new-privs Xorg :21 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20170804-22:41:27] [INFO ] starting xrdp-sesman with pid 4468
[20170804-22:41:27] [INFO ] listening to port 3350 on 127.0.0.1
Somehow your Xorg is not able to start. Login via ssh as the user that will use RDP (or simply "su - your_user" if you are already logged in as root), and run the same command from a shell, starting from Xorg (the 'setpriv --no-new-privs' is just to limit the privileges of the X server). You will get more information why it is not running.
from an ssh shell as the user:
$ setpriv --no-new-privs Xorg :21 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
/usr/libexec/Xorg.wrap: Only console users are allowed to run the X server
Attempting to log in still gies me a big blank cyan screen. And ssh shows:
[20170804-22:51:44] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20170804-22:51:44] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20170804-22:51:45] [INFO ] setpriv --no-new-privs Xorg :11 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20170804-22:51:54] [ERROR] X server for display 11 startup timeout
[20170804-22:51:54] [CORE ] waiting for window manager (pid 18082) to exit
[20170804-22:51:55] [ERROR] X server for display 11 startup timeout
[20170804-22:51:55] [ERROR] another Xserver might already be active on display 11 - see log
[20170804-22:51:55] [DEBUG] aborting connection...
[20170804-22:51:55] [CORE ] window manager (pid 18082) did exit, cleaning up session
[20170804-22:51:55] [INFO ] ++ terminated session: username todd, display :11.0, session_pid 17886, ip 50.37.22.95:34496 - socket: 12
Uncommenting [Xvnc] and using Xvnc allows me to log in. I just have to make sure I use "-clipboard" or I crash out.
The name is "Xwrapper.config" not "Xwrapper.conf", this is what gives you the error "Only console users are allowed to run the X server"
You are very close to make it work!
The name is "Xwrapper.config" not "Xwrapper.conf", this is what gives you the error "Only console users are allowed to run the X server"
That worked. The primary clipboard does not work (mouse over, middle click), but clipboard does (ctrl c ctrl v). And I have +clipboard enabled and no crashing.
I am now getting an Xfce Policy Kit error, but it does not affect operation:

Well, you are done, that nice dialog box is shown on your RDP connection!
Nothing to do with this thread, but the error probably comes from 2 policy agents running at the same time (like XFCE and GTK). Check your process list and installed packages.
On 08/09/2017 07:56 AM, yoru74 wrote:
Well, you are done, that nice dialog box is shown on your RDP connection!
Nothing to do with this thread, but the error probably comes from 2
policy agents running at the same time (like XFCE and GTK). Check your
process list and installed packages.
Thank you for all the effort you put in getting me there. Very
much appreciated!
The discussion is no longer clipboard issue but polkit issue, closing.
Most helpful comment
Short answer: when you open the RDP session, you have the login screen, with the XRDP logo on top and a login/password form. On top of the login you have a drop-down menu where you can choose Xvnc or Xorg (or more stuff depending on your /etc/xrdp/xrdp.ini). You have to choose Xorg, Xvnc crashes with the clipboard.
Long answer: RDP is just the transmission protocol, on your Linux server you need a graphical environment. Xvnc simulates a physical graphic card, on which X11 will work as it does on a physical console. Then xrdp gets whatever is drawn on this card and sends it to the client. Another approach is to install the package xorgxrdp, which makes X11 work directly with RDP, bypassing the need of a graphic card. This is what makes Xorg faster than Xvnc.
You have other options too, if you want to access the physical graphical console via RDP, you can activate the X11vnc, which will attach a VNC session to a running X session on a physical graphic card. Many other possibilities are commented out in the xrdp.ini file. In all cases, xrdp will synchronize a physical display, keyboard, mouse, etc on a remote client with a local graphical display. It will send graphics to the RDP client and transmit keyboard and mouse events to the RDP server.
X11 was written to do the same thing, but the server runs on the client side. Your window manager and graphical programs running on a Linux server are clients of the X11 server running on your terminal. Xorgxrdp is a lightweight X11 server that will simply translate X11 <-> RDP.
Graphical user interfaces are easy to use but extremely complex to implement. We have a huge stack of standards, from cables to protocols, that make the whole thing work (most of the time ;-). Don't feel bad if this seems complex to you, it IS complex!