DOCX

Several methods of exchange of visits between Windows and Linux file system

By Mildred Ortiz,2015-10-08 01:55
20 views 0
Several methods of exchange of visits between Windows and Linux file system

    Several methods of exchange of visits between

    Windows and Linux file system

    First of all, we know that several kinds of services based on file: FTP, SFTP, these two are the file transfer service, focus on network transmission, not real-time exchange of visits.Usually, we need to be at the same time in the remote and local operating in the same directory, such as: under the Windows using a variety of powerful IDE editor code, compile and run the code under Linux.Copy again if under Windows written code to compile under Linux, so when a change is very trouble, directly under Linux modification, synchronous back to Windows, quite laborious.Some people would say, of course, all the work is done under Linux, VI, the Linux command line are strong enough, no need to use Windows system reason, the focus of this article is not to discuss proficiency in command line and work efficiency.

    How like a visit to the local file system access remote files?If the remote system and local system are of different types, how to do it again.

    As we know, between the Windows system, can through the way of the Shared directory, make direct access to the remote system.Actually here is to provide a remote file system mechanism, Windows NAS agreement a - the CIFS protocol.If it is a Linux system, there are also another NAS agreement - the NFS protocol to realize the remote access.Then the two NAS agreement will exchange?The answer is no.Even though they cannot be Shared, but, on Linux system already has the CIFS server and client implementation of the agreement, in this way, both sharing Linux to Windows and Windows to Linux Shared can be done with the help of these existing implementations.

    On the contrary, the Windows above have NFS client or server?Also have, but not commonly used, here is not introduced in detail.

    Here mainly around the Linux using the CIFS protocol above to illustrate how to realize the span between two systems file system, Shared across operating systems.According to the above description, there are two ways to realize sharing.Linux as the CIFS server and client respectively.Then these two approaches to illustrate respectively under the operation steps and the principle of simple introduction: A, Samba software sharing Linux file systems for Windows users

    Is known as the Samba softwareTop 10 most valuable fifth of open source software.The access is very easy, the configuration is also very easy to use.Below the fedora systems, for example, first to see if local has installed samba, if the/etc/init. D/SMB file exists, then has been installed samba software, otherwise, use the following command to install:

    yum install samba

    After the installation is complete, modify the configuration files, open: / etc/samba/SMB. Conf, add the following configuration at the end of the file:

    [root]

    comment = root

    path = /

    creat mask = 64

    writeable = yes

    browseable = yes

    valid users = root

    The meaning of this configuration is that create a Shared called root, the root directory "/" Shared to the user.Allow the login username is root.

    Then add the root user to the samba system, use the following command: smbpasswd -a root

    According to clew to set the root user's password.

    Restart the samba services.

    service smb restart

    Check to see if the SMB process has been run:

    root 1787 0.0 0.4 33068 4784 ? Ss 21:51 0:00 smbd root 1788 0.0 0.2 33068 2580 ? S 21:51 0:00 _ smbd

    Above the Windows client of the need to access the Linux system, open the Windows explorer, type in the address bar: 192.168.1.110

    Will find that suggest there is a Shared root, double-click the access, prompt for user name and password, enter the previous configuration of the root user and password can access.Here is the Samba software realizes the CIFS server, Windows resource management as the client access to

    remote Shared file system.In order to use the file system is more convenient, can also be mapped to the sharing of a local drive, make Windows above various tools like using a local disk using the directory.All the Windows in the face of the sharing operation to Linux system can real-time synchronization.

    Second, the Linux access Windows sharing

    The above is commonly used by using Samba.Another, natural Windows system is a CIFS server and client, since Windows can be Shared to the Windows system directory, then Linux system can access the Shared?The answer is yes, because of the powerful VFS support, Linux support mount and access to a variety of file systems.Mount tools support on the CIFS even the NTFS file system.If it is above the Windows native Linux virtual machine, you can directly through the virtual machine management software, such as Vmware direct sharing of local disk partition to Linux system, the Linux system based on Windows file system type of disk partitions can be mounted.There is no detail the plan.

    Enter this section of thesis, first of all, we need to share a Windows directory:

    The following in Windows XP, for example, Windows 7 do not verify, should be similar.Before sharing, you first need to ensure the launch of the Windows server service, the following figure:

    Choose the directory to share, right click, properties, select "sharing" page, the following figure:

    Select share this folder on the Internet, and specify the share name.According to the need to choose whether to allow remote users to modify the folder.So this folder will be Shared to remote access.

    Mount the Shared under Linux system:

    [root@f2 ~]# mount -t cifs -o username="Test" //192.168.1.100/sourcecode /root/sourcecode

    Password for Test@//192.168.1.100/sourcecode:

    According to the user's password must be specified to enter.

    At this point, the Windows Shared sourcecode directory has been mounted to the Linux system, like a visit to a local directory Linux system to access the directory.

    This method should be a better way of access, because in general, our operating files and working space are on Windows, there are only a few time, need to be compiled on Linux, debugging.But with a bit of trouble.Note that had previously met between Windows and Linux virtual out unable to transmit data, the reason was that the Windows firewall is not open, see:Windows XP cannot transmit large files to VMware virtual machine problem analysis and solving".

Report this document

For any questions or suggestions please email
cust-service@docsford.com