How to copy files from Windows to Linux on a virtual machine __linux

Source: Internet
Author: User

into your virtual machine, and then, right click on the label of your virtual machine, select the Settings-->options tab in a "shared folder" with the mouse to select it, and then in the right window, click to add a button, and then in your Linux system to do the following:
cd/mnt/hgfs/< your share name >
In this case you will be able to see the things in your real host.

There is also a prerequisite: You must install the VMware Tools Kit on your virtual machine. Before you can

1. Open the Guest account for Windows and set the password.
2, create a folder in Windows, put files into this folder, share this folder, and set the share permissions and NTFS local permissions.
3, configure Linux IP (must and Windows IP is a segment), open the Network card Service (command: Service network restart) test can ping windows.
4, Linux use mount command: Mount//windows IP address/shared folder name/linux mount point directory
After the mount, copy the file to a different directory.

The above method enables you to access the share from Linux to Windows.

To share files directly under Windows System and Linux virtual machines, the simplest way is to use the Samba service under Linux, and configure Samba to access the Linux virtual machine's IP address as soon as it is in the Windows runtime, so that it can be shared. However, to configure the Samba,samba configuration file in/etc/smb.conf, note the/etc/smb.conf file settings:
   
Steps are as follows:
First, log in as root to enter the system.
Two, edit/etc/smb.conf files,
Three, add the following directories under the/home directory, and specify permissions for these directories:
/home/pub nobody:nobody 777
/home/read-only Root: Root 755
/home/user1 user1:user1
Four, edit/etc/smb.conf this file, modify:
Security = Share
V, edit/etc/smb.conf this file, Add the following sentence to the last side of the file:
[public]
Comment = Public Areas
Path =/home/pub
Browseable = yes
Guest OK = yes writable =yes
[read-only]
comment = read-only Areas
Path =/home/read-only
browseable = yes
gu EST OK = yes
[user1]
comment = Password Required
Path =/home/user1
Browseable = yes
writable = y ES
After the completion of   disk left.
Six, rerun Samba:
/etc/rc.d/init.do/smb Restart
can be shared to these directories on other computers.
  read "man smb.conf" carefully.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.