SFU settings for NFS servers in Windows

Source: Internet
Author: User
Tags root access
1. Install SFU
1. Download Software SFU

Http://download.microsoft.com/download/a/1/c/a1ca7af1-a6e3-46e7-874a-4c5d8c0fb3b7/SFU35SEL_EN.exe

2. Edit the user group file and password passwd file (or copy the group file and passwd file in the target Linux to c: \ in Windows) and copy the file to c :\

For example:

Passwd content:

Root: X: 0: 0: Root:/bin/sh

Group Content:

Root: X: 0:

3rd, run sfu35beta_en.exe. This is a self-extracting file, specifying a directory to release the compressed file.

4. Run sfusetup. MSI in the release directory. The micorsoft Windows Services for Unix Setup Wizard window appears.

5. Click Next. The customer information window is displayed.

6. Click Next. In the license and support information window, select "I accept the agreement ".

7. Click Next. The installation options window is displayed.

8. Select custom installation and click Next. The selecting components window is displayed.

9. Click the utilities directory item and select entire feature will not be available. The icon of this item becomes a brown cross.

10. Use the same option for interix GNU Components Remote connectivity.

11. Click the NFS Directory item and select entire feature (including all subfeature if any) will be installed on local hard drive. The icon of this item changes to a drive with a white background.

12. For "authentication tools for NFS", select entire feature (including all subfeature if any) will be installed on local hard drive.

13. In the end, only authentication tools for NFS and NFS are fully installed.

14. Click Next. the user name mapping window appears. Select password and group files.

15. Click Next, enter c: \ passwd in the blank bar under password file path and name, and enter c: \ group in the blank bar under group file path and name.

16. Click Next. In the installationg location window, select the installation location. The disk must be in NTFS format.

17. Click Next to start installation (about 21 MB ). Finally, select finish to complete the installation. If you are prompted to restart, restart. (The above installation process is relatively simple.Article.)

Note: if there is a conflict with Kaspersky Internet set 6.0, disable Kaspersky before installation.

Ii. Share the Windows Host directory
1. You do not need to restart. Right-click the directory to be shared in the NTFS format disk and choose "properties" from the drop-down menu. The directory Properties window is displayed.

2. Select the NFS sharing tab, select share this folder, specify the Share Name (a simple name, case-insensitive, such as DIR), and encoding) select GB2312-80; select allow anonymous access; click Permissions, the NFS share permissions window appears, set shared folder read/write properties.

3. Select read-write from the type of access drop-down menu. to grant the target board the root permission on the local file, select allow root access.

4. Click OK to return to the directory Properties window.

5. Click the "Security" option and add everyone to allow read, control, or full control, if you do not have the "Security" option, click "Tools"> "Folder Options" in the resource manager and click "view options" to remove the check box before "use simple file sharing (recommended. The directory Properties window contains security options.

6. Make sure that you have enabled the file sharing feature for Windows. If not, enable it. Otherwise, NFS can be mounted but cannot be accessed. I encountered this problem when setting it. I was depressed for a long time. ^ _ ^

3. Configure services for Unix administration

1. Select Start>Program-> Windows Services for Unix-> services for Unix administration start services for Unix administration,

2. When the settings window appears, click User Name mapping in the left-side subwindow, click "map" in the tab bar, and then click show user maps.

3. In the Windows user name and Unix user name boxes, enter guest and root, and click Add to add them to mapped users.

4. Click Show group maps, enter guests and root in the Windows Group Name and Unix group name boxes, and click Add to add them to mapped groups.
Now the settings are complete.

4. Start the target board and mount the Windows directory on the target board

Set the Host IP address to 192.168.1.1, connect the crossover line to the target board, start the target board, start the TFTP service on the host, and run the mount command to mount the NFS directory:

Mount-T nfs-O nolock 192.168.1.1: Invalid _name/mnt

External _name is the name of the shared directory. The contents of the directory should be shared NFS contents on Windows machines.

 

In this way, the compiled program can be put into the shared directory and then run on the target board.

 

For example, the Windows Host 192.168.1.7 NFS shares a work directory, and the arm board IP address is 192.168.1.9.

The two are connected through a crossover line. The arm board operation is as follows:

[Root @ (none)/] $

[Root @ (none)/] $ Mount-T nfs-O nolock 192.168.1.7: Work/mnt/nfs/

[Root @ (none)/] $ CD/mnt/nfs/

[Root @ (none) NFS] $ ls

Gpsdata ll Test

[Root @ (none) NFS] $./gpsdata

Handle

Reading data from robot.

[Root @ (none) NFS] $

The shared work directory of Windows is mounted successfully, and the gpsdata program is run.

 

Note: 1. If the network is disconnected, check whether the local connection has a firewall. If yes, remove the firewall protection.

Otherwise, open the following port service:

NFS Server Service


To enable the Network File System (NFS) Server service, the following ports must be enabled for access.

Note:These ports provide access to the NFS server and its related services. As required, you must open the TCP port, UDP port, or TCP port and UDP port.

Service or function Protocol Port
Portmapper TCP, UDP 111
Status TCP, UDP 1039
Nlockmgr TCP, UDP 1047
Mountd TCP, UDP 1048
NFS server TCP, UDP 2049

2. If the Portmap service is not available on the target board, you must add the parameter-O nolock to the Mount; otherwise, an error occurs: input/output error.

Http://blog.chinaunix.net/u/17660/showart_697400.html

Related Article

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.