Xfce Guide

From Funtoo
Revision as of 23:53, 12 August 2012 by Anak1n (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Xfce Guide

So after you have successfully set up Funtoo you might want to add a new desktop environment to the mix. This means installing Xorg and, in this case, XFCE. Set your VIDEO_CARD to what you have and your INPUT_DEVICES set as well in your make.conf. First thing to do is makes sure that the "udev" is in your USE flags. We're going to set these in /etc/portage/package.use. After that we're going to install xorg-server. Just emerge it.

#  echo "x11-base/xorg-sever udev" >> /etc/portage/package.use
#  emerge x11-base/xorg-server

After that's done X should work out of the box. You can run this command though to make sure it works. This will configure X for you, and set a new /etc/X11/xorg.conf for you. Need to copy it in though.

#  X -configure
#  cp /root/xorg.conf.new /etc/X11/xorg.conf

Now, we will set our sights on installing XFCE. You're going to want to add some USE flags to your /etc/make.conf, I would reccomend USE="-gnome -kde -minimal -qt4 dbus jpeg lock session startup-notification thunar udev X". Just add them to your make.conf. And now we are ready to install XFCE. In a recent change a dependency for Thunar, it wants to bring in sys-fs/udisks-1.99 which is a dependency of sys-fs/udev-180 which is not available. The fix is to emerge gnome-base/gvfs-1.10.* and mask anything above it and mask sys-fs/udisks-1.99 in /etc/portage/package.mask. You also need to get a Terminal emulator as well, i.e x11-terms/terminal

#  emerge xfce-base/xfce4-meta x11-terms/terminal
#  env-update && source /etc/profile

There's a few ways to go about starting XFCE. You can either have it run with startx or install a display manager, or login manager, i.e LXDM, GDM, KDM, etc. If you want it to run with startx

#  echo "exec startxfce4" >> ~/.xinitrc

If you want XFCE to run at boot add xdm to rc-update. In which case you need a login manager.

#  rc-update add xdm default

There's a few to go along with, but for a lightweight one either lxde-base/lxdm or x11-misc/slim

#  emerge -av x11-misc/slim

Or for lxde-base/lxdm

#  emerge lxde-base/lxdm

Whichever you choose to use you need to add it to /etc/conf.d/xdm: DISPLAYMANAGER="slim" DISPLAYMANAGER="lxdm" For SLiM you need to add XFCE to /etc/env.d/90xsession

#  echo XSESSION=\"Xfce4\" >> /etc/env.d/90xsession
#  env-update && source /etc/profile

Either reboot or startx.
There are a lot of plugins available for Thunar and XFCE. A simple emerge -s will do. Such as:
* xfce-extra/thunar-volman
Description: Daemon that enforces volume-related policies
* xfce-extra/thunar-vcs-plugin
Description: adds Subversion and GIT actions to the context menu of thunar
* xfce-extra/thunar-shares-plugin
Description: Thunar plugin to share files using Samba
* xfce-extra/thunar-archive-plugin
Description: Archive plug-in for the Thunar filemanager
* xfce-extra/xfce4-volumed
Description: Daemon to control volume up/down and mute keys
* xfce-extra/xfce4-screenshooter
Description: Xfce4 screenshooter application and panel plugin
* xfce-extra/xfce4-notifyd
Description: Notification daemon for the Xfce desktop environment
* xfce-extra/xfce4-mixer
Description: A volume control application (and panel plug-in) for the Xfce desktop environment
* xfce-extra/xfce4-mount-plugin
Description: An mount plug-in for the Xfce panel
* xfce-extra/xfce4-clipman-plugin
Description: A clipboard manager plug-in for the Xfce panel
* xfce-extra/xfce4-battery-plugin
Description: A battery monitor panel plugin for the Xfce desktop environment

Those are some plugins for XFCE and Thunar that I'd suggest.