Copy GNU Screen buffer in guest to host's clipboard?

Discussions about using Linux guests in VirtualBox.
Post Reply
ugultopu
Posts: 1
Joined: 25. Mar 2017, 12:10

Copy GNU Screen buffer in guest to host's clipboard?

Post by ugultopu »

I am using Ubuntu as guest. I don't have X installed in it. I would like to copy the GNU Screen buffer of the guest to host's clipboard. How can I accomplish this?

My host is macOS Sierra. and my VirtualBox version is 5.1.18.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Copy GNU Screen buffer in guest to host's clipboard?

Post by mpack »

AFAIK, you can't. A clipboard is a GUI concept, designed to transfer data between app windows.

I'm also not sure what you mean by a "GNU Screen Buffer", but perhaps you refer to a Linux feature I'm not familiar with. AFAIK if you don't have a GUI then all you have a text terminal. The terminal output can be redirected to a file in the normal way, and you can copy that file to a shared folder. That's the only practical way I know to do it.

Going a different tack entirely: Win7 and later hosts have a feature called the snipping tool which can be used to grab the contents of windows and store them on a clipboard. If don't know if OSX has anything similar - no doubt it could have. Plus the data on the clipboard will be an image of course, not text.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Copy GNU Screen buffer in guest to host's clipboard?

Post by socratis »

VirtualBox has also the "Take screenshot (HostKey+E)" capability, so you don't even need the host OS's support for that, but in any event, OSX does have a built-in tool (or two). Preview and Grab both can do what mpack is suggesting.
mpack wrote:Plus the data on the clipboard will be an image of course, not text.
Ah, for that, I usually use some of the online OCR engines. Some are better that others, mostly because the worse are trying to interpret the text as something that makes sense in English, which is not always the case in a CLI.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply