Summary of Linux file sharing methods in Windows and Vmware

Source: Internet
Author: User
Article Title: Summary of Linux file sharing methods under Windows and Vmware. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

There are many file sharing methods between Windows and Linux. I will summarize them here. Suppose your Host computer is Windows and Guest is Linux.

  1. Use Samba

This is the method I use most.

  2. Configure Apahce in Linux

Configure Apahce in Linux, and then download the files in Linux through www in Windows. In this way, only Linux files can be uploaded to Windows, but Windows files cannot be uploaded to Linux.

  3. Configure Ftp in Linux

You can use either vsftp or wu-ftp to configure the upload permission. Then, Windows and Linux can share files with each other.

  4. Configure the WWW Service in Windows

You can use IIS, Apache, or other methods. If you only have command lines in Linux, you can use the wget command to conveniently download files.

  5. Configure Ftp in Windows

Simple to use serv-u

  6. Use the file sharing Function of Windows

For example, if your Windows IP address is 192.168.0.1 and a directory named share is shared, you can run the following command:

Mount-t smbfs // 192.168.0.1/share/mnt-o username = user % passwd

Or smbmount // 192.168.0.1/share/mnt-o username = user % passwd (Use this command to install samba)

  7. Use vmware tools

SharedFolders is a new feature of Vmware4, making it easier to share files between Host and Guest operating systems. But before use

Install vmware tools.

Click setting-> vmware tools install

Mount/dev/cdrom/mnt/cdrom

Cd/mnt/cdrom

There is a vmware tools tar package, undo the execution of the vmware-tools-install.pl script, a carriage return, generally no problem.

Click Edit-> Virtual Machine Settigns-> Option-> SharedFolders-> Add, select the folder to be shared, and name the folder. Next step. Select "Enable"

Thisshare ". After confirmation, vmware will automatically mount this folder to the/mnt/hgfs directory.

  8. Directly mount the physical hard disk or hard disk partition

However, vmware also supports the direct mount of the Host machine by creating a disk in the VM settings, selecting "Usephysicaldisk (foradvanced users)" as the type, and then selecting the disk and partition. However, such an operation may lead to inconsistent file systems, resulting in errors. We do not recommend this operation.

  9. Use an ISO file

The optical drive in the virtual machine can be either a physical optical drive or an ISO file. We can convert the key parts of our files into an ISO file (using WinIso) and then attach them as CDROM in Linux.

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.