xrdp: Clipboard not working with xrdp

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

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 71 (18 by maintainers)

Most upvoted comments

“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!

What you did to fix it ?

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.