Show Table of Contents
15.5. 设置默认服务器列表
从系统管理员的角度来看,不可能一次性为所有用户设置一堆书签。不过,系统管理员可以允许用户访问文件共享。
Nautilus 在
~/.config/nautilus/servers 文件中以 XBEL 格式存储了文件共享服务器的列表。可以向该文件添加文件共享服务器列表,使用户得以轻易访问文件共享。
注意
XBEL(XML 书签交换语言)是一种允许您共享 URI(统一资源标识符)的 XML 标准。在 GNOME 中, XBEL 用来在诸如 Nautilus 的应用程序中共享桌面书签。
在下例中, Nautilus 在
~/.config/nautilus/servers 文件中以 URI ftp://ftp.gnome.org/ 创建了一个名为 GNOME FTP 的书签。
例 15.4. ~/.config/nautilus/servers 文件
<?xml version="1.0" encoding="UTF-8"?>
<xbel version="1.0"
xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks"
xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info">
<bookmark href="<input>ftp://ftp.gnome.org/</input>">
<title><input>GNOME FTP</input></title>
</bookmark>
</xbel>
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.