Difference between revisions of "Xfce"

(Installation)
(remove manual addition of files, these automatically installed by sys-apps/accountservice, sys-apps/upower and sys-auth/consolekit respectively.)
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
== About Xfce ==
 
== About Xfce ==
  
''Xfce is a lightweight desktop environment for UNIX-like operating systems. It aims to be fast and low on system resources, while still being visually appealing and user friendly.
+
Xfce is a lightweight desktop environment for UNIX-like operating systems. It aims to be fast and low on system resources, while still being visually appealing and user friendly.
  
''Xfce embodies the traditional UNIX philosophy of modularity and re-usability. It consists of a number of components that provide the full functionality one can expect of a modern desktop environment. They are packaged separately and you can pick among the available packages to create the optimal personal working environment.
+
Xfce embodies the traditional UNIX philosophy of modularity and re-usability. It consists of a number of components that provide the full functionality one can expect of a modern desktop environment. They are packaged separately and you can pick among the available packages to create the optimal personal working environment.
  
''Another priority of Xfce is adhereance to standards, specifically those defined at [http://freedesktop.org/ freedesktop.org]. <ref>http://www.xfce.org/about/</ref>
+
Another priority of Xfce is adhereance to standards, specifically those defined at [http://freedesktop.org/ freedesktop.org]. [http://www.xfce.org/about/ About XFCE]
  
 
== Installation ==
 
== Installation ==
Line 11: Line 11:
 
Before emerging Xfce you need to:
 
Before emerging Xfce you need to:
  
* Check that you have enabled the USE flags necessary for a desktop environment. You can either [[Funtoo_Linux_First_Steps#Changing_profile|set your profile to "desktop"]] or you can edit your <tt>make.conf</tt>:
+
* Check that you have enabled the USE flags necessary for a XFCE desktop environment. [[Funtoo_Linux_First_Steps#Changing_profile|Set your profile to "xfce" via mix-ins]], as follows:
  
{{File
+
<console>
|/etc/portage/make.conf|<pre>
+
# ##i## eselect profile add funtoo/1.0/linux-gnu/mix-ins/xfce
USE="-minimal dbus consolekit jpeg libnotify lock session startup-notification svg thunar udev X"
+
</console>
</pre>}}
+
  
 
* Verify that you have [[Funtoo_Linux_First_Steps#X.Org|X.Org Server]] configured properly.
 
* Verify that you have [[Funtoo_Linux_First_Steps#X.Org|X.Org Server]] configured properly.
 
  
 
We are now ready to install Xfce. Install the meta-package, which pulls in all of the components you need for a minimal Xfce installation:
 
We are now ready to install Xfce. Install the meta-package, which pulls in all of the components you need for a minimal Xfce installation:
 +
 
<console>
 
<console>
# ##i## emerge xfce4-meta
+
# ##i##emerge xfce4-meta
 
</console>
 
</console>
  
Line 30: Line 29:
 
There are several different ways to start Xfce:
 
There are several different ways to start Xfce:
  
* Typing the command <tt>startxfce4</tt> at the console.
+
* Editing the <tt>.xinitrc</tt> file in your user's home directory and using <tt>startx</tt> from a text console.
* Editing the <tt>.xinitrc</tt> file in your user's home directory.
+
 
* Using a display manager (e.g. SLiM, GDM, and KDM).
 
* Using a display manager (e.g. SLiM, GDM, and KDM).
 
* Configuring your shell profile to automatically start Xfce upon a successful login.
 
* Configuring your shell profile to automatically start Xfce upon a successful login.
Line 37: Line 35:
 
=== .xinitrc ===
 
=== .xinitrc ===
  
The most common way to start the environment is to configure <tt>~/.xinitrc</tt> to launch an Xfce session. The proper way to launch Xfce from the terminal is by using <tt>startxfce4</tt>.
+
The most common way to start the environment is to configure <tt>~/.xinitrc</tt> to launch an Xfce session. The proper way to launch Xfce from the terminal is by using <tt>startxfce4</tt> combined with <tt>ck-launch-session</tt>.
 +
 
 
<console>
 
<console>
$ ##i##echo "exec ck-launch-session startxfce4" > ~/.xinitrc
+
$ ##i##echo "exec startxfce4 --with-ck-launch" > ~/.xinitrc
 
</console>
 
</console>
  
Note that <tt>ck-launch-session</tt> (from ConsoleKit) is required by Xfce for important tasks such as shutting down, suspending, and automatically mounting removable storage media. Some applications will not work properly without it. Therefore we need to add ConsoleKit to the <tt>default</tt> runlevel, executing the following command as root:
+
Note that <tt>--with-ck-launch</tt> (from ConsoleKit) is required by Xfce for important tasks such as shutting down, suspending, and automatically mounting removable storage media. Some applications will not work properly without it. Therefore we need to add ConsoleKit to the <tt>default</tt> runlevel, executing the following command as root:
 +
 
 
<console>
 
<console>
 
# ##i##rc-update add consolekit default
 
# ##i##rc-update add consolekit default
 
</console>
 
</console>
  
Finally, to start the graphical environment:
+
Finally, to start the graphical environment, run <tt>startx</tt> from a login shell:
 
<console>
 
<console>
 
$ ##i##startx
 
$ ##i##startx
 
</console>
 
</console>
  
== Display manager ==
+
== Display Manager ==
 +
 
 
A display manager is a program that manages sessions and acts as a login screen. Here's a short list of a few of the display managers available in Funtoo:
 
A display manager is a program that manages sessions and acts as a login screen. Here's a short list of a few of the display managers available in Funtoo:
  
Line 62: Line 63:
  
 
Any of these would make a fine choice. After you've chosen which display manager to use, install it:
 
Any of these would make a fine choice. After you've chosen which display manager to use, install it:
 +
 
<console>
 
<console>
 
# ##i##emerge lightdm
 
# ##i##emerge lightdm
Line 67: Line 69:
  
 
All that's left to do now is to add the name of the display manager to <tt>/etc/conf.d/xdm</tt>, add the <tt>xdm</tt> service to the <tt>default</tt> runlevel, and start the service:
 
All that's left to do now is to add the name of the display manager to <tt>/etc/conf.d/xdm</tt>, add the <tt>xdm</tt> service to the <tt>default</tt> runlevel, and start the service:
<console>
+
 
# ##i##nano -w /etc/conf.d/xdm
+
<pre>
 
DISPLAYMANAGER="lightdm"
 
DISPLAYMANAGER="lightdm"
 +
</pre>
  
 +
<console>
 
# ##i##rc-update add xdm default
 
# ##i##rc-update add xdm default
 
# ##i##/etc/init.d/xdm start
 
# ##i##/etc/init.d/xdm start
 
</console>
 
</console>
 +
 +
==Power Group==
 +
 +
If you wish to be able to shutdown/reboot/suspend/hibernate using xfce4-logout-session then you will need to add yourself or the user to the power group by:
 +
 +
<console>
 +
# ##i##gpasswd -a <username> power
 +
</console>
 +
 +
If the group does not exist then execute the following and try again:
 +
 +
<console>
 +
# ##i##groupadd power
 +
</console>
 +
 +
== Plugins for Thunar and XFCE ==
 +
There are a lot of plugins available for Thunar and XFCE. Here is a table that contains the name of the plugin and a description of what it does. To install one of the plugins, run
 +
<console>###i## emerge [name of plugin]</console>
 +
 +
{| class="wikitable" style="margin: 1em auto;" width=80%
 +
! width="30%" | Name
 +
! width="70%" | Description
 +
|-
 +
| style="text-align: center;" | xfce-extra/thunar-volman
 +
| style="text-align: center;" | Daemon that enforces volume-related policies
 +
|-
 +
| style="text-align: center;" | xfce-extra/thunar-vcs-plugin
 +
| style="text-align: center;" | Adds Subversion and GIT actions to the context menu of thunar
 +
|-
 +
| style="text-align: center;" | xfce-extra/thunar-shares-plugin
 +
| style="text-align: center;" | Thunar plugin to share files using Samba
 +
|-
 +
| style="text-align: center;" | xfce-extra/thunar-archive-plugin
 +
| style="text-align: center;" | Archive plug-in for the Thunar filemanager
 +
|-
 +
| style="text-align: center;" | xfce-extra/xfce4-volumed
 +
| style="text-align: center;" | Daemon to control volume up/down and mute keys
 +
|-
 +
| style="text-align: center;" | xfce-extra/xfce4-screenshooter
 +
| style="text-align: center;" | Xfce4 screenshooter application and panel plugin
 +
|-
 +
| style="text-align: center;" |  xfce-extra/xfce4-notifyd
 +
| style="text-align: center;" | Notification daemon for the Xfce desktop environment
 +
|-
 +
| style="text-align: center;" | xfce-extra/xfce4-mixer
 +
| style="text-align: center;" | A volume control application (and panel plug-in) for the Xfce desktop environment
 +
|-
 +
| style="text-align: center;" | xfce-extra/xfce4-mount-plugin
 +
| style="text-align: center;" | A mount plug-in for the Xfce panel
 +
|-
 +
| style="text-align: center;" | xfce-extra/xfce4-clipman-plugin
 +
| style="text-align: center;" | A clipboard manager plug-in for the Xfce panel
 +
|-
 +
| style="text-align: center;" | xfce-extra/xfce4-battery-plugin
 +
| style="text-align: center;" | A battery monitor panel plugin for the Xfce desktop environment
 +
|}
  
 
[[Category:Desktop]]
 
[[Category:Desktop]]
 +
[[Category:First Steps]]
 +
[[Category:Official Documentation]]

Latest revision as of 16:37, December 21, 2014

About Xfce

Xfce is a lightweight desktop environment for UNIX-like operating systems. It aims to be fast and low on system resources, while still being visually appealing and user friendly.

Xfce embodies the traditional UNIX philosophy of modularity and re-usability. It consists of a number of components that provide the full functionality one can expect of a modern desktop environment. They are packaged separately and you can pick among the available packages to create the optimal personal working environment.

Another priority of Xfce is adhereance to standards, specifically those defined at freedesktop.org. About XFCE

Installation

Before emerging Xfce you need to:

#  eselect profile add funtoo/1.0/linux-gnu/mix-ins/xfce

We are now ready to install Xfce. Install the meta-package, which pulls in all of the components you need for a minimal Xfce installation:

# emerge xfce4-meta

Running Xfce

There are several different ways to start Xfce:

  • Editing the .xinitrc file in your user's home directory and using startx from a text console.
  • Using a display manager (e.g. SLiM, GDM, and KDM).
  • Configuring your shell profile to automatically start Xfce upon a successful login.

.xinitrc

The most common way to start the environment is to configure ~/.xinitrc to launch an Xfce session. The proper way to launch Xfce from the terminal is by using startxfce4 combined with ck-launch-session.

$ echo "exec startxfce4 --with-ck-launch" > ~/.xinitrc

Note that --with-ck-launch (from ConsoleKit) is required by Xfce for important tasks such as shutting down, suspending, and automatically mounting removable storage media. Some applications will not work properly without it. Therefore we need to add ConsoleKit to the default runlevel, executing the following command as root:

# rc-update add consolekit default

Finally, to start the graphical environment, run startx from a login shell:

$ startx

Display Manager

A display manager is a program that manages sessions and acts as a login screen. Here's a short list of a few of the display managers available in Funtoo:

  • XDM (x11-apps/xdm): X.Org's standard display manager.
  • LightDM (x11-misc/lightdm): A lightweight, but highly configurable display manager.
  • SLiM (x11-misc/slim): Simple Login Manager -- a lightweight display manager. Not very configurable.

Any of these would make a fine choice. After you've chosen which display manager to use, install it:

# emerge lightdm

All that's left to do now is to add the name of the display manager to /etc/conf.d/xdm, add the xdm service to the default runlevel, and start the service:

DISPLAYMANAGER="lightdm"
# rc-update add xdm default
# /etc/init.d/xdm start

Power Group

If you wish to be able to shutdown/reboot/suspend/hibernate using xfce4-logout-session then you will need to add yourself or the user to the power group by:

# gpasswd -a <username> power

If the group does not exist then execute the following and try again:

# groupadd power

Plugins for Thunar and XFCE

There are a lot of plugins available for Thunar and XFCE. Here is a table that contains the name of the plugin and a description of what it does. To install one of the plugins, run

# emerge [name of plugin]
Name Description
xfce-extra/thunar-volman Daemon that enforces volume-related policies
xfce-extra/thunar-vcs-plugin Adds Subversion and GIT actions to the context menu of thunar
xfce-extra/thunar-shares-plugin Thunar plugin to share files using Samba
xfce-extra/thunar-archive-plugin Archive plug-in for the Thunar filemanager
xfce-extra/xfce4-volumed Daemon to control volume up/down and mute keys
xfce-extra/xfce4-screenshooter Xfce4 screenshooter application and panel plugin
xfce-extra/xfce4-notifyd Notification daemon for the Xfce desktop environment
xfce-extra/xfce4-mixer A volume control application (and panel plug-in) for the Xfce desktop environment
xfce-extra/xfce4-mount-plugin A mount plug-in for the Xfce panel
xfce-extra/xfce4-clipman-plugin A clipboard manager plug-in for the Xfce panel
xfce-extra/xfce4-battery-plugin A battery monitor panel plugin for the Xfce desktop environment