个人工具
登录
查看“UbuntuHelp:Autofs/zh”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Autofs/zh”的源代码
来自Ubuntu中文
←
UbuntuHelp:Autofs/zh
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{Translation}} {{From|https://help.ubuntu.com/community/Autofs}} {{Translator|马克弥勒}} {{Languages|UbuntuHelp:Autofs}} == 引言 == Automount是当前流行的将目录挂载到网络上的方式。这是迄今为止最容易管理和节省带宽的解决方案。 通过这个指南,文件的安装和配置将自动完成。它并不是经常使用, 但 [[UbuntuHelp:AutofsLDAP|AutofsLDAP]] 是非常有用和基础的,特别是在小型企业环境下,这个指南是有益的。 == 安装 == 安装如下软件包: <code><nowiki>autofs</nowiki></code> (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]]) == 配置 == 为了能够自动配置,你需要编辑<code><nowiki>/etc/default/auto.master</nowiki></code> 文件. 以下是由Ubuntu提供的示例文件: <pre><nowiki> # # $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $ # # Sample auto.master file # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # For details of the format look at autofs(5). #/misc /etc/auto.misc --timeout=60 #/smb /etc/auto.smb #/misc /etc/auto.misc #/net /etc/auto.net </nowiki></pre> 在默认情况下,如你所见,每个挂载点都与其他的配置文件有联系。它们中的大部分现在还没用(hal & co公司提供有现代桌面自动挂载的功能).。这将对轻型桌面系统有益。<code><nowiki>/net</nowiki></code>和<code><nowiki>/smb</nowiki></code>仍然是可用的。 在 Unix 世界里, <code><nowiki>/net</nowiki></code> 可以自动检测NFS文件系统。举个例子, 如果你有一个名叫<code><nowiki>fileserver</nowiki></code> 的服务器,它具有一个基于NFS的目录<code><nowiki>/export</nowiki></code> (查看[[UbuntuHelp:NFSServerHowTo|NFSServerHowTo]]来了解如何建立一个这样的服务器),你可以通过一个shell命令来进入它<code><nowiki>cd /net/fileserver/export</nowiki></code>. 在一个NFS文件服务器的环境下,这样的自动挂载是十分有用的。 而 <code><nowiki>/smb</nowiki></code> 挂载点, 是对SMB文件系统拥有相同的功能(if you need to authenticate for acceding the SMB share, the automatic way will not function). Uncomenting <code><nowiki>/net</nowiki></code> and <code><nowiki>/smb</nowiki></code> is a good solution. You can add your own mount point with your own options in <code><nowiki>/etc/auto.master</nowiki></code> to suit your needs. After entering your changes, run the following command to have them taken into account: <pre><nowiki> sudo /etc/init.d/autofs reload </nowiki></pre> [[category:UbuntuHelp]]
该页面使用的模板:
模板:Copyedit translation
(
查看源代码
)
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
模板:Translator
(
查看源代码
)
返回至
UbuntuHelp:Autofs/zh
。