Windows directly drag and drop files to copy to the virtual machine Ubuntu

1. Background  

        As we all know, most novices come into contact with the ROS system through a virtual machine, so the general computer is installed with a Windows system. Only when using ROS will the virtual machine be opened to run ubuntu, so during the learning process, you will often switch between Windows and Ubuntu. It is inevitable to face the problem of file transfer between the two. Under normal circumstances, files in the Windows system cannot be directly dragged and copied to the virtual machine, so we need to use the following method to set up and realize the file transfer between ubuntu and windows.

2. Purpose

        Purpose: Use the enhanced tool VMwareTools to realize file transfer between Ubuntu virtual machine and win10.

3. Method

        Preparation:
        1.  VMware  Workstation
        2.  Ubuntu  system

        1. Open the virtual machine ---- install VMwareTools 

        2. Double-click to open the VMwareTools just downloaded from the CD-ROM, and copy the files we want to use to the desktop:

         3. Open the compressed file and extract the folder we want to use to the desktop:

         4. Open the extracted folder, find the last file and copy the file name (right click and rename, don’t forget the file suffix)

         5. Right-click to open the terminal (pay attention to whether the terminal opening path is correct, otherwise you need to keep cd to the correct file saving path)

         6. Set the highest authority password and enter the highest authority su mode:

        [Note]: The password you entered will not be displayed in ubuntu, so be sure to enter the password correctly!

        7. Run the file we just selected under the highest authority:

./vmware-install.pl

        Press the Enter key to start running the command, and when you need to enter yes/no, type y to continue Enter. 

         8. The installation is successful display

         9. Return to the desktop to delete the compressed package and decompressed files just now

        10. Drag and drop effect is realized (after shutdown and restart)

        After installing VMwareTools according to the above operations, it is impossible to directly copy the files under the win system and drag and paste them into the virtual machine. We need to restart the virtual machine before using VMwareTools to transfer the files. The following pictures show Directly drag and drop effect, we can clearly see that our cursor has changed. At this time, the file can be directly dragged from the win system to the ubuntu system.

         So far, the file transfer between Ubuntu virtual machine and win10 has been realized by using the enhanced tool VMwareTools.

Guess you like

Origin blog.csdn.net/TianHW103/article/details/126329630