Unlike heavier desktop environments, such as Gnome and KDE, Xfce uses far fewer system resources. Additionally, it offers greater modularity and fewer dependencies; it takes up less space on your hard disk and takes less time to install.
This guide will not only show you how to install and configure a minimal Xfce environment, but will also explore options to create a full-featured desktop in keeping with the Xfce philosophy: light, fast, and modular.
Before we install our fully-functional yet minimal desktop, let's take a moment to review the basic packages we'll be emerging.
Name | Description |
---|---|
You're free to install any other packages you wish, but for now, we'll stick
with these suggestions for a fast, minimal working environment. Double check
your USE flags in
# emerge -avt xfce4 xscreensaver hal gamin
Next, add your regular user(s) to the following groups, so that they can take
full advantage of
(Remember to replace username with your actual user) # gpasswd -a username plugdev,cdrom,cdrw,usb
Next, update your environment variables:
# env-update && source /etc/profile
Now start up
# /etc/init.d/hald start # rc-update add hald default
Now that Xfce is now installed, we'll configure it to be the default desktop
environment when we issue the
$ echo "exec startxfce4" > ~/.xinitrc
Now start your graphical environment by typing
$ startx
Congratulations, and welcome to your new Xfce desktop environment. Go ahead, explore it a bit. Then continue reading to learn how you can configure Xfce to suit your needs.
You might notice right-clicking on the desktop shows you the menu of all your applications. It's useful, but your desktop can easily be completely obscured by open windows, making it hard to to launch a new program. So, one of the first things you may wish to do is give yourself a handy application menu on your panel. Right click on this panel, and choose "Add New Item". Scroll through the list of choices and select "Xfce Menu". You can choose where you want it to be displayed on your panel. When clicked, it displays the application/preferences menu, providing a nicely categorized list of your installed programs.
If you've installed (or plan to install) popular Gnome or KDE applications such
as
Xfce has the ability to save your session settings and running programs from the "General" tab in the Sessions & Startup menu. They can be automatically saved when you logout, or Xfce can ask you each time. This feature is particularly useful for undoing configuration mistakes. Accidentally killed a panel? Just select "No" when prompted to save your current session, and the next time you start Xfce, your old desktop is restored. Want to automatically launch your open webbrowser, terminal, and email client the next time you login? Just save your session before logging out.
You've now got a basic working environment installed and configured. But if you're interested in doing more, then continue reading!
In this chapter, we'll discuss some useful plugins and applications for everyday use within Xfce.
There are many plugins for the panel available in Portage; see for yourself with
Now let's see about adding some useful yet lightweight applications, in keeping with Xfce's philosophy.
First, let's replace the plain, boring old
# echo "xfce-extra/terminal" >> /etc/portage/package.keywords # emerge -av xfce-extra/terminal
Once it's installed, you may want to change the default action of the terminal
launcher on your panel to run
You may want to replace the rather confusing default filemanager,
In the future,
Let's install a simple graphical text editor. It's easier to use than
# emerge mousepad
If you need a full-featured word processor but don't want the bloat of
OpenOffice, try emerging
# emerge -avt abiword
Need a nice email client/newsreader that isn't as demanding as
# emerge -avt sylpheed-claws
For your internet chat needs,
If you need movie and music players, look no further than
Finally, you'll need a webbrowser. Nearly all graphical webbrowsers require more
resources than most of your other desktop applications. Still,
(Installing Mozilla Firefox) # emerge mozilla-firefox(Installing Opera) # echo "www-client/opera qt-static" >> /etc/portage/package.use # emerge opera
Now that we've explored some good suggestions for rounding out your desktop applications, let's see what else we can do to enhance your Xfce experience.
Remember when we added
# rc-update add xdm default
We aren't quite finished yet. We have to pick a display manager and set the
appropriate variable. Though there are a few choices available in Portage, for
this guide, we'll stick with two display manager options:
DISPLAYMANAGER="xdm"
While you can choose to stick with (the rather ugly)
# emerge -avt gdm
Next, change the DISPLAYMANAGER variable to use
DISPLAYMANAGER="gdm"
A little customization of your desktop's appearance can go a long way. Xfce has all the options you'd expect from a modern desktop environment, font antialiasing settings, color schemes, dozens of window decorations, themes, and more. If these aren't enough, it's easy to install third-party themes, icon sets, mouse cursor themes, and wallpapers.
A selection of nice Gentoo wallpapers in a variety of resolutions are hosted on
the
If you installed GDM as your display manager, take a look at the many GDM themes
available on
Finally, Xfce has its own built-in compositor to manage window transparency.
This option can be found in Menu --> Settings --> Window Manager. For best
performance, you will need to be running a graphics card with drivers that
support hardware-accelerated rendering, and you will need to enable
compositing in
Section "Extensions" Option "Composite" "Enable" EndSection
This is the bare minimum configuration required for Xfce and Xorg-X11. However,
setting up hardware-accelerated rendering depends on your individual graphics
card, and is beyond the scope of this guide. Please see the other guides in the
Congratulations on making it this far! You've installed and configured a speedy desktop environment with a solid suite of applications for your computing needs.
Need additional help on configuring and using Xfce? Need more lightweight application suggestions? Try asking the folks in:
Finally, Gentoo's Xfce team is responsible for making Xfce available in Portage.
Send comments, thanks, and suggestions to