Skip to content

Instantly share code, notes, and snippets.

@ozgurgulsuna
Last active October 6, 2024 18:52
Show Gist options
  • Save ozgurgulsuna/d9d053c8ba0c82120271cfb2fb5d381d to your computer and use it in GitHub Desktop.
Save ozgurgulsuna/d9d053c8ba0c82120271cfb2fb5d381d to your computer and use it in GitHub Desktop.
xrdp , rdesktop, x session, problem, solution

Common Problems and Solutions with RDP

  • Problem #1 : XgetWindowProperty Failed

Observed with linux machine trying to connect to another linux machine with xrdp installed.

[ozgur@ozgur ~]$ rdesktop -u <USERNAME> -p <PASSWORD> <IP>
Connection established using plain RDP.
Clipboard(error): xclip_handle_SelectionNotify(), XGetWindowProperty failed
Clipboard(error): xclip_handle_SelectionNotify(), unable to find a textual target to satisfy RDP clipboard text request
Clipboard(error): xclip_handle_SelectionNotify(), XGetWindowProperty failed
Clipboard(error): xclip_handle_SelectionNotify(), XGetWindowProperty failed
Clipboard(error): xclip_handle_SelectionNotify(), XGetWindowProperty failed
Clipboard(error): xclip_handle_SelectionNotify(), XGetWindowProperty failed
Clipboard(error): xclip_handle_SelectionNotify(), XGetWindowProperty failed
Clipboard(error): xclip_handle_SelectionNotify(), XGetWindowProperty failed
Clipboard(error): xclip_handle_SelectionNotify(), XGetWindowProperty failed
X Error of failed request:  BadAtom (invalid Atom parameter)
  Major opcode of failed request:  17 (X_GetAtomName)
  Atom id in failed request:  0x6374652f
  Serial number of failed request:  2797
  Current serial number in output stream:  2797
  • Solution

since the protocol is carried over ssh, we need to edit ssh_config and sshd_config of the host and going machine. (This is happening because you are forwarding the X session over ssh. Make sure you have)

ForwardX11Trusted yes

ForwardX11 yes
  • Problem #2 : Windows size

rdesktop -g 90% <server_ip>

or

rdesktop -g 1280x1024 <server_ip>
@ozgurgulsuna
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment