Mouse/keyboard sequences for Ubuntu cut-and-paste ?

This is for discussing general topics about how to use VirtualBox.
Post Reply
ronbarak
Posts: 4
Joined: 15. Apr 2015, 23:28

Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by ronbarak »

I have a non-graphical Ubuntu installed inside VirtualBox under Windows.
I've installed VBoxGuestAdditions (and enabled bidirectional Drag'n'Drop - for the hell of it).

However, none of the following will paste to the guest OS:
  • Shift+Ins
  • Ctrl+v
  • Ctrl+Shift+v
  • Pressing right-click and left-click simultaneously (this emulates a middle-click on my laptop's two keys touch-pad).
What are the sequences for mouse/keyboard cut-and-paste in non-graphical Ubuntu under VirtualBox?


Environment:
  • VirtualBox: 4.3.12 r93733
  • VBoxGuest: 4.3.12
  • Guest OS: Linux ubuntu 3.13.0-32-generic #57~precise1-Ubuntu SMP x86_64
  • Host OS: Windows 7
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by Perryg »

Without X I don't see anything that is going to help.
ronbarak
Posts: 4
Joined: 15. Apr 2015, 23:28

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by ronbarak »

Perryg wrote:Without X I don't see anything that is going to help.
Compare this situation to Cygwin: there you can cut-and-paste to a mintty window - without needing X-windows.
Reasonable to expect that cut-and-paste from host/guest would work on VirtualBox also.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by Perryg »

Maybe true but you are not using cygwin.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by loukingjr »

ronbarak wrote:Compare this situation to Cygwin: there you can cut-and-paste to a mintty window - without needing X-windows.
from the Cygwin page…
X server 1.17 and X.Org X11 Release 7.7 are now included in Cygwin.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
ronbarak
Posts: 4
Joined: 15. Apr 2015, 23:28

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by ronbarak »

mintty can do cut-and-paste when the X-windows server is not in memory.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by Perryg »

The good thing is VirtualBox is open source and if you want to provide the code to make it happen I am sure everyone will be grateful.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by loukingjr »

Here is one possible solution I found with no trouble…
I recommend installing ssh server, then connecting to the VM with the SSH client of your choice, e.g. PuTTY - this offers not only easy cut&paste, but also a resizable text console and other goodies. – Eugen Rieck
Do I know what it means or how to implement it? nope.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
ronbarak
Posts: 4
Joined: 15. Apr 2015, 23:28

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by ronbarak »

loukingjr wrote:
I recommend installing ssh server, then connecting to the VM with the SSH client of your choice, e.g. PuTTY - this offers not only easy cut&paste, but also a resizable text console and other goodies. – Eugen Rieck
That's an interesting idea to fall back on if natural cut-and-paste solution is not found. Thanks.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by loukingjr »

no problem.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
mlentz002
Posts: 1
Joined: 19. May 2015, 01:19

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by mlentz002 »

Cut/Paste should be removed, since it doesn't work. Or at least identify which hosts are supported. Doesn't work between Ubuntu Server and Ubuntu server.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by loukingjr »

mlentz002 wrote:Cut/Paste should be removed, since it doesn't work. Or at least identify which hosts are supported. Doesn't work between Ubuntu Server and Ubuntu server.
Cut and Paste works on my OSX, Linux and Windows hosts so I would rather it not be removed TYVM.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Mouse/keyboard sequences for Ubuntu cut-and-paste ?

Post by Perryg »

mlentz002 wrote:Cut/Paste should be removed, since it doesn't work. Or at least identify which hosts are supported. Doesn't work between Ubuntu Server and Ubuntu server.
That's right if only 95% of the users can use it then it should go away.

Seriously you can find a replacement really easy.
Post Reply