workaround/solved? for Win7 Re: Uncommon problems with RDP, clipboard and Windows

Sean Blanton <[email protected]> Wed, 15 Aug 2012 11:05:00 -0500
Newsgroups gmane.network.rdesktop.user
Message-ID <CAD0pDW5J_0HxsEnqAmWSm93NPx6OZS=259JUym-59Wxt43TqSg@mail.gmail.com>
I have it working on Win7 - it might be related to fast user switching. I
went to VNC as a workaround and noticed it only worked when I also had
rdesktop connected. If the rdesktop client session was minimized, on
another virtual desktop or not connected, the vnc client session went dark.
This gave another opportunity to Google, where I found VNC doesn't support
fast user switching. I log off, log back in, reconnect with rdesktop and
debug messages from rdesktop console start streaming - copy and paste works
like a charm.

It still doesn't quite make sense - the problem with VNC is that when
rdesktop is disconnect, it seems to switch my login "out".

http://kb.realvnc.com/questions/48/I%27m+getting+a+black+screen+when+I+connect+to+VNC+Server

I'm pretty sure there's at least one person out there who is a bigger idiot
than I, but I did assume rebooting the computer involved logging off.
Rebooting did not resolve the issue, or I somehow repeated some steps that
led me to the same place. I'm not sure how, because there is not even a
keyboard or monitor attached to it, so I always connect with the same
rdesktop bash script. Is Win7 "caching" log on info on reboot as a way for
Windows to start up faster? Explicitly logging off and logging back on
worked. How did I get in this mode as the sole user on the box? When will I
pop back into fast user switching mode? What a pain!

Still, there might be something there for you guys to take a look at -
clipboard compatibility with fast user switching. Or is it just some f'd up
Windows thing? If I can help let me know. Right now, I don't even know if I
can reproduce the problem.

I'm ditching the old dirty WinXP box - not worth debugging.

Thanks for Listening,
Sean

Sean Blanton
[email protected]

On Tue, Aug 14, 2012 at 12:39 PM, Sean Blanton <[email protected]> wrote:

