Not able to copy the selected text from vnc client to local Mac OS

Not able to copy the selected text from vnc client to local Mac OS.


I have vnc server running on ubuntu 16.04 and I am using real vnc.

not able to copy the text to and from the Mac OS.

kindly help me if you have any resolution for it.


thanks,

Rajanikanth

MacBook Pro 15”, macOS 10.14

Posted on May 30, 2019 7:41 AM

Reply
Question marked as Top-ranking reply

Posted on May 30, 2019 8:34 PM

Use RealVNC. It does the best job of copy & paste between macOS and Linux

https://www.realvnc.com/en/connect/download/viewer


I will mention that if you do not mind using the menu to do copy and paste, the "Chicken" vnc client actually works OK, but it requires more mousing. "Chicken" is a dependent of "Chicken of the VNC"


RealVNC has an Expert option to send a Middle Button Click

RealVNC -> Preferences -> Expert -> Emulate3 -> True

Now you click _BOTH_ Left _AND_ Right mouse buttons to seen a Middle Button Click.

HOWEVER, it requires a 3rd party mouse, as the magic mouse will not allow right and left click at the same time.


https://github.com/cl3m/MiddleClick/blob/master/README.md

will allow you to simulate a middle click on a trackpad


http://magicprefs.com/

can give your magic mouse a middle click


On Linux you must be running

vncconfig &


gnome-terminal works best "Control-Shift-C" copies text, and it seems anything you select on the Linux system is available in the macOS clipboard. "Control-Shift-V" pastes on Linux anything you put into the clipboard on the Mac.


You can modify xterm to use:

Shift+Ctrl+C

Shift+Ctrl+V

for Copy and Paste:


Create a $HOME/XTerm file and put the following in the file:


    XTerm*VT100.Translations: #override \
          Shift Ctrl<Key>V: insert-selection(CLIPBOARD) \n\
          Shift Ctrl<Key>V: insert-selection(PRIMARY) \n\
          Shift Ctrl<Key>C: copy-selection(CLIPBOARD) \n\
          Shift<Btn1Down>: select-start() \n\
          Shift<Btn1Motion>: select-extend() \n\
          Shift<Btn1Up>: select-end(CLIPBOARD) \n\
14 replies
Question marked as Top-ranking reply

May 30, 2019 8:34 PM in response to rajanikanthja

Use RealVNC. It does the best job of copy & paste between macOS and Linux

https://www.realvnc.com/en/connect/download/viewer


I will mention that if you do not mind using the menu to do copy and paste, the "Chicken" vnc client actually works OK, but it requires more mousing. "Chicken" is a dependent of "Chicken of the VNC"


RealVNC has an Expert option to send a Middle Button Click

RealVNC -> Preferences -> Expert -> Emulate3 -> True

Now you click _BOTH_ Left _AND_ Right mouse buttons to seen a Middle Button Click.

HOWEVER, it requires a 3rd party mouse, as the magic mouse will not allow right and left click at the same time.


https://github.com/cl3m/MiddleClick/blob/master/README.md

will allow you to simulate a middle click on a trackpad


http://magicprefs.com/

can give your magic mouse a middle click


On Linux you must be running

vncconfig &


gnome-terminal works best "Control-Shift-C" copies text, and it seems anything you select on the Linux system is available in the macOS clipboard. "Control-Shift-V" pastes on Linux anything you put into the clipboard on the Mac.


You can modify xterm to use:

Shift+Ctrl+C

Shift+Ctrl+V

for Copy and Paste:


Create a $HOME/XTerm file and put the following in the file:


    XTerm*VT100.Translations: #override \
          Shift Ctrl<Key>V: insert-selection(CLIPBOARD) \n\
          Shift Ctrl<Key>V: insert-selection(PRIMARY) \n\
          Shift Ctrl<Key>C: copy-selection(CLIPBOARD) \n\
          Shift<Btn1Down>: select-start() \n\
          Shift<Btn1Motion>: select-extend() \n\
          Shift<Btn1Up>: select-end(CLIPBOARD) \n\

May 30, 2019 7:56 AM in response to rajanikanthja

rajanikanthja wrote:

thank you for your reply.
it is not helpful to me. I tried that one.

You tried what one? The link I provided explains in detail how to copy text to/from RealVNC and how to troubleshoot if the copy does not work. Exactly what step did not work? RealVNC is not an Apple product and they

have addressed the exact issue you are experiencing.

May 30, 2019 10:58 AM in response to rajanikanthja

Funny, I've been using Screen Sharing locally for a long time & Copy/Paste was never ever doable between machines, copy on the remote & it could only paste on the remote one, copy on the local & it could only paste on the local one... then just yesterday after an errant click or 2... the remote Copy pasted on my Local Mac... no idea what exactly happened.


Not likely to help, but who knows.


In the past I had to copy, paste it in an email & send it to myself.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Not able to copy the selected text from vnc client to local Mac OS

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.