Difference between revisions of "Thunar"

From ArchWiki
Jump to: navigation, search
m
(Add templates to all filenames, cli's. Also add section on new automounting with Udev)
Line 7: Line 7:
 
==Installation==
 
==Installation==
 
To install, simply run:
 
To install, simply run:
  # pacman -S thunar
+
  {{cli|# pacman -S thunar}}
  
 
If you are running Xfce4, you will probably already have Thunar.
 
If you are running Xfce4, you will probably already have Thunar.
Line 23: Line 23:
 
====Installation====
 
====Installation====
 
It can be installed by running:
 
It can be installed by running:
  # pacman -S thunar-volman
+
  {{cli|# pacman -S thunar-volman}}
  
 
====Configuration====
 
====Configuration====
Line 41: Line 41:
  
 
To run it in daemon mode, simply add to your autostart script or run from the terminal:
 
To run it in daemon mode, simply add to your autostart script or run from the terminal:
  thunar --daemon &
+
  {{cli|$ thunar --daemon &}}
  
 
=====Eliminating Conflicts=====
 
=====Eliminating Conflicts=====
Line 48: Line 48:
 
If you cannot get automount running and start your window manager via {{Filename|.xinitrc}} you maybe want to change the start line for your window manger from
 
If you cannot get automount running and start your window manager via {{Filename|.xinitrc}} you maybe want to change the start line for your window manger from
  
  exec /usr/bin/dwm
+
  {{cli|$ exec /usr/bin/dwm}}
  
 
to
 
to
  exec ck-launch-session /usr/bin/dwm
+
  {{cli|$ exec ck-launch-session /usr/bin/dwm}}
  
 
=====Setting the Icon Theme=====
 
=====Setting the Icon Theme=====
When using Thunar outside of Gnome or Xfce, certain packages and configurations that control which icons are used may be missing.  Window Managers like Awesopme and Xmonad do not come with XSettings managers, which is where Thunar looks first for it's icon setting.  It is possible install and run xfce-mcs-manager from a startup script if many Xfce4 and Gnome applications are going to be used.  The gtk-icon-theme-name setting for gtk2 can be set for a user by adding something like the following to ~/.gtkrc-2.0:
+
When using Thunar outside of Gnome or Xfce, certain packages and configurations that control which icons are used may be missing.  Window Managers like Awesopme and Xmonad do not come with XSettings managers, which is where Thunar looks first for it's icon setting.  It is possible install and run xfce-mcs-manager from a startup script if many Xfce4 and Gnome applications are going to be used.  The gtk-icon-theme-name setting for gtk2 can be set for a user by adding something like the following to {{Filename|~/.gtkrc-2.0}}:
 
  gtk-icon-theme-name = "Tango"
 
  gtk-icon-theme-name = "Tango"
  
 
Of course, just installing the gnome-icon-them package will give Thunar an icon theme to use other than the default paper icon for all items.
 
Of course, just installing the gnome-icon-them package will give Thunar an icon theme to use other than the default paper icon for all items.
  # pacman -S gnome-icon-theme
+
  {{cli|# pacman -S gnome-icon-theme}}
  
 
===Thunar Archive Plugin===
 
===Thunar Archive Plugin===
Line 65: Line 65:
 
====Installation====
 
====Installation====
 
It can be installed by running:
 
It can be installed by running:
  # pacman -S thunar-archive-plugin
+
  {{cli|# pacman -S thunar-archive-plugin}}
  
 
===Thunar Media Tags Plugin===
 
===Thunar Media Tags Plugin===
Line 71: Line 71:
 
====Installation====
 
====Installation====
 
It can be installed by running:
 
It can be installed by running:
  # pacman -S thunar-media-tags-plugin
+
  {{cli|# pacman -S thunar-media-tags-plugin}}
  
 
===Thunar Thumbnailers===
 
===Thunar Thumbnailers===
Line 77: Line 77:
 
====Installation====
 
====Installation====
 
It can be installed by running:
 
It can be installed by running:
  # pacman -S thunar-thumbnailers
+
  {{cli|# pacman -S thunar-thumbnailers}}
  
 
===Thunar Shares===
 
===Thunar Shares===
Line 91: Line 91:
  
 
This marks the named objects for automatic export to the environment of subsequently executed commands:
 
This marks the named objects for automatic export to the environment of subsequently executed commands:
   # export USERSHARES_DIR="/var/lib/samba/usershares"
+
   {{cli|<nowiki># export USERSHARES_DIR="/var/lib/samba/usershares"
  # export USERSHARES_GROUP="sambashare"
+
# export USERSHARES_GROUP="sambashare"</nowiki>}}
  
 
This creates the usershares directory in var/lib/samba:
 
This creates the usershares directory in var/lib/samba:
   # mkdir -p ${USERSHARES_DIR}
+
   {{cli|<nowiki># mkdir -p ${USERSHARES_DIR}</nowiki>}}
 
This makes the group sambashare:
 
This makes the group sambashare:
   # groupadd ${USERSHARES_GROUP}
+
   {{cli|<nowiki># groupadd ${USERSHARES_GROUP}</nowiki>}}
 
This changes the owner of the directory and group you just created to root:
 
This changes the owner of the directory and group you just created to root:
   # chown root:${USERSHARES_GROUP} ${USERSHARES_DIR}
+
   {{cli|<nowiki># chown root:${USERSHARES_GROUP} ${USERSHARES_DIR}</nowiki>}}
 
This changes the permissions of the usershares directory so that users in the group sambashare can read, write and execute files:
 
This changes the permissions of the usershares directory so that users in the group sambashare can read, write and execute files:
   # chmod 01770 ${USERSHARES_DIR}
+
   {{cli|<nowiki># chmod 01770 ${USERSHARES_DIR}</nowiki>}}
  
Using your favorite text editor as root, c reate the file /etc/samba/smb.conf
+
Using your favorite text editor as root, create the file {{Filename|/etc/samba/smb.conf}}
 
   
 
   
   # joe /etc/samba/smb.conf
+
   {{cli|# joe /etc/samba/smb.conf}}
 
+
Use this smb.conf configuration file:
+
  
 +
Use this {{Filename|smb.conf}} configuration file:
 +
{{File|name=/etc/samba/smb.conf|content=<nowiki>
 
   ##This is the main Samba configuration file. You should read the
 
   ##This is the main Samba configuration file. You should read the
 
   ##smb.conf(5) manual page in order to understand the options listed
 
   ##smb.conf(5) manual page in order to understand the options listed
Line 155: Line 155:
 
   ## behalf of a non WINS capable client, for this to work there must be
 
   ## behalf of a non WINS capable client, for this to work there must be
 
   ## at least one WINS Server on the network. The default is NO.
 
   ## at least one WINS Server on the network. The default is NO.
   #;  wins proxy = yes
+
   #;  wins proxy = yes</nowiki>}}
  
 
Save the file and then add your user to the group sambashares replacing "your_username" with the name of your  user:
 
Save the file and then add your user to the group sambashares replacing "your_username" with the name of your  user:
  
   # usermod -a -G ${USERSHARES_GROUP} your_username
+
   {{cli|# usermod -a -G <USERSHARES_GROUP> your_username}}
  
 
Restart Samba:
 
Restart Samba:
  
   # /etc/rc.d/samba restart
+
   {{cli|# /etc/rc.d/samba restart}}
  
 
Log out and log back in. You should now be able to right click on any directory and share it on the network.
 
Log out and log back in. You should now be able to right click on any directory and share it on the network.
Line 170: Line 170:
  
 
For more infomration, visit the [[Samba]] wiki page.
 
For more infomration, visit the [[Samba]] wiki page.
 +
 +
== udev Automounting ==
 +
Thunar and XFCE4 are in transition to using the kernel [[udev]] architecture for detecting and automounting removable media. '''18:42, 5 February 2011 (EST)'''
 +
 +
Install Thunar as usual, but be sure to include the user in the 'storage' group of {{Filename|/etc/group}}.
 +
 +
{{cli|# usermod -a -G storage <user>}}
 +
 +
In the user's {{Filename|.xinitrc}}, include ck-launch-seassion and dbus-launch before the startxfce4 command.
 +
 +
{{File|name=~/.xinitrc|content=<nowiki>setxkbmap -option terminate:ctrl_alt_bksp
 +
exec ck-launch-session dbus-launch startxfce4</nowiki>}}
  
 
==Links and References==
 
==Links and References==

Revision as of 23:44, 5 February 2011

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Thunar is a new file manager that is designed to be fast, lightweight, and easy-to-use. It is a part of Xfce4, but can be used with various standalone window managers.

Installation

To install, simply run:

Template:Cli

If you are running Xfce4, you will probably already have Thunar.

Plugins and Addons

Many of these plugins are part of the xfce4-goodies group, so if you have downloaded it, you will probably have all of these anyway.

Thunar Volume Manager

While Thunar can support automatic mounting and unmounting of removable media, the Thunar Volume Manager allows extended functionality, such as auto-running commands or automatically opening a Thunar window for mounted media.

Requirements

Please note that, to work correctly, the Thunar Volume Manager requires Dbus and HAL to be running. [Note: Thunar-volman's automount doesn't work currently because of the hal to udev switch.]

Installation

It can be installed by running:

Template:Cli

Configuration

It can also be configured to execute certain actions when cameras and audio players are connected. After installing the plugin:

  1. Launch Thunar and go to Preferences
  2. Under the 'Advanced' tab, check 'Enable Volume Management'
  3. Click configure and make desired changes (see below for an example)

Here's an example setting for making Amarok play an audio CD.

Multimedia - Audio CDs: amarok --cdplay %d

Tips and Tricks

Starting in Daemon Mode

Thunar may be run in daemon mode. This has several advantages including a faster startup for Thunar as well as Thunar running in the background and only opening a window when necessary (for instance, when a flash drive is inserted).

One option is to autostart it using Template:Filename or an autostart script (such as Openbox's Template:Filename). It is up to you to decide the best way to start it, and this option can be run from a script or run directly as a command in the terminal.

To run it in daemon mode, simply add to your autostart script or run from the terminal:

Template:Cli
Eliminating Conflicts

If you have hal and autofs running at the same time, you will have a lock in hal-mtab. To avoid this, use only one of them.

If you cannot get automount running and start your window manager via Template:Filename you maybe want to change the start line for your window manger from

Template:Cli

to

Template:Cli
Setting the Icon Theme

When using Thunar outside of Gnome or Xfce, certain packages and configurations that control which icons are used may be missing. Window Managers like Awesopme and Xmonad do not come with XSettings managers, which is where Thunar looks first for it's icon setting. It is possible install and run xfce-mcs-manager from a startup script if many Xfce4 and Gnome applications are going to be used. The gtk-icon-theme-name setting for gtk2 can be set for a user by adding something like the following to Template:Filename:

gtk-icon-theme-name = "Tango"

Of course, just installing the gnome-icon-them package will give Thunar an icon theme to use other than the default paper icon for all items.

Template:Cli

Thunar Archive Plugin

The Thunar Archive Plugin is a frontend to file archive software such as File Roller, Ark, or Xarchiver to allow a simple, consistent interface to opening and decompressing archives.

Installation

It can be installed by running:

Template:Cli

Thunar Media Tags Plugin

The media tags plugin will display detailed information about media files. It supports ID3 (the MP3 file format's system) and Ogg/Vorbis tags. It also has a bulk renamer and allows editing of media tags.

Installation

It can be installed by running:

Template:Cli

Thunar Thumbnailers

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 project page.

Installation

It can be installed by running:

Template:Cli

Thunar Shares

The Thunar Shares Plugin allows you to quickly share a folder using Samba from Thunar without requiring root access.

Installation

Install thunar-shares-plugin package from the AUR.

Configuration

as root user:

This marks the named objects for automatic export to the environment of subsequently executed commands:

 Template:Cli

This creates the usershares directory in var/lib/samba:

 Template:Cli

This makes the group sambashare:

 Template:Cli

This changes the owner of the directory and group you just created to root:

 Template:Cli

This changes the permissions of the usershares directory so that users in the group sambashare can read, write and execute files:

 Template:Cli

Using your favorite text editor as root, create the file Template:Filename

 Template:Cli

Use this Template:Filename configuration file: Template:File

Save the file and then add your user to the group sambashares replacing "your_username" with the name of your user:

 Template:Cli

Restart Samba:

 Template:Cli

Log out and log back in. You should now be able to right click on any directory and share it on the network.

To have samba start at boot, add samba to daemons in your Template:Filename file.

For more infomration, visit the Samba wiki page.

udev Automounting

Thunar and XFCE4 are in transition to using the kernel udev architecture for detecting and automounting removable media. 18:42, 5 February 2011 (EST)

Install Thunar as usual, but be sure to include the user in the 'storage' group of Template:Filename.

Template:Cli

In the user's Template:Filename, include ck-launch-seassion and dbus-launch before the startxfce4 command.

Template:File

Links and References