How to copy text from Host machine and paste it into nano editor in Ubuntu Server Virtual Machine

VukDju

I am having a problem pasting code from a html file on my host machine into a file written in nano editor on my VM which has Ubuntu Server 16.04

I have enabled shared clipboard between host machine and virtual machine, but it won't do the copy and paste.

Shared Clipboard is enabled

And I know commands for select, copy and paste text in nano using Ctrl + Shift + 6 to enable selecting multiple lines Ctrl + K for cutting the text Ctrl + U for pasting the text But this is for manipulating text within the same document, what I need is to copy text from Host machine, and then paste it into file on my Virtual machine.

If it's more convienient to use a different editor please let me know.

Videonauth

Open a terminal (ctrlaltt) and download the extensions as following:

cd ~/Downloads
wget http://download.virtualbox.org/virtualbox/5.1.8/Oracle_VM_VirtualBox_Extension_Pack-5.1.8-111374.vbox-extpack

And then you Fire up your VirtualBox, and when its just opened move to File --> Preferences see following screen-shot:

enter image description here

In the now opened preferences window navigate to Extensions (Step 1) and click on the button with the small triangle (Step 2)

enter image description here

Navigate into your home directory in the next dialog window and select the extensions you just downloaded. Now you will guided through the installation process. To accept the EULA you need to fully scroll it down.

Now its time to start your server VM and start it and within the VM window you select devices and choose the bottom most option.

After done it should have auto-mounted the disk to your VM. Navigate to it with your terminal. It should be in /media/$USER/ or in /media/.

When in the extensions folder type:

sudo apt update
sudo apt dist-upgrade
sudo apt install linux-headers-generic build-essential
sudo sh ./VBoxLinuxAdditions.run

Now restart your VM with:

sudo reboot

After that you should be able to copy&paste I think, have not used VirtualBox in ages, but in worst case refer to the installation manual of virtual box which you can find on their Website.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to enable copy paste from between host machine and virtual machine in vmware, virtual machine is ubuntu

From Dev

How do I copy-paste a massive excel file from a virtual machine server to my local machine?

From Dev

How do I copy and paste from a Windows 7 host machine to a Ubuntu 12.04 terminal VirtualBox?

From Dev

Copy & Paste unusable in KVM virtual machine (Ubuntu) when RStudio is running

From Dev

How to copy and paste in nano editor with mouse enabled?

From Dev

How to fix virtualbox's copy and paste to host-machine?

From Dev

How to fix virtualbox's copy and paste to host-machine?

From Dev

How to deal with copy/xcopy from a virtual machine

From Dev

Copy data from inside KVM virtual machine to host file system

From Dev

How to copy files from a virtual machine to a local machine?

From Dev

How to copy files from local machine to remote virtual machine?

From Dev

How to remotely access a ubuntu server on a virtual machine?

From Dev

Accessing ubuntu virtual machine host from windows browser

From Dev

Accessing ubuntu virtual machine host from windows browser

From Dev

How to copy and paste selected text in nano on a Mac?

From Dev

Accessing a web server on a Mac Virtual Machine from the Mac Host and Network

From Dev

How to connect to SQL Server in Win7 virtual machine from Mac host?

From Dev

Copy/paste issue in Ubuntu virtual machine (QEMU-KVM) with Awesome window manager

From Dev

How can I open a file that is stored in a virtual machine from host?

From Dev

From a virtual machine, how can't I access the host by name?

From Dev

How to copy & paste from Ubuntu VirtualBox guest to Windows host?

From Dev

How to copy & paste from Ubuntu VirtualBox guest to Windows host?

From Dev

How to reboot ubuntu server machine from outside

From Dev

How to reboot ubuntu server machine from outside

From Dev

Find Hostname of Host from inside a virtual machine?

From Dev

Accessing Virtual Box Machines from Host Machine

From Dev

How to find name of the virtual machine Ubuntu server is being hosted on?

From Dev

How to find name of the virtual machine Ubuntu server is being hosted on?

From Dev

Browsing website hosted in the virtual machine from host machine's browser

Related Related

  1. 1

    How to enable copy paste from between host machine and virtual machine in vmware, virtual machine is ubuntu

  2. 2

    How do I copy-paste a massive excel file from a virtual machine server to my local machine?

  3. 3

    How do I copy and paste from a Windows 7 host machine to a Ubuntu 12.04 terminal VirtualBox?

  4. 4

    Copy & Paste unusable in KVM virtual machine (Ubuntu) when RStudio is running

  5. 5

    How to copy and paste in nano editor with mouse enabled?

  6. 6

    How to fix virtualbox's copy and paste to host-machine?

  7. 7

    How to fix virtualbox's copy and paste to host-machine?

  8. 8

    How to deal with copy/xcopy from a virtual machine

  9. 9

    Copy data from inside KVM virtual machine to host file system

  10. 10

    How to copy files from a virtual machine to a local machine?

  11. 11

    How to copy files from local machine to remote virtual machine?

  12. 12

    How to remotely access a ubuntu server on a virtual machine?

  13. 13

    Accessing ubuntu virtual machine host from windows browser

  14. 14

    Accessing ubuntu virtual machine host from windows browser

  15. 15

    How to copy and paste selected text in nano on a Mac?

  16. 16

    Accessing a web server on a Mac Virtual Machine from the Mac Host and Network

  17. 17

    How to connect to SQL Server in Win7 virtual machine from Mac host?

  18. 18

    Copy/paste issue in Ubuntu virtual machine (QEMU-KVM) with Awesome window manager

  19. 19

    How can I open a file that is stored in a virtual machine from host?

  20. 20

    From a virtual machine, how can't I access the host by name?

  21. 21

    How to copy & paste from Ubuntu VirtualBox guest to Windows host?

  22. 22

    How to copy & paste from Ubuntu VirtualBox guest to Windows host?

  23. 23

    How to reboot ubuntu server machine from outside

  24. 24

    How to reboot ubuntu server machine from outside

  25. 25

    Find Hostname of Host from inside a virtual machine?

  26. 26

    Accessing Virtual Box Machines from Host Machine

  27. 27

    How to find name of the virtual machine Ubuntu server is being hosted on?

  28. 28

    How to find name of the virtual machine Ubuntu server is being hosted on?

  29. 29

    Browsing website hosted in the virtual machine from host machine's browser

HotTag

Archive