Another win-linux communication scheme outside Samba
Source: Internet
Author: User
Article Title: Another win-linux communication solution outside Samba. 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.
Windows/winnt4.0/win2000 and Linux/FreeBSD/UNIX like are generally the best communication methods, and we are also the easiest to accept ". At present, the best program to achieve this is the Samba server, but Samba may not be able to meet the requirements of all users. Is there any other communication party to try?
We know that Network File System (NFS) is widely used for communication between Linux, FreeBSD, and UNIX like. Network File System is an integral part of Distributed Computer Systems, sharing and assembling remote file systems on Heterogeneous Networks. From the user's perspective, these remote file system operations are no different from those on local file systems. NFS was developed by SUN (Sun Microsystem, Inc) and has developed NFS standards and is accepted by IETF. It is incorporated into RFC as a standard for file services (RFC1904, RFC1813 ). NFS is implemented through RPC (Remote process call) based on the Client/Server structure. All NFS operations are performed by RPC. The NFS server exports a local directory to a remote NFS client. The NFS client redirects the file operating system call to the remote system. In Linux, knfsd is usually used to implement the NFS service. This is the backend daemon running on the core. It has high response performance compared with the NFS program in the user space.
A few days ago I surf the Internet and found an NFS for win32. "Omni-NFS-X Enterprise V5.01" is powerful and enables NFS communication between PCs to Linux. In addition to NFS, it also includes the following features:
Backup
Finger
FTP Server
FTP Client
NFS Server is used to establish communications between windows to linux and Windows.
NFS Client, used to map NFS in Linux to a drive letter.
Telnet Client
X windows Client
It has many functions. You can take a look at it by yourself. Here I will only introduce how to use NFS, because it is not necessary to introduce other features.
1. Install Omni-NFS-X Enterprise V5.01 to establish a connection between Windows-> Linux.
"Omni-NFS-X Enterprise V5.01" can be installed normally, which is not described here.
1. Start Omni-NFS Server Configuration Center
Start --> program --> Omni-NFS-X Enterprise V5.01 --> NFS Server
2. Click the "NEW" menu to map the NFS directory.
Select a drive such as: C:
Select a directory Path such as \ mynfs
Exported to All Client this option is to allow All computers to connect.
Directory Access Rights. This is the root setting for shared NFS. Read Only, Read/Write, and R/W List ). Generally, select Read Only.
NFS Server configuration is complete.
3. Mount the Windows NFS file system in Linux.
# Showmount-e ip
# Mkdir/mnt/winnfs
# Mount ip:/c/mynfs/mnt/winnfs
# Ls/mnt/winnfs
# Umount/mnt/winnfs
Note: The ip address is your win IP address.
Follow these steps to be patient. All are successful.
2. Configure Linux NFS to establish a connection between Linux and Windows.
1. Configure Linux NFS.
Create or modify/etc/exports
The content in exports is the export path, which consists of the customer name list and access options. The access options are optional and optional.
Directory hostname (options )...
Options is optional. If options is not specified, nfs uses the default option. The hostname can also be empty to allow any external host to provide services.
For example:
/Home www.9812.net
The export path is/home and can be accessed only by www.9812.net.
/Usr/local/apache/htdocs/netkiller netkiller.9812.net (rw)
The export path is/usr/local/apache/htdocs/netkiller, which only allows access by netkiller.9812.net and has write permission.
/Home/chen/public_html (ro)
Allow anyone to read-only access to/home/chen/public_html
Options: ro read-only, rw writable! This is the default value, not read-only. Be careful !.
2. Make the configuration take effect immediately.
# Exports
Or
#/Etc/rc. d/init. d/nfs restart
Or #/etc/rc. d/init. d/nfs reload
Linux NFS configuration is complete.
3. Map Linux NFS into a drive letter in win for access on my computer.
Start Omni-NFS Center
Start --> program --> Omni-NFS-X Enterprise V5.01 --> NFS Client
Click "HostEdit" --> "New"
Enter the hostname of the Linux Server in Host. Select Resolved by Domain Name Server. Then, Host IP: will appear on your own. Select "Next"
Does this host have NFS server. Test whether the NFS service is installed on the server. Click "Test"> "Next ".
Select Network Logon.
Finish. --> Exit HostEdit.
Select a drive letter, for example, G:
Click "Define"
You can enter the Server Name by yourself. Or "Browse"
First Linux or windows Server in the Server list
In the Exported Path, the directory to be mapped is selected.
"OK" --> "Next"
Choose PCNFSD --> enter the User name, Password --> select Save Password --> Select Auto Mount --> "Next"
Complete
Select G: disk. Click "MOUNT ".
All OK.
Let's take a look! Like my computer. The speed is also good, and it is not slower than Samba. UMOUNT is the drive letter mounted just now.
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