Difference between pages "Metro Feature Requests" and "Xfce Guide"

From Funtoo
(Difference between pages)
Jump to: navigation, search
(I placed this in the Metro category.)
 
 
Line 1: Line 1:
== simple creation of files ==
+
== 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 <tt>VIDEO_CARD</tt> to what you have and your <tt>INPUT_DEVICES</tt> set as well in your <tt>make.conf</tt>.
 +
First thing to do is makes sure that the "udev" is in your USE flags. We're going to set these in <tt>/etc/portage/package.use</tt>. After that we're going to install <tt>xorg-server</tt>. Just emerge it.
 +
<console>
 +
# ##i## echo "x11-base/xorg-sever udev" >> /etc/portage/package.use
 +
# ##i## emerge x11-base/xorg-server
 +
</console>
 +
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 <tt>/etc/X11/xorg.conf</tt> for you. Need to copy it in though.
 +
<console>
 +
# ##i## X -configure
 +
# ##i## cp /root/xorg.conf.new /etc/X11/xorg.conf
 +
</console>
 +
Now, we will set our sights on installing XFCE.
 +
You're going to want to add some USE flags to your <tt>/etc/make.conf</tt>, I would reccomend <tt>USE="-gnome -kde -minimal -qt4 dbus jpeg lock session startup-notification thunar udev X"</tt>. Just add them to your <tt>make.conf</tt>. 
 +
And now we are ready to install XFCE. In a recent change a dependency for <tt>Thunar</tt>, it wants to bring in <tt>sys-fs/udisks-1.99</tt> which is a dependency of <tt>sys-fs/udev-180</tt> which is not available. The fix is to emerge <tt>gnome-base/gvfs-1.10.*</tt> and mask anything above it and mask <tt>sys-fs/udisks-1.99</tt> in <tt>/etc/portage/package.mask</tt>. You also need to get a Terminal emulator as well, i.e <tt>x11-terms/terminal</tt>
 +
<console>
 +
# ##i## emerge xfce-base/xfce4-meta x11-terms/terminal
 +
# ##i## env-update && source /etc/profile
 +
</console>
 +
There's a few ways to go about starting XFCE. You can either have it run with <tt>startx</tt> or install a display manager, or login manager, i.e LXDM, GDM, KDM, etc.
 +
If you want it to run with <tt>startx</tt>
 +
<console>
 +
# ##i## echo "exec startxfce4" >> ~/.xinitrc
 +
</console>
 +
If you want XFCE to run at boot add xdm to rc-update. In which case you need a login manager.
 +
<console>
 +
# ##i## rc-update add xdm default
 +
</console>
 +
There's a few to go along with, but for a lightweight one either <tt>lxde-base/lxdm</tt> or <tt>x11-misc/slim</tt>
 +
<console>
 +
# ##i## emerge -av x11-misc/slim
 +
</console>
 +
Or for <tt>lxde-base/lxdm</tt>
 +
<console>
 +
# ##i## emerge lxde-base/lxdm
 +
</console>
 +
Whichever you choose to use you need to add it to <tt>/etc/conf.d/xdm</tt>:
 +
<tt>DISPLAYMANAGER="slim"</tt>
 +
<tt>DISPLAYMANAGER="lxdm"</tt>
 +
For <tt>SLiM</tt> you need to add XFCE to <tt>/etc/env.d/90xsession</tt>
 +
<console>
 +
# ##i## echo XSESSION=\"Xfce4\" >> /etc/env.d/90xsession
 +
# ##i## env-update && source /etc/profile
 +
</console>
 +
Either reboot or <tt>startx</tt>.
 +
<br />There are a lot of plugins available for <tt>Thunar</tt> and XFCE. A simple <tt>emerge -s</tt> will do. Such as:
 +
<br /><tt>*  xfce-extra/thunar-volman
 +
<br />Description:  Daemon that enforces volume-related policies
 +
<br />*  xfce-extra/thunar-vcs-plugin
 +
<br />Description:  adds Subversion and GIT actions to the context menu of thunar
 +
<br />*  xfce-extra/thunar-shares-plugin
 +
<br />Description:  Thunar plugin to share files using Samba
 +
<br />*  xfce-extra/thunar-archive-plugin
 +
<br />Description:  Archive plug-in for the Thunar filemanager
 +
<br />*  xfce-extra/xfce4-volumed
 +
<br />Description:  Daemon to control volume up/down and mute keys
 +
<br />*  xfce-extra/xfce4-screenshooter
 +
<br />Description:  Xfce4 screenshooter application and panel plugin
 +
<br />*  xfce-extra/xfce4-notifyd
 +
<br />Description:  Notification daemon for the Xfce desktop environment
 +
<br />*  xfce-extra/xfce4-mixer
 +
<br />Description:  A volume control application (and panel plug-in) for the Xfce desktop environment
 +
<br />*  xfce-extra/xfce4-mount-plugin
 +
<br />Description:  An mount plug-in for the Xfce panel
 +
<br />*  xfce-extra/xfce4-clipman-plugin
 +
<br />Description:  A clipboard manager plug-in for the Xfce panel
 +
<br />*  xfce-extra/xfce4-battery-plugin
 +
<br />Description:  A battery monitor panel plugin for the Xfce desktop environment</tt>
 +
<br /> Those are some plugins for XFCE and Thunar that I'd suggest.
  
it is very useful to have a simple way to create files during metro builds.
+
[[Category:First Steps]]
 
+
ex.
+
<pre>
+
 
+
files//etc/motd: [
+
just created with metro!
+
]
+
 
+
</pre>
+
 
+
metro should take care of creation of parent directories if they don't exist;<br />
+
and should also permit the creation in any directories. (with double slash like mercurial?)
+
[[Category:Metro]]
+

Revision as of 23:36, 12 March 2014

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.