Sharing between windows and linux-general Linux technology-Linux technology and application information. For details, refer to the following section. Author: Peaceful pigeon site
There are several situations: first, access between two IP addresses on an inaccessible host for windows and linux, and second, sharing between windows and linux partitions on the same host.
The purpose of sharing is clearly the transfer or sharing of file resources. There are many ways to achieve this purpose. The first case is as follows:
1. sharing between different computers.
There are many ways to solve this problem. The simplest is to copy a mobile hard disk. For other methods, FTP, SSH, windows Network neighbors, linux NFS servers, SMB servers, and linux network file servers are useful. Next we will introduce them one by one.
1. FTP is a File Transfer Protocol and a C/S structure. You can enable the FTP server on windows or linux to share files, server-U (used in windows) is a relatively good FTP Server, which is a very powerful mini FTP Server. After the local FTP Server is enabled, on the client, you can enter ftp: \ 192.168.0.1 in the browser to access resources on the FTP server. If you want to enable FTP in linux, you can use the vsftpd service that comes with the system by entering the service vsftpd start command in the terminal. If it is not installed, you need to add the service to add or delete the service.
2. SSH: this is a secure remote login service. SSH is installed on the server in linux by default. If no server can be added, the SSH client is installed in Windows, access the SSH server through SSH client. SSHSecureShellClient is a useful SSH client. After installing it in windows, click new connet, prompting you to enter the linux User and password, after logging in, it is like viewing local resources. Of course, the premise is that the other linux host has enabled the SSH service. If not, you can enable it using service ssh start in the terminal. If not installed, you need to add or delete the program to the SSH server.
3. windows Network neighbors. By default, windows's network neighbors cannot see the linux host. If you want to see the linux host in windows or are running (in windows) directly enter the IP address of the other party, such as \ 192.168.0.1 to open the other party, You need to enable the NFS server or Samba server in linux. In linux, choose system Settings> Server Management> NFS or Samba. If you do not have NFS or Samba, add or delete the service. If you are interested in the specific methods for configuring NFS and SMB services, you can check that they are all gui configurations, which are easy to understand, to add a windows-accessible user to the NFS and SMB servers, you can specify an existing user in the system or create a user by yourself.
4. linux Network File Server: In the menu-network file server, you must enable sharing in windows and the guest account (if anonymous access is used by default ), then you can see the files shared on the windows Host in linux.
In the above several methods, the FTP server can be set up in windows or in linux, and the client can access the other party by using a browser or directly accessing the IP address, if the write permission is enabled for the peer FTP service, you can upload local files to the FTP server. While SSH is a linux server, windows is accessed as a client, similar to telnet, but this is a graphical interface. The NFS server and SMB server are servers in linux to enable shared folders in local linux for other users on the network. The Network File Server of linux is not a server, it is a tool used to access sharing on the network, similar to the network neighbors of windows.
Next, share the windows and linux partitions on the same machine.
1. How to access windows partitions in linux must be implemented under the command. Enter fdisk-l in the terminal to view the file system of the local hard disk and find the file system path of the windows system, use mount [windows File System] [absolute local folder path] to mount the windows file system, and then view it in the folder you direct.
2. Access to linux partitions in windows requires other software, which are commonly used: javase2fs and fsdext2.
Some people have installed linux in the virtual machine, want to share files in windows, and are not familiar with the system, and there is no way to crack the scalp, plug in the USB flash disk can only be recognized in windows, hurry! In fact, there are still many ways to think about it. FTP and SSH are the most commonly used tools. However, remember to set the LInux IP address of your real host and the virtual machine to the same network segment. If it is a bridge, the real host must be connected to the network cable, otherwise, the ping fails.
Although a virtual machine is called a virtual machine, you can regard it as a real remote computer, but it is installed in your system. Some people always ask how to Ping it, then, is your real machine connected to the network? How can I access a remote computer without a network connection?
The above is my experience on sharing windows and linux, and I hope it will be useful to you.
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.