个人工具

“UbuntuHelp:Autofs/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的18个中间版本)
第1行: 第1行:
{{Translation}}
+
{{Copyedit translation}}
 
{{From|https://help.ubuntu.com/community/Autofs}}
 
{{From|https://help.ubuntu.com/community/Autofs}}
 
{{Translator|马克弥勒}}
 
{{Translator|马克弥勒}}
第5行: 第5行:
 
== 引言 ==
 
== 引言 ==
 
Automount是当前流行的将目录挂载到网络上的方式。这是迄今为止最容易管理和节省带宽的解决方案。
 
Automount是当前流行的将目录挂载到网络上的方式。这是迄今为止最容易管理和节省带宽的解决方案。
通过这个指南,文件的安装和配置将自动完成。它并不是经常使用, but [[UbuntuHelp:AutofsLDAP|AutofsLDAP]] is very usefull and based on this one. In small business environement, this howto can be usefull.
+
通过这个指南,文件的安装和配置将自动完成。它并不是经常使用, [[UbuntuHelp:AutofsLDAP|AutofsLDAP]] 是非常有用和基础的,特别是在小型企业环境下,这个指南是有益的。
  
== Installation ==
+
== 安装 ==
Install the following packages: <code><nowiki>autofs</nowiki></code> (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]])
+
安装如下软件包: <code><nowiki>autofs</nowiki></code> (see [[UbuntuHelp:InstallingSoftware|InstallingSoftware]])
== Configuration ==
+
 
For configuring autofs, you have to edit <code><nowiki>/etc/default/auto.master</nowiki></code> file. Here is the sample file provided by Ubuntu:
+
== 配置 ==
 +
为了能够自动配置,你需要编辑<code><nowiki>/etc/default/auto.master</nowiki></code> 文件. 以下是由Ubuntu提供的示例文件:
 
<pre><nowiki>
 
<pre><nowiki>
 
#
 
#
第24行: 第25行:
 
#/net    /etc/auto.net
 
#/net    /etc/auto.net
 
</nowiki></pre>
 
</nowiki></pre>
As you see, by default, all is commented out. Each mount point is associated with another configuration file. Most of them are now useless (now modern desktop have automount feature with hal & co). This would be usefull for light desktop. <code><nowiki>/net</nowiki></code> and <code><nowiki>/smb</nowiki></code> are still usefull.
+
在默认情况下,如你所见,每个挂载点都与其他的配置文件有联系。它们中的大部分现在还没用(hal & co公司提供有现代桌面自动挂载的功能).。这将对轻型桌面系统有益。<code><nowiki>/net</nowiki></code><code><nowiki>/smb</nowiki></code>仍然是可用的。
In Unix world, <code><nowiki>/net</nowiki></code> enable automounting distant file system exported by NFS. For example, if you have a server named <code><nowiki>fileserver</nowiki></code> with a NFS export directory called <code><nowiki>/export</nowiki></code> (see [[UbuntuHelp:NFSServerHowTo|NFSServerHowTo]] for how to setup a such server), you can mount it by typing in a shell command line <code><nowiki>cd /net/fileserver/export</nowiki></code>. In an environment with NFS file servers, such automount can be usefull.
+
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>.
For <code><nowiki>/smb</nowiki></code> mount point, function the same way but is for SMB file systems (if you need to authenticate for acceding the SMB share, the automatic way will not function).
+
在一个NFS文件服务器的环境下,这样的自动挂载是十分有用的。
Uncomenting <code><nowiki>/net</nowiki></code> and <code><nowiki>/smb</nowiki></code> is a good solution.   
+
<code><nowiki>/smb</nowiki></code> 挂载点, 是对SMB文件系统拥有相同的功能(如果您需要验证加入SMB共用,自动方式将无法正常运作).
You can add your own mount point with your own options in <code><nowiki>/etc/auto.master</nowiki></code> to suit your needs.
+
卸载 <code><nowiki>/net</nowiki></code> <code><nowiki>/smb</nowiki></code> 不失为一个好的解决方法.   
After entering your changes, run the following command to have them taken into account:
+
你可以将<code><nowiki>/etc/auto.master</nowiki></code>中的选择添加为自己的挂载点以满足个性化的需要。
 +
完成更改后,请运行以下命令让它们生效:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo /etc/init.d/autofs reload
 
sudo /etc/init.d/autofs reload

2009年3月6日 (五) 23:42的最新版本

引言

Automount是当前流行的将目录挂载到网络上的方式。这是迄今为止最容易管理和节省带宽的解决方案。 通过这个指南,文件的安装和配置将自动完成。它并不是经常使用, 但 AutofsLDAP 是非常有用和基础的,特别是在小型企业环境下,这个指南是有益的。

安装

安装如下软件包: autofs (see InstallingSoftware)

配置

为了能够自动配置,你需要编辑/etc/default/auto.master 文件. 以下是由Ubuntu提供的示例文件:

#
# $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

在默认情况下,如你所见,每个挂载点都与其他的配置文件有联系。它们中的大部分现在还没用(hal & co公司提供有现代桌面自动挂载的功能).。这将对轻型桌面系统有益。/net/smb仍然是可用的。 在 Unix 世界里, /net 可以自动检测NFS文件系统。举个例子, 如果你有一个名叫fileserver 的服务器,它具有一个基于NFS的目录/export (查看NFSServerHowTo来了解如何建立一个这样的服务器),你可以通过一个shell命令来进入它cd /net/fileserver/export. 在一个NFS文件服务器的环境下,这样的自动挂载是十分有用的。 而 /smb 挂载点, 是对SMB文件系统拥有相同的功能(如果您需要验证加入SMB共用,自动方式将无法正常运作). 卸载 /net/smb 不失为一个好的解决方法. 你可以将/etc/auto.master中的选择添加为自己的挂载点以满足个性化的需要。 完成更改后,请运行以下命令让它们生效:

sudo /etc/init.d/autofs reload