Unlike heavier desktop environments, such as
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.
The last part of this guide lists a few commands to run after upgrading to a new Xfce release, so be sure to follow them if you are upgrading from an older version.
First, make sure you've configured Xorg as shown in the
Next, double-check your USE flags in
Now that you've set your
# emerge -avt xfce4-meta
Next, add your regular user(s) to the
(Replace username with your actual user) # for x in cdrom cdrw usb ; do gpasswd -a username $x ; done
Next, update your environment variables:
# env-update && source /etc/profile
You'll also need a graphical terminal so that you can continue working with your
new desktop environment.
# emerge x11-terms/terminal
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.
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
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 firefox(Installing Midori) # emerge midori(Installing Opera) # echo "www-client/opera gtk -kde" >> /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.
If you're upgrading Xfce from earlier major versions (4.x), then you will need to remove your old cached sessions and profiles as they are incompatible with new releases. For each of your users, run the following commands to remove your old incompatible cached sessions and profile:
$ rm -r ~/.cache/sessions $ rm -r ~/.config/xfce* $ rm -r ~/.config/Thunar
Users will be greeted with a new and shiny interface, but will lose many of their individual settings. Sadly, no migration of configuration(s) exist that we know of.
Need additional help on configuring and using Xfce? Need more lightweight application suggestions? Try checking out: