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.
First, make sure you've configured Xorg as shown in the
Next, double-check your USE flags in
Now, let's install Xfce.
# emerge -avt xfce4-meta
Next, add your regular user(s) to the
(Replace username with your actual user) # for x in plugdev cdrom cdrw usb ; do gpasswd -a username $x ; done
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
If you can't find what you're looking for in the plugins specifically made for
Xfce, try searching through the list of Gnome panel applets! That's right, by
first emerging
We should now
Next, let's see about adding some useful but lightweight desktop applications, in keeping with Xfce's philosophy.
Though
Need a nice email client/newsreader that isn't as demanding as
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
First, let's make sure Xfce loads at boot:
# 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
# emerge -avt slim
Then edit the DISPLAYMANAGER variable in
DISPLAYMANAGER="slim"
SLiM can automatically start your Xfce session if you add
# echo XSESSION=\"Xfce4\" > /etc/env.d/90xsession # env-update && source /etc/profile
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 SLiM as your display manager, there are lots of themes in the
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. Make sure you emerged
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
Once you've finished setting up a beautiful Xfce desktop, the next thing to do
is take a picture of it to share with other folks! Just install
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 checking out: