-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clipboard not working with xrdp #469
Comments
I'm not sure if this is the answer to your problem, but it helped me.
|
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 $ grep -i fuse /etc/group |
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:
1. Make sure you use latest devel build with 'native' xorgxrdp drivers
(not VNC-proxy session)
2. 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
<#469 (comment)>, 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 |
Hi Metalefty, I promptly got lkicked off, but was able to log in again. This is what appeared in the log. $ more xrdp-chansrv.log 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 ***@***.***> 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
<#469 (comment)>,
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 ***@***.***> 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? |
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 ***@***.***> 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
<#469 (comment)>,
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. |
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: Fedora request: |
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. |
I had the same problem. Looked elsewhere in google-land, then read this evolved thread ... |
Actually, text copy/paste is working now. The only thing I cannot do - is to copy a file from Win to Mint via RDP. |
Got some new symptoms for you guys. Client: Server: Okay, now the fun begins! If you copy () something to the clipboard on the client, then past () it into the server (leafpad), the connection immediately closes. When you log back in, the text did indeed paste to the client. And it gets more fun. On the server, if you open a terminal as a user and run PleaseFixPleaseFixPleaseFixPleaseFixPleaseFixPleaseFixPleaseFix Many thanks, |
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: 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:
see #755 |
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
<#469 (comment)>, 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
# find / -iname \*Xwrapper.conf\*
./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: otherwise the default value is used (console). |
Okay, did that and changed /etc/xrdp/xrdp.ini's to 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: 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? |
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? |
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.
|
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:
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.
|
done
done
It is: rpm -qa xorgxrdpxorgxrdp-0.2.3-1.fc25.x86_64
I have an Xwrapper.conf but not a ".config": cat /etc/X11/Xwrapper.confallowed_users = anybody
tail /var/log/xrdp-sesman.log[20170804-22:41:27] [INFO ] starting xrdp-sesman with pid 4468
from an ssh shell as the user: Attempting to log in still gies me a big blank cyan screen. And ssh shows: tail /var/log/xrdp-sesman.log[20170804-22:51:44] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350) 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. |
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
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
The text was updated successfully, but these errors were encountered: