Chinaunix首页 | 论坛 | 博客
  • 博客访问: 461698
  • 博文数量: 132
  • 博客积分: 2995
  • 博客等级: 少校
  • 技术积分: 1412
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-06 20:14
文章分类

全部博文(132)

文章存档

2010年(2)

2008年(21)

2007年(109)

我的朋友

分类:

2008-11-03 13:43:32

微软Windows Service For Unix (SFU) 3.5的安装和使用

安装

  • 将远程Linux机器的/etc/passwd和/etc/group文件复制到本地C:\盘。
  • 运行SFU35BETA_EN.exe,这是一个自解压文件,指定一个目录,释放压缩的文件。
  • 在释放目录中,运行SfuSetup.msi,出现Micorsoft Windows Services for UNIX Setup wizard窗口。
  • 点击Next,出现Customer Information窗口。
  • 点击Next,出现License and Support Information窗口,选中“I accept the agreement”。
  • 点击Next,出现Installation Options窗口。
  • 选择Custom Installation,点击Next,出现Selecting Components窗口。
  • 点击Utilities目录项,选择Entire feature will not be available,该项的图标变为一个棕色的叉号。
  • 对“Interix GNU components”“Remote Connectivity”使用相同的选择。
  • 点击NFS目录项,选择Entire Feature (including all subfeature if any) will be installed on local hard drive,该项的图标变为一个白色背景的驱动器。
  • 对“Authentication tools for NFS”使用相同的选择。
  • 最终只有“Authentication tools for NFS”和“NFS”两项是完全安装,其他各项都不安装。
  • 点击Next,出现User Name Mapping窗口,选中Password and group files。
  • 点击Next,在Password file path and name下的空白栏中输入C:\passwd,在Group file path and name下的空白栏中输入C:\group。
  • 点击Next,出现Installationg Location窗口,选择安装位置。
  • 点击Next,开始安装(约21MB)。最后选择Finish,结束安装。

共享Windows主机目录

  • 不需重启,对要共享的目录,右键点击出现下拉菜单,选择“属性”,出现目录属性窗口。
  • 选择“NFS Sharing”选项卡,选中share this folder;指定共享名(Share name,一个简单的名字,大小写无关,如dir);字符编码(Encoding)选择GB2312-80;选中Allow anonymous access;点击Permissions,出现NFS Share Permissions窗口,设置共享文件夹读写属性。
  • 在Type of access下拉菜单中选择Read-Only(只读)或Read-Write(可读可写);如果远程机器对本机文件有root权限,可选中Allow root access,但一般不必。
  • 设置完,点击OK按钮,回到目录属性窗口。
    点击“应用”或“确定”,使共享生效。
    要设置NFS属性,选择开始->程序->Windows Services for Unix->Services for Unix Administration。

在远程Linux主机上挂装Windows目录

  • 在Linux机器上建立一个临时目录,以便将远程Windows目录挂装上。
          mkdir temp
    运行mount命令来挂装NFS目录:
          mount -t hostname:share_name temp
    其中hostname为Windows主机名,share_name为共享的目录名。显示一下目录内容,应为Windows机器上的共享NFS目录内容:
          ls temp
Copyright
阅读(4254) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~