> Hi Y'all,
>
> Great product. I'm pretty sure I have a generally RDP problem and not
> something specific to rdesktop, but I'm trying to use rdesktop and need
> some advice.
>
>  I can't get any rdp client to copy and paste from Fedora to Windows,
> trying every high-level thing I could think of or could find in search
> results. All the other functionality seems fine.
>
> *** Windows 7, copying from Linux and trying to paste in Windows 7 rdp
> session is not successful, and crashes Microsoft products like Outlook,
> Write and Sticky Notes.
>
> *** Windows XP, copying from Linux and trying to paste into an rdp WinXP
> session, I get the 1) kill/start rdpclip 2) It works at least once, 3)
> rdpclip goes into high cpu state. 4) pasting becomes dodgy. Repeatable.
>
> I think it's time to fire up Wireshark, but I'm not familiar with the rdp
> protocol(s). Or, what do you all think?
>
> Details:
>
> I have a 4-monitor Fedora 17 desktop running KDE. I don't think I have
> anything fancy running on it.
>
> 1. Same behavior using rdesktop, xfreerdb, vinagre, krc. rdesktop is my
> preferred client, so I'm here!
> 2. Same behavior with Fedora 13 & Fedora 17 connecting to WinXP.
> 3. I'm aware that WinXP has a different clipboard api than Windows 7. I'm
> trying to ditch WinXP and don't care if it ever works, but it may be useful
> to help debug this issue.
> 4. My company uses a lot of multicast and could have messed something up
> in an attempt to be secure on Windows, but not likely messed to much with
> Fedora.
>
> Some of the debugging I've done (too much before coming here, I believe):
>
> (0. Scoured the web via DuckDuckGo and Google.)
> 1. Checked various registry entries
> 2. Tried many permutations of rdesktop arguments including
> -r:clipboard:PRIMARYCLIPBOARD, etc.
> 3. Tried several anecdotal fixes on the web.
> 4. Messed around with klipper and any other setting on Fedora I could find.
> 5. Built rdesktop with --with-debug-clipboard. I then tryed to paste into
> the rdp session - result was: no output for Win7, copious infinite loop
> type output for WinXP:
>
> Win7:
>
> $ ~/work/c/rdesktop-1.7.1/rdesktop -x lan -g 2800x1100 -5 -K -d acme -u
> jdoe -p 'xxxx' <win7 ip address>
> Autoselected keyboard map en-us
> WARNING: Remote desktop does not support colour depth 24; falling back to
> 16
> <paste>
>
> Win XP:
>
> $ (~/work/c/rdesktop-1.7.1/rdesktop -r sound:local -x lan -g 2800x1100 -5
> -K -r clipboard:CLIPBOARD -0 -u jdoe -p 'xxxx' <winXP ip address> & ) &&
> sleep 3 && killall -9 rdesktop
> Autoselected keyboard map en-us
> WARNING: Remote desktop does not support colour depth 24; falling back to
> 16
> CLIPRDR recv: type=1, status=0, length=0
> Probing selections.
> xclip_handle_SelectionNotify: selection=CLIPBOARD, target=TARGETS,
> property=_RDESKTOP_CLIPBOARD_TARGET
> Target 0: TIMESTAMP
> Target 1: TARGETS
> Target 2: MULTIPLE
> Target 3: SAVE_TARGETS
> Target 4: text/rtf
> Target 5: TEXT/RTF
> Target 6: application/rtf
> Target 7: UTF8_STRING
> Other party supports UTF8_STRING, choosing that as best_target
> Target 8: COMPOUND_TEXT
> Target 9: STRING
> Unable to find a textual target to satisfy RDP clipboard text request
> Unable to find suitable target. Using default text format.
> cliprdr_send_simple_native_format_announce
> cliprdr_send_native_format_announce
> CLIPRDR send: type=2, status=0, length=36
> CLIPRDR recv: type=2, status=0, length=0
> CLIPRDR send: type=3, status=1, length=0
> xclip_handle_SelectionRequest: selection=CLIPBOARD, target=TARGETS,
> property=_QT_SELECTION
> xclip_provide_selection: requestor=0x02000009, target=TARGETS,
> property=_QT_SELECTION, length=8
> xclip_handle_SelectionRequest: selection=CLIPBOARD, target=TARGETS,
> property=GDK_SELECTION
> xclip_provide_selection: requestor=0x05800d03, target=TARGETS,
> property=GDK_SELECTION, length=8
> CLIPRDR recv: type=3, status=1, length=0
> CLIPRDR recv: type=4, status=0, length=4
> Request from server for format 13
> xclip_handle_SelectionRequest: selection=CLIPBOARD, target=TARGETS,
> property=_RDESKTOP_CLIPBOARD_TARGET
> xclip_provide_selection: requestor=0x03000002, target=TARGETS,
> property=_RDESKTOP_CLIPBOARD_TARGET, length=8
> xclip_handle_SelectionNotify: selection=CLIPBOARD, target=TARGETS,
> property=_RDESKTOP_CLIPBOARD_TARGET
> Target 0: TARGETS
> Target 1: TIMESTAMP
> Target 2: _RDESKTOP_NATIVE
> Target 3: _RDESKTOP_CLIPBOARD_FORMATS
> Target 4: UTF8_STRING
> Other party supports UTF8_STRING, choosing that as best_target
> Target 5: text/unicode
> Target 6: STRING
> Target 7: STRING
> xclip_handle_SelectionRequest: selection=CLIPBOARD, target=UTF8_STRING,
> property=_RDESKTOP_CLIPBOARD_TARGET
> cliprdr_send_data_request
> CLIPRDR send: type=4, status=0, length=4
> CLIPRDR recv: type=5, status=2, length=0
> xclip_refuse_selection: requestor=0x03000002, target=UTF8_STRING,
> property=_RDESKTOP_CLIPBOARD_TARGET
> cliprdr_send_data
> CLIPRDR send: type=5, status=1, length=0
> cliprdr_send_simple_native_format_announce
> cliprdr_send_native_format_announce
> CLIPRDR send: type=2, status=0, length=36
> CLIPRDR recv: type=4, status=0, length=4
> Request from server for format 13
> CLIPRDR recv: type=3, status=2, length=0
> cliprdr_send_native_format_announce
> CLIPRDR send: type=2, status=0, length=36
> xclip_handle_SelectionRequest: selection=CLIPBOARD, target=TARGETS,
> property=_RDESKTOP_CLIPBOARD_TARGET
> xclip_provide_selection: requestor=0x03000002, target=TARGETS,
> property=_RDESKTOP_CLIPBOARD_TARGET, length=8
> CLIPRDR recv: type=4, status=0, length=4
> Request from server for format 13
> xclip_handle_SelectionNotify: selection=CLIPBOARD, target=TARGETS,
> property=_RDESKTOP_CLIPBOARD_TARGET
> Unable to find a textual target to satisfy RDP clipboard text request
> cliprdr_send_data
> CLIPRDR send: type=5, status=1, length=0
> cliprdr_send_simple_native_format_announce
> cliprdr_send_native_format_announce
> CLIPRDR send: type=2, status=0, length=36
> xclip_handle_SelectionRequest: selection=CLIPBOARD, target=TARGETS,
> property=_RDESKTOP_CLIPBOARD_TARGET
> xclip_provide_selection: requestor=0x03000002, target=TARGETS,
> property=_RDESKTOP_CLIPBOARD_TARGET, length=8
> CLIPRDR recv: type=3, status=2, length=0
> cliprdr_send_native_format_announce
> CLIPRDR send: type=2, status=0, length=36
> CLIPRDR recv: type=4, status=0, length=4
> Request from server for format 13
> xclip_handle_SelectionNotify: selection=CLIPBOARD, target=TARGETS,
> property=_RDESKTOP_CLIPBOARD_TARGET
>
> ...ad infinitum - Not sure if I've captured the interesting parts when I
> pasted.
>
> Sincerely,
> Sean
>
> Sean Blanton
> [email protected]
>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
rdesktop-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdesktop-users