https://wiki.archlinux.org/api.php?action=feedcontributions&user=Name5566&feedformat=atom
ArchWiki - User contributions [en]
2024-03-28T22:19:17Z
User contributions
MediaWiki 1.41.0
https://wiki.archlinux.org/index.php?title=Thunar_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=113623
Thunar (简体中文)
2010-08-10T11:27:09Z
<p>Name5566: /* 配置 */</p>
<hr />
<div>[[Category: Utilities (简体中文)]]<br />
{{i18n|Thunar}}<br />
<br />
Thunar 是一个快速、轻量级、容易使用的文件管理器。它是 Xfce4 的一部分,但是它能够和不同的窗口管理器一起工作。Thunar 对 [[Openbox]] 和 [[Awesome]] 用户非常有吸引力。<br />
<br />
==安装==<br />
# pacman -S thunar<br />
<br />
如果你使用 Xfce4,你已经安装了 Thunar。<br />
<br />
==插件==<br />
这里的很多插件都是 xfce4-goodies group 的一部分,因此,如果你已经安装了此 group,你可能已经拥有了它们。<br />
<br />
===Thunar Volume 管理器===<br />
Thunar 支持自动挂载,Thunar Volume 管理器扩展了 Thunar 自带的挂载功能,例如,在挂载时自动的运行命令或者自动打开一个 Thunar 窗口。<br />
<br />
====依赖====<br />
Thunar Volume 管理器需要 Dbus 和 HAL 才能运行。<br />
<br />
====安装====<br />
# pacman -S thunar-volman<br />
<br />
====配置====<br />
它也能被配置为当相机和音频播放器连接时执行一定的行为。<br />
安装好此插件之后:<br />
# 启动 Thunar 点击 Edit - Preferences<br />
# 选择 Advanced 标签,选中 'Enable Volume Management'(未安装时显示:Install the "thunar-volman" package to use the volume management support in Thunar)<br />
# 点击配置进行适当的改变(看下面的例子)<br />
这里有一个设置的例子,使用 Amarok 播放 CD。<br />
Multimedia - Audio CDs: <code>amarok --cdplay %d</code><br />
<br />
====提示和技巧====<br />
=====使用 Daemon 模式=====<br />
Thunar 可以被运行在 daemon 模式下。这样做有不少好处,例如能够快速启动,Thunar 运行在后台,在必要时仅打开一个窗口(例如,当插入一个 flash 设备)。<br />
<br />
自动运行它的一种方式是通过 {{Filename|.xinitrc}} 或者自动启动的脚本(such as [[Openbox]]'s {{Filename|autostart.sh}})。使用 Daemon 模式运行只需要简单的添加以下语句到你的启动脚本中或者在终端运行:<br />
thunar --daemon &<br />
<br />
=====消除冲突=====<br />
请避免同时使用 hal 和 autofs。<br />
<br />
如果你使用 {{Filename|.xinitrc}} 来启动你的窗口管理器时,自动挂载不能工作,那么做类似的修改<br />
<br />
exec /usr/bin/dwm<br />
<br />
改为<br />
exec ck-launch-session /usr/bin/dwm<br />
<br />
=====设置图标主题=====<br />
如果你没有使用 Gnome 或者 Xfce,那么可能缺少与 icons 相关的包或者配置。像 Awesome 和 Xmonad 之类的窗口管理器并不附带 X 设置管理器(XSettings managers),而 Thunar 首先就会去寻找 icon 的设置信息。如果你已经使用了很多 Xfce4 和 Gnome 应用程序,那么 xfce-mcs-manager 可能已经被安装了并且在启动时运行。我们可以在 ~/.gtkrc-2.0 中添加这样的设置:<br />
gtk-icon-theme-name = "Tango"<br />
<br />
当然,安装 gnome-icon-theme 包能够改变 Thunar 默认下所有文件都是白纸图标(paper icon)的情况。<br />
# pacman -S gnome-icon-theme<br />
<br />
===Thunar 存档管理插件===<br />
Thunar 存档管理插件是类似于 File Roller,Ark,Xarchiver,它是文件存档管理软件的前端,为打开、解压提供了统一的接口。<br />
<br />
====安装====<br />
# pacman -S thunar-archive-plugin<br />
<br />
===Thunar 媒体标签插件===<br />
媒体标签插件会显示媒体文件的详细信息。它支持 ID3(MP3 文件格式的系统)和 Ogg/Vorbis 标签。它也包含重命名器(renamer?),允许编辑媒体标签。<br />
====安装====<br />
# pacman -S thunar-media-tags-plugin<br />
<br />
===Thunar Thumbnailers===<br />
The aim of the Thunar Thumbnailers project is to provide thumbnail generation for media formats that are neglected by other thumbnailers. If you want thumbnails and deal with media formats that are not compatible with other thumbnailers, use this. For a full list of supported formats, see the [http://goodies.xfce.org/projects/thunar-plugins/thunar-thumbnailers/ project page].<br />
====安装====<br />
# pacman -S thunar-thumbnailers<br />
<br />
===Thunar 共享===<br />
Thunar 共享插件允许你快速的通过 Samba 来共享一个文件夹并且无须 root 来进行访问。<br />
<br />
====安装====<br />
<br />
在 [[AUR]] 中安装 [http://aur.archlinux.org/packages.php?ID=24152 thunar-shares-plugin] 包。<br />
<br />
====配置====<br />
<br />
使用 root 用户:<br />
<br />
export 以下变量到环境中去用于接下来命令的执行:<br />
# export USERSHARES_DIR="/var/lib/samba/usershares"<br />
# export USERSHARES_GROUP="sambashare"<br />
<br />
在 /var/lib/samba 中创建用户共享目录:<br />
# mkdir -p ${USERSHARES_DIR}<br />
创建 sambashare 组:<br />
# groupadd ${USERSHARES_GROUP}<br />
改变目录和组的所有者:<br />
# chown root:${USERSHARES_GROUP} ${USERSHARES_DIR}<br />
改变 usershares 目录的权限,让 sambashare 组中的用户可以读、写、执行文件:<br />
# chmod 01770 ${USERSHARES_DIR}<br />
<br />
使用你喜欢的文本编辑器(以 root 身份)创建文件 /etc/samba/smb.conf<br />
<br />
# joe /etc/samba/smb.conf<br />
<br />
使用此 smb.conf 配置文件:<br />
<br />
#This is the main Samba configuration file. You should read the<br />
#smb.conf(5) manual page in order to understand the options listed<br />
#here. Samba has a huge number of configurable options (perhaps too<br />
#many!) most of which are not shown in this example<br />
#<br />
#For a step to step guide on installing, configuring and using samba, <br />
# read the Samba-HOWTO-Collection. This may be obtained from:<br />
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf<br />
#<br />
# Many working examples of smb.conf files can be found in the <br />
# Samba-Guide which is generated daily and can be downloaded from: <br />
# http://www.samba.org/samba/docs/Samba-Guide.pdf<br />
#<br />
# Any line which starts with a ; (semi-colon) or a # (hash) <br />
# is a comment and is ignored. In this example we will use a #<br />
# for commentry and a ; for parts of the config file that you<br />
# may wish to enable<br />
#<br />
# NOTE: Whenever you modify this file you should run the command "testparm"<br />
# to check that you have not made any basic syntactic errors. <br />
#<br />
[global]<br />
workgroup = WORKGROUP<br />
security = share<br />
server string = My Share<br />
load printers = yes<br />
log file = /var/log/samba/%m.log<br />
max log size = 50<br />
usershare path = /var/lib/samba/usershares<br />
usershare max shares = 100<br />
usershare allow guests = yes<br />
usershare owner only = yes<br />
<br />
<br />
#Windows Internet Name Serving Support Section:<br />
<br />
#WINS Support - Tells the NMBD component of Samba to enable it's WINS Server<br />
; wins support = yes<br />
<br />
# WINS Server - Tells the NMBD components of Samba to be a WINS Client<br />
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both<br />
; wins server = w.x.y.z<br />
<br />
#WINS Proxy - Tells Samba to answer name resolution queries on<br />
# behalf of a non WINS capable client, for this to work there must be<br />
# at least one WINS Server on the network. The default is NO.<br />
; wins proxy = yes<br />
<br />
保存文件并且添加你的用户到 sambashares 组,替换下面的 "your_username" 为你的用户名:<br />
<br />
# usermod -a -G ${USERSHARES_GROUP} your_username<br />
<br />
重启 Samba:<br />
<br />
# /etc/rc.d/samba restart<br />
<br />
登出再登录。你现在可以在任何文件夹上点击右键属性中进行共享了。<br />
<br />
让你的 samba 在系统启动时启动,添加 samba 到 {{Filename|/etc/rc.conf}} 中的 daemons 去。<br />
<br />
更多的信息,访问 [[Samba]] wiki 页面。<br />
<br />
==参考资料==<br />
* [http://thunar.xfce.org/index.html Thunar] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-volman Thunar Volume Manager] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin Thunar Archive Plugin] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-media-tags-plugin Thunar Media Tags Plugin] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-thumbnailers/ Thunar Thumbnailers] 项目页面。<br />
*[http://goodies.xfce.org/projects/thunar-plugins/thunar-shares-plugin/ Thunar Shares Plugin] 项目页面。<br />
* 插件:[http://goodies.xfce.org/projects/thunar-plugins/start list]。</div>
Name5566
https://wiki.archlinux.org/index.php?title=Thunar_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=113622
Thunar (简体中文)
2010-08-10T11:23:28Z
<p>Name5566: /* 配置 */</p>
<hr />
<div>[[Category: Utilities (简体中文)]]<br />
{{i18n|Thunar}}<br />
<br />
Thunar 是一个快速、轻量级、容易使用的文件管理器。它是 Xfce4 的一部分,但是它能够和不同的窗口管理器一起工作。Thunar 对 [[Openbox]] 和 [[Awesome]] 用户非常有吸引力。<br />
<br />
==安装==<br />
# pacman -S thunar<br />
<br />
如果你使用 Xfce4,你已经安装了 Thunar。<br />
<br />
==插件==<br />
这里的很多插件都是 xfce4-goodies group 的一部分,因此,如果你已经安装了此 group,你可能已经拥有了它们。<br />
<br />
===Thunar Volume 管理器===<br />
Thunar 支持自动挂载,Thunar Volume 管理器扩展了 Thunar 自带的挂载功能,例如,在挂载时自动的运行命令或者自动打开一个 Thunar 窗口。<br />
<br />
====依赖====<br />
Thunar Volume 管理器需要 Dbus 和 HAL 才能运行。<br />
<br />
====安装====<br />
# pacman -S thunar-volman<br />
<br />
====配置====<br />
它也能被配置为当相机和音频播放器连接时执行一定的行为。<br />
安装好此插件之后:<br />
# 启动 Thunar 点击 Edit - Preferences<br />
# 选择 Advanced 标签,选中 'Enable Volume Management'(未安装时显示:Install the "thunar-volman" package to use the volume management support in Thunar)<br />
# 点击配置进行适当的改变(看下面的例子)<br />
这里有一个设置的例子,使用 Amarok 播放 CD。<br />
Multimedia - Audio CDs: <code>amarok --cdplay %d</code><br />
<br />
====提示和技巧====<br />
=====使用 Daemon 模式=====<br />
Thunar 可以被运行在 daemon 模式下。这样做有不少好处,例如能够快速启动,Thunar 运行在后台,在必要时仅打开一个窗口(例如,当插入一个 flash 设备)。<br />
<br />
自动运行它的一种方式是通过 {{Filename|.xinitrc}} 或者自动启动的脚本(such as [[Openbox]]'s {{Filename|autostart.sh}})。使用 Daemon 模式运行只需要简单的添加以下语句到你的启动脚本中或者在终端运行:<br />
thunar --daemon &<br />
<br />
=====消除冲突=====<br />
请避免同时使用 hal 和 autofs。<br />
<br />
如果你使用 {{Filename|.xinitrc}} 来启动你的窗口管理器时,自动挂载不能工作,那么做类似的修改<br />
<br />
exec /usr/bin/dwm<br />
<br />
改为<br />
exec ck-launch-session /usr/bin/dwm<br />
<br />
=====设置图标主题=====<br />
如果你没有使用 Gnome 或者 Xfce,那么可能缺少与 icons 相关的包或者配置。像 Awesome 和 Xmonad 之类的窗口管理器并不附带 X 设置管理器(XSettings managers),而 Thunar 首先就会去寻找 icon 的设置信息。如果你已经使用了很多 Xfce4 和 Gnome 应用程序,那么 xfce-mcs-manager 可能已经被安装了并且在启动时运行。我们可以在 ~/.gtkrc-2.0 中添加这样的设置:<br />
gtk-icon-theme-name = "Tango"<br />
<br />
当然,安装 gnome-icon-theme 包能够改变 Thunar 默认下所有文件都是白纸图标(paper icon)的情况。<br />
# pacman -S gnome-icon-theme<br />
<br />
===Thunar 存档管理插件===<br />
Thunar 存档管理插件是类似于 File Roller,Ark,Xarchiver,它是文件存档管理软件的前端,为打开、解压提供了统一的接口。<br />
<br />
====安装====<br />
# pacman -S thunar-archive-plugin<br />
<br />
===Thunar 媒体标签插件===<br />
媒体标签插件会显示媒体文件的详细信息。它支持 ID3(MP3 文件格式的系统)和 Ogg/Vorbis 标签。它也包含重命名器(renamer?),允许编辑媒体标签。<br />
====安装====<br />
# pacman -S thunar-media-tags-plugin<br />
<br />
===Thunar Thumbnailers===<br />
The aim of the Thunar Thumbnailers project is to provide thumbnail generation for media formats that are neglected by other thumbnailers. If you want thumbnails and deal with media formats that are not compatible with other thumbnailers, use this. For a full list of supported formats, see the [http://goodies.xfce.org/projects/thunar-plugins/thunar-thumbnailers/ project page].<br />
====安装====<br />
# pacman -S thunar-thumbnailers<br />
<br />
===Thunar 共享===<br />
Thunar 共享插件允许你快速的通过 Samba 来共享一个文件夹并且无须 root 来进行访问。<br />
<br />
====安装====<br />
<br />
在 [[AUR]] 中安装 [http://aur.archlinux.org/packages.php?ID=24152 thunar-shares-plugin] 包。<br />
<br />
====配置====<br />
<br />
使用 root 用户:<br />
<br />
export 以下变量到环境中去用于接下来命令的执行:<br />
# export USERSHARES_DIR="/var/lib/samba/usershares"<br />
# export USERSHARES_GROUP="sambashare"<br />
<br />
在 /var/lib/samba 中创建用户共享目录:<br />
# mkdir -p ${USERSHARES_DIR}<br />
创建 sambashare 组:<br />
# groupadd ${USERSHARES_GROUP}<br />
改变目录和组的所有者:<br />
# chown root:${USERSHARES_GROUP} ${USERSHARES_DIR}<br />
改变 usershares 目录的权限,让 sambashare 组中的用户可以读、写、执行文件:<br />
# chmod 01770 ${USERSHARES_DIR}<br />
<br />
使用你喜欢的文本编辑器(以 root 身份)创建文件 /etc/samba/smb.conf<br />
<br />
# joe /etc/samba/smb.conf<br />
<br />
使用此 smb.conf 配置文件:<br />
<br />
#This is the main Samba configuration file. You should read the<br />
#smb.conf(5) manual page in order to understand the options listed<br />
#here. Samba has a huge number of configurable options (perhaps too<br />
#many!) most of which are not shown in this example<br />
#<br />
#For a step to step guide on installing, configuring and using samba, <br />
# read the Samba-HOWTO-Collection. This may be obtained from:<br />
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf<br />
#<br />
# Many working examples of smb.conf files can be found in the <br />
# Samba-Guide which is generated daily and can be downloaded from: <br />
# http://www.samba.org/samba/docs/Samba-Guide.pdf<br />
#<br />
# Any line which starts with a ; (semi-colon) or a # (hash) <br />
# is a comment and is ignored. In this example we will use a #<br />
# for commentry and a ; for parts of the config file that you<br />
# may wish to enable<br />
#<br />
# NOTE: Whenever you modify this file you should run the command "testparm"<br />
# to check that you have not made any basic syntactic errors. <br />
#<br />
[global]<br />
workgroup = WORKGROUP<br />
security = share<br />
server string = My Share<br />
load printers = yes<br />
log file = /var/log/samba/%m.log<br />
max log size = 50<br />
usershare path = /var/lib/samba/usershares<br />
usershare max shares = 100<br />
usershare allow guests = yes<br />
usershare owner only = yes<br />
<br />
<br />
#Windows Internet Name Serving Support Section:<br />
<br />
#WINS Support - Tells the NMBD component of Samba to enable it's WINS Server<br />
; wins support = yes<br />
<br />
# WINS Server - Tells the NMBD components of Samba to be a WINS Client<br />
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both<br />
; wins server = w.x.y.z<br />
<br />
#WINS Proxy - Tells Samba to answer name resolution queries on<br />
# behalf of a non WINS capable client, for this to work there must be<br />
# at least one WINS Server on the network. The default is NO.<br />
; wins proxy = yes<br />
<br />
保存文件并且添加你的用户到 sambashares 组,替换下面的 "your_username" 为你的用户名:<br />
<br />
# usermod -a -G ${USERSHARES_GROUP} your_username<br />
<br />
重启 Samba:<br />
<br />
# /etc/rc.d/samba restart<br />
<br />
登出再登录。你现在可以在任何文件夹上点击右键属性中进行共享了。<br />
<br />
让你的 samba 在系统启动时启动,添加 samba 到 {{Filename|/etc/rc.conf}} 中的 daemons 去。<br />
<br />
更多的信息,访问 [[Samba]] wiki 页面。<br />
<br />
==参考资料==<br />
* [http://thunar.xfce.org/index.html Thunar] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-volman Thunar Volume Manager] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin Thunar Archive Plugin] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-media-tags-plugin Thunar Media Tags Plugin] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-thumbnailers/ Thunar Thumbnailers] 项目页面。<br />
*[http://goodies.xfce.org/projects/thunar-plugins/thunar-shares-plugin/ Thunar Shares Plugin] 项目页面。<br />
* 插件:[http://goodies.xfce.org/projects/thunar-plugins/start list]。</div>
Name5566
https://wiki.archlinux.org/index.php?title=Thunar_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=113621
Thunar (简体中文)
2010-08-10T11:12:54Z
<p>Name5566: /* 配置 */</p>
<hr />
<div>[[Category: Utilities (简体中文)]]<br />
{{i18n|Thunar}}<br />
<br />
Thunar 是一个快速、轻量级、容易使用的文件管理器。它是 Xfce4 的一部分,但是它能够和不同的窗口管理器一起工作。Thunar 对 [[Openbox]] 和 [[Awesome]] 用户非常有吸引力。<br />
<br />
==安装==<br />
# pacman -S thunar<br />
<br />
如果你使用 Xfce4,你已经安装了 Thunar。<br />
<br />
==插件==<br />
这里的很多插件都是 xfce4-goodies group 的一部分,因此,如果你已经安装了此 group,你可能已经拥有了它们。<br />
<br />
===Thunar Volume 管理器===<br />
Thunar 支持自动挂载,Thunar Volume 管理器扩展了 Thunar 自带的挂载功能,例如,在挂载时自动的运行命令或者自动打开一个 Thunar 窗口。<br />
<br />
====依赖====<br />
Thunar Volume 管理器需要 Dbus 和 HAL 才能运行。<br />
<br />
====安装====<br />
# pacman -S thunar-volman<br />
<br />
====配置====<br />
它也能被配置为当相机和音频播放器连接时执行一定的行为。<br />
安装好此插件之后:<br />
# 启动 Thunar 点击 Edit - Preferences<br />
# 选择 Advanced 标签,选中 'Enable Volume Management'(未安装时显示:Install the "thunar-volman" package to use the volume management support in Thunar)<br />
# 点击配置进行适当的改变(看下面的例子)<br />
这里有一个设置的例子,使用 Amarok 播放 CD。<br />
Multimedia - Audio CDs: <code>amarok --cdplay %d</code><br />
<br />
====提示和技巧====<br />
=====使用 Daemon 模式=====<br />
Thunar 可以被运行在 daemon 模式下。这样做有不少好处,例如能够快速启动,Thunar 运行在后台,在必要时仅打开一个窗口(例如,当插入一个 flash 设备)。<br />
<br />
自动运行它的一种方式是通过 {{Filename|.xinitrc}} 或者自动启动的脚本(such as [[Openbox]]'s {{Filename|autostart.sh}})。使用 Daemon 模式运行只需要简单的添加以下语句到你的启动脚本中或者在终端运行:<br />
thunar --daemon &<br />
<br />
=====消除冲突=====<br />
请避免同时使用 hal 和 autofs。<br />
<br />
如果你使用 {{Filename|.xinitrc}} 来启动你的窗口管理器时,自动挂载不能工作,那么做类似的修改<br />
<br />
exec /usr/bin/dwm<br />
<br />
改为<br />
exec ck-launch-session /usr/bin/dwm<br />
<br />
=====设置图标主题=====<br />
如果你没有使用 Gnome 或者 Xfce,那么可能缺少与 icons 相关的包或者配置。像 Awesome 和 Xmonad 之类的窗口管理器并不附带 X 设置管理器(XSettings managers),而 Thunar 首先就会去寻找 icon 的设置信息。如果你已经使用了很多 Xfce4 和 Gnome 应用程序,那么 xfce-mcs-manager 可能已经被安装了并且在启动时运行。我们可以在 ~/.gtkrc-2.0 中添加这样的设置:<br />
gtk-icon-theme-name = "Tango"<br />
<br />
当然,安装 gnome-icon-theme 包能够改变 Thunar 默认下所有文件都是白纸图标(paper icon)的情况。<br />
# pacman -S gnome-icon-theme<br />
<br />
===Thunar 存档管理插件===<br />
Thunar 存档管理插件是类似于 File Roller,Ark,Xarchiver,它是文件存档管理软件的前端,为打开、解压提供了统一的接口。<br />
<br />
====安装====<br />
# pacman -S thunar-archive-plugin<br />
<br />
===Thunar 媒体标签插件===<br />
媒体标签插件会显示媒体文件的详细信息。它支持 ID3(MP3 文件格式的系统)和 Ogg/Vorbis 标签。它也包含重命名器(renamer?),允许编辑媒体标签。<br />
====安装====<br />
# pacman -S thunar-media-tags-plugin<br />
<br />
===Thunar Thumbnailers===<br />
The aim of the Thunar Thumbnailers project is to provide thumbnail generation for media formats that are neglected by other thumbnailers. If you want thumbnails and deal with media formats that are not compatible with other thumbnailers, use this. For a full list of supported formats, see the [http://goodies.xfce.org/projects/thunar-plugins/thunar-thumbnailers/ project page].<br />
====安装====<br />
# pacman -S thunar-thumbnailers<br />
<br />
===Thunar 共享===<br />
Thunar 共享插件允许你快速的通过 Samba 来共享一个文件夹并且无须 root 来进行访问。<br />
<br />
====安装====<br />
<br />
在 [[AUR]] 中安装 [http://aur.archlinux.org/packages.php?ID=24152 thunar-shares-plugin] 包。<br />
<br />
====配置====<br />
<br />
使用 root 用户:<br />
<br />
export 以下变量到环境中去用于接下来命令的执行:<br />
# export USERSHARES_DIR="/var/lib/samba/usershares"<br />
# export USERSHARES_GROUP="sambashare"<br />
<br />
在 /var/lib/samba 中创建用户共享目录:<br />
# mkdir -p ${USERSHARES_DIR}<br />
创建 sambashare 组:<br />
# groupadd ${USERSHARES_GROUP}<br />
改变目录和组的所有者:<br />
# chown root:${USERSHARES_GROUP} ${USERSHARES_DIR}<br />
改变 usershares 目录的权限,让 sambashare 组中的用户可以读、写、执行文件:<br />
# chmod 01770 ${USERSHARES_DIR}<br />
<br />
使用你喜欢的文本编辑器(以 root 身份)创建文件 /etc/samba/smb.conf<br />
<br />
# joe /etc/samba/smb.conf<br />
<br />
使用此 smb.conf 配置文件:<br />
<br />
##This is the main Samba configuration file. You should read the<br />
##smb.conf(5) manual page in order to understand the options listed<br />
##here. Samba has a huge number of configurable options (perhaps too<br />
##many!) most of which are not shown in this example<br />
##<br />
##For a step to step guide on installing, configuring and using samba, <br />
## read the Samba-HOWTO-Collection. This may be obtained from:<br />
## http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf<br />
##<br />
## Many working examples of smb.conf files can be found in the <br />
## Samba-Guide which is generated daily and can be downloaded from: <br />
## http://www.samba.org/samba/docs/Samba-Guide.pdf<br />
##<br />
## Any line which starts with a ; (semi-colon) or a # (hash) <br />
## is a comment and is ignored. In this example we will use a #<br />
## for commentry and a ; for parts of the config file that you<br />
## may wish to enable<br />
##<br />
## NOTE: Whenever you modify this file you should run the command "testparm"<br />
## to check that you have not made any basic syntactic errors. <br />
##<br />
#[global]<br />
# workgroup = WORKGROUP<br />
# security = share<br />
# server string = My Share<br />
# load printers = yes<br />
# log file = /var/log/samba/%m.log<br />
# max log size = 50<br />
# usershare path = /var/lib/samba/usershares<br />
# usershare max shares = 100<br />
# usershare allow guests = yes<br />
# usershare owner only = yes<br />
# <br />
#<br />
# #Windows Internet Name Serving Support Section:<br />
#<br />
# #WINS Support - Tells the NMBD component of Samba to enable it's WINS Server<br />
#; wins support = yes<br />
#<br />
## WINS Server - Tells the NMBD components of Samba to be a WINS Client<br />
## Note: Samba can be either a WINS Server, or a WINS Client, but NOT both<br />
#; wins server = w.x.y.z<br />
#<br />
##WINS Proxy - Tells Samba to answer name resolution queries on<br />
## behalf of a non WINS capable client, for this to work there must be<br />
## at least one WINS Server on the network. The default is NO.<br />
#; wins proxy = yes<br />
<br />
保存文件并且添加你的用户到 sambashares 组,替换下面的 "your_username" 为你的用户名:<br />
<br />
# usermod -a -G ${USERSHARES_GROUP} your_username<br />
<br />
重启 Samba:<br />
<br />
# /etc/rc.d/samba restart<br />
<br />
登出再登录。你现在可以在任何文件夹上点击右键属性中进行共享了。<br />
<br />
让你的 samba 在系统启动时启动,添加 samba 到 {{Filename|/etc/rc.conf}} 中的 daemons 去。<br />
<br />
更多的信息,访问 [[Samba]] wiki 页面。<br />
<br />
==参考资料==<br />
* [http://thunar.xfce.org/index.html Thunar] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-volman Thunar Volume Manager] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin Thunar Archive Plugin] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-media-tags-plugin Thunar Media Tags Plugin] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-thumbnailers/ Thunar Thumbnailers] 项目页面。<br />
*[http://goodies.xfce.org/projects/thunar-plugins/thunar-shares-plugin/ Thunar Shares Plugin] 项目页面。<br />
* 插件:[http://goodies.xfce.org/projects/thunar-plugins/start list]。</div>
Name5566
https://wiki.archlinux.org/index.php?title=Thunar_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=113566
Thunar (简体中文)
2010-08-09T17:26:42Z
<p>Name5566: Created page with "Category: Utilities (简体中文) {{i18n|Thunar}} Thunar 是一个快速、轻量级、容易使用的文件管理器。它是 Xfce4 的一部分,但是它能够和不同..."</p>
<hr />
<div>[[Category: Utilities (简体中文)]]<br />
{{i18n|Thunar}}<br />
<br />
Thunar 是一个快速、轻量级、容易使用的文件管理器。它是 Xfce4 的一部分,但是它能够和不同的窗口管理器一起工作。Thunar 对 [[Openbox]] 和 [[Awesome]] 用户非常有吸引力。<br />
<br />
==安装==<br />
# pacman -S thunar<br />
<br />
如果你使用 Xfce4,你已经安装了 Thunar。<br />
<br />
==插件==<br />
这里的很多插件都是 xfce4-goodies group 的一部分,因此,如果你已经安装了此 group,你可能已经拥有了它们。<br />
<br />
===Thunar Volume 管理器===<br />
Thunar 支持自动挂载,Thunar Volume 管理器扩展了 Thunar 自带的挂载功能,例如,在挂载时自动的运行命令或者自动打开一个 Thunar 窗口。<br />
<br />
====依赖====<br />
Thunar Volume 管理器需要 Dbus 和 HAL 才能运行。<br />
<br />
====安装====<br />
# pacman -S thunar-volman<br />
<br />
====配置====<br />
它也能被配置为当相机和音频播放器连接时执行一定的行为。<br />
安装好此插件之后:<br />
# 启动 Thunar 点击 Edit - Preferences<br />
# 选择 Advanced 标签,选中 'Enable Volume Management'(未安装时显示:Install the "thunar-volman" package to use the volume management support in Thunar)<br />
# 点击配置进行适当的改变(看下面的例子)<br />
这里有一个设置的例子,使用 Amarok 播放 CD。<br />
Multimedia - Audio CDs: <code>amarok --cdplay %d</code><br />
<br />
====提示和技巧====<br />
=====使用 Daemon 模式=====<br />
Thunar 可以被运行在 daemon 模式下。这样做有不少好处,例如能够快速启动,Thunar 运行在后台,在必要时仅打开一个窗口(例如,当插入一个 flash 设备)。<br />
<br />
自动运行它的一种方式是通过 {{Filename|.xinitrc}} 或者自动启动的脚本(such as [[Openbox]]'s {{Filename|autostart.sh}})。使用 Daemon 模式运行只需要简单的添加以下语句到你的启动脚本中或者在终端运行:<br />
thunar --daemon &<br />
<br />
=====消除冲突=====<br />
请避免同时使用 hal 和 autofs。<br />
<br />
如果你使用 {{Filename|.xinitrc}} 来启动你的窗口管理器时,自动挂载不能工作,那么做类似的修改<br />
<br />
exec /usr/bin/dwm<br />
<br />
改为<br />
exec ck-launch-session /usr/bin/dwm<br />
<br />
=====设置图标主题=====<br />
如果你没有使用 Gnome 或者 Xfce,那么可能缺少与 icons 相关的包或者配置。像 Awesome 和 Xmonad 之类的窗口管理器并不附带 X 设置管理器(XSettings managers),而 Thunar 首先就会去寻找 icon 的设置信息。如果你已经使用了很多 Xfce4 和 Gnome 应用程序,那么 xfce-mcs-manager 可能已经被安装了并且在启动时运行。我们可以在 ~/.gtkrc-2.0 中添加这样的设置:<br />
gtk-icon-theme-name = "Tango"<br />
<br />
当然,安装 gnome-icon-theme 包能够改变 Thunar 默认下所有文件都是白纸图标(paper icon)的情况。<br />
# pacman -S gnome-icon-theme<br />
<br />
===Thunar 存档管理插件===<br />
Thunar 存档管理插件是类似于 File Roller,Ark,Xarchiver,它是文件存档管理软件的前端,为打开、解压提供了统一的接口。<br />
<br />
====安装====<br />
# pacman -S thunar-archive-plugin<br />
<br />
===Thunar 媒体标签插件===<br />
媒体标签插件会显示媒体文件的详细信息。它支持 ID3(MP3 文件格式的系统)和 Ogg/Vorbis 标签。它也包含重命名器(renamer?),允许编辑媒体标签。<br />
====安装====<br />
# pacman -S thunar-media-tags-plugin<br />
<br />
===Thunar Thumbnailers===<br />
The aim of the Thunar Thumbnailers project is to provide thumbnail generation for media formats that are neglected by other thumbnailers. If you want thumbnails and deal with media formats that are not compatible with other thumbnailers, use this. For a full list of supported formats, see the [http://goodies.xfce.org/projects/thunar-plugins/thunar-thumbnailers/ project page].<br />
====安装====<br />
# pacman -S thunar-thumbnailers<br />
<br />
===Thunar 共享===<br />
Thunar 共享插件允许你快速的通过 Samba 来共享一个文件夹并且无须 root 来进行访问。<br />
<br />
====安装====<br />
<br />
在 [[AUR]] 中安装 [http://aur.archlinux.org/packages.php?ID=24152 thunar-shares-plugin] 包。<br />
<br />
====配置====<br />
<br />
使用 root 用户:<br />
<br />
export 以下变量到环境中去用于接下来命令的执行:<br />
# export USERSHARES_DIR="/var/lib/samba/usershares"<br />
# export USERSHARES_GROUP="sambashare"<br />
<br />
在 /var/lib/samba 中创建用户共享目录:<br />
# mkdir -p ${USERSHARES_DIR}<br />
创建 sambashare 组:<br />
# groupadd ${USERSHARES_GROUP}<br />
改变目录和组的所有者:<br />
# chown root:${USERSHARES_GROUP} ${USERSHARES_DIR}<br />
改变 usershares 目录的权限,让 sambashare 组中的用户可以读、写、执行文件:<br />
# chmod 01770 ${USERSHARES_DIR}<br />
<br />
使用你喜欢的文本编辑器(以 root 身份)创建文件 /etc/samba/smb.conf<br />
<br />
# joe /etc/samba/smb.conf<br />
<br />
使用此 smb.conf 配置文件:<br />
<br />
##This is the main Samba configuration file. You should read the<br />
##smb.conf(5) manual page in order to understand the options listed<br />
##here. Samba has a huge number of configurable options (perhaps too<br />
##many!) most of which are not shown in this example<br />
##<br />
##For a step to step guide on installing, configuring and using samba, <br />
## read the Samba-HOWTO-Collection. This may be obtained from:<br />
## http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf<br />
##<br />
## Many working examples of smb.conf files can be found in the <br />
## Samba-Guide which is generated daily and can be downloaded from: <br />
## http://www.samba.org/samba/docs/Samba-Guide.pdf<br />
##<br />
## Any line which starts with a ; (semi-colon) or a # (hash) <br />
## is a comment and is ignored. In this example we will use a #<br />
## for commentry and a ; for parts of the config file that you<br />
## may wish to enable<br />
##<br />
## NOTE: Whenever you modify this file you should run the command "testparm"<br />
## to check that you have not made any basic syntactic errors. <br />
##<br />
#[global]<br />
# workgroup = WORKGROUP<br />
# security = share<br />
# server string = My Share<br />
# load printers = yes<br />
# log file = /var/log/samba/%m.log<br />
# max log size = 50<br />
# usershare path = /var/lib/samba/usershares<br />
# usershare max shares = 100<br />
# usershare allow guests = yes<br />
# usershare owner only = yes<br />
# <br />
#<br />
# #Windows Internet Name Serving Support Section:<br />
#<br />
# #WINS Support - Tells the NMBD component of Samba to enable it's WINS Server<br />
#; wins support = yes<br />
#<br />
## WINS Server - Tells the NMBD components of Samba to be a WINS Client<br />
## Note: Samba can be either a WINS Server, or a WINS Client, but NOT both<br />
#; wins server = w.x.y.z<br />
#<br />
##WINS Proxy - Tells Samba to answer name resolution queries on<br />
## behalf of a non WINS capable client, for this to work there must be<br />
## at least one WINS Server on the network. The default is NO.<br />
#; wins proxy = yes<br />
<br />
保存文件并且添加你的用户到 sambashares 组,替换下面的 "your_username" 为你的用户名:<br />
<br />
# usermod -a -G ${USERSHARES_GROUP} your_username<br />
<br />
重启 Samba:<br />
<br />
# /etc/rc.d/samba restart<br />
<br />
登出再登录。你现在可以在任何文件夹上点击右键进行共享了。<br />
<br />
让你的 samba 在系统启动时启动,添加 samba 到 {{Filename|/etc/rc.conf}} 中的 daemons 去。<br />
<br />
更多的信息,访问 [[Samba]] wiki 页面。<br />
<br />
==参考资料==<br />
* [http://thunar.xfce.org/index.html Thunar] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-volman Thunar Volume Manager] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin Thunar Archive Plugin] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-media-tags-plugin Thunar Media Tags Plugin] 项目页面。<br />
* [http://goodies.xfce.org/projects/thunar-plugins/thunar-thumbnailers/ Thunar Thumbnailers] 项目页面。<br />
*[http://goodies.xfce.org/projects/thunar-plugins/thunar-shares-plugin/ Thunar Shares Plugin] 项目页面。<br />
* 插件:[http://goodies.xfce.org/projects/thunar-plugins/start list]。</div>
Name5566