/[gentoo]/xml/htdocs/doc/en/xfce-config.xml
Gentoo

Diff of /xml/htdocs/doc/en/xfce-config.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.16 Revision 1.39
1<?xml version='1.0' encoding='UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 2<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/xfce-config.xml,v 1.16 2008/02/24 08:36:44 nightmorph Exp $ --> 3<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/xfce-config.xml,v 1.39 2011/11/08 23:20:35 nightmorph Exp $ -->
4 4
5<guide link="/doc/en/xfce-config.xml"> 5<guide>
6<title>The Xfce Configuration Guide</title> 6<title>The Xfce Configuration Guide</title>
7 7
8<author title="Author"> 8<author title="Author">
9 <mail link="nightmorph@gentoo.org">Joshua Saddler</mail> 9 <mail link="nightmorph"/>
10</author> 10</author>
11 11
12<abstract> 12<abstract>
13This guide provides an extensive introduction to Xfce, a fast, lightweight, 13This guide provides an extensive introduction to Xfce, a fast, lightweight,
14full-featured desktop environment. 14full-featured desktop environment.
16 16
17<!-- The content of this document is licensed under the CC-BY-SA license --> 17<!-- The content of this document is licensed under the CC-BY-SA license -->
18<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 18<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
19<license/> 19<license/>
20 20
21<version>1.12</version> 21<version>7</version>
22<date>2008-02-24</date> 22<date>2011-11-08</date>
23 23
24<chapter> 24<chapter>
25<title>Introduction</title> 25<title>Introduction</title>
26<section> 26<section>
27<title>The Xfce desktop environment</title> 27<title>The Xfce desktop environment</title>
33and is quite configurable while still adhering to the <uri 33and is quite configurable while still adhering to the <uri
34link="http://www.freedesktop.org">Freedesktop</uri> specifications. 34link="http://www.freedesktop.org">Freedesktop</uri> specifications.
35</p> 35</p>
36 36
37<p> 37<p>
38Unlike heavier desktop environments, such as Gnome and KDE, Xfce uses far fewer 38Unlike heavier desktop environments, such as <uri
39system resources. Additionally, it offers greater modularity and fewer 39link="http://www.gnome.org">Gnome</uri> and <uri
40dependencies; it takes up less space on your hard disk and takes less time to 40link="http://www.kde.org">KDE</uri>, Xfce uses far fewer system resources.
41install. 41Additionally, it offers greater modularity and fewer dependencies; it takes up
42less space on your hard disk and takes less time to install.
42</p> 43</p>
43 44
44<p> 45<p>
45This guide will not only show you how to install and configure a minimal Xfce 46This guide will not only show you how to install and configure a minimal Xfce
46environment, but will also explore options to create a full-featured desktop in 47environment, but will also explore options to create a full-featured desktop in
47keeping with the Xfce philosophy: light, fast, and modular. 48keeping with the Xfce philosophy: light, fast, and modular.
48</p> 49</p>
49 50
51<p>
52The last part of this guide lists a few commands to run after upgrading to Xfce
534.8, so be sure to follow them if you are upgrading from an older version.
54</p>
55
50</body> 56</body>
51</section> 57</section>
52</chapter> 58</chapter>
53 59
54<chapter> 60<chapter>
56<section> 62<section>
57<title>The basics</title> 63<title>The basics</title>
58<body> 64<body>
59 65
60<p> 66<p>
61First, make sure you've setup Xorg as shown in the <uri 67First, make sure you've configured Xorg as shown in the <uri
62link="/doc/en/xorg-config.xml">X Server Configuration Howto</uri>. 68link="/doc/en/xorg-config.xml">X Server Configuration Howto</uri>.
63</p> 69</p>
64 70
65<p> 71<p>
66Next, double-check your USE flags in <path>/etc/make.conf</path>; you'll 72Next, double-check your USE flags in <path>/etc/make.conf</path>; you'll
67probably at least want <c>USE="-gnome -kde -qt3 -qt4 X dbus hal startup-notification xscreensaver"</c>. 73probably at least want <c>USE="-gnome -kde -minimal -qt4 dbus jpeg lock session
68</p> 74startup-notification thunar udev X"</c>.
69
70<p> 75</p>
71Now, let's install Xfce. 76
77<p>
78Now that you've set your <c>USE</c> variables in
79<path>/etc/make.conf</path>, it's time to install Xfce.
72</p> 80</p>
73 81
74<pre caption="Installing Xfce"> 82<pre caption="Installing Xfce">
75# <i>emerge -avt xfce4</i> 83# <i>emerge -avt xfce4-meta</i>
76</pre> 84</pre>
77 85
78<p> 86<p>
79Next, add your regular user(s) to the <c>plugdev</c>, <c>cdrom</c>, <c>cdrw</c>, 87Next, add your regular user(s) to the <c>cdrom</c>, <c>cdrw</c>,
80and <c>usb</c> groups, so that they can take full advantage of <c>hal</c> and be 88and <c>usb</c> groups, so that they can mount and use devices such as cameras,
81able to mount and use devices such as cameras, optical drives, and USB sticks. 89optical drives, and USB sticks.
82</p> 90</p>
83 91
84<pre caption="Adding users to the hardware groups"> 92<pre caption="Adding users to the hardware groups">
85<comment>(Replace username with your actual user)</comment> 93<comment>(Replace username with your actual user)</comment>
86# <i>for x in plugdev cdrom cdrw usb ; do gpasswd -a username $x ; done</i> 94# <i>for x in cdrom cdrw usb ; do gpasswd -a username $x ; done</i>
87</pre> 95</pre>
88 96
89<p> 97<p>
90Next, update your environment variables: 98Next, update your environment variables:
91</p> 99</p>
93<pre caption="Updating environment variables"> 101<pre caption="Updating environment variables">
94# <i>env-update &amp;&amp; source /etc/profile</i> 102# <i>env-update &amp;&amp; source /etc/profile</i>
95</pre> 103</pre>
96 104
97<p> 105<p>
98Now start up <c>hald</c> and add it to the default runlevel: 106You'll also need a graphical terminal so that you can continue working with your
107new desktop environment. <c>x11-terms/terminal</c> is a good choice, as it's
108made specifically for Xfce. Install Terminal as shown:
99</p> 109</p>
100 110
101<pre caption="Starting hald"> 111<pre caption="Installing Terminal">
102# <i>/etc/init.d/hald start</i> 112# <i>emerge x11-terms/terminal</i>
103# <i>rc-update add hald default</i>
104</pre> 113</pre>
105 114
106</body> 115</body>
107</section> 116</section>
108</chapter> 117</chapter>
120</p> 129</p>
121 130
122<pre caption="Setting Xfce as the default desktop environment"> 131<pre caption="Setting Xfce as the default desktop environment">
123$ <i>echo "exec startxfce4" > ~/.xinitrc</i> 132$ <i>echo "exec startxfce4" > ~/.xinitrc</i>
124</pre> 133</pre>
134
135<note>
136If you have ConsoleKit installed, your <path>~/.xinitrc</path> should instead
137contain <c>exec ck-launch-session startxfce4</c>. Otherwise, some of your
138applications may stop working. You'll also need to add consolekit to the
139default runlevel by running the following command as root: <c>rc-update add
140consolekit default</c>.
141</note>
125 142
126<p> 143<p>
127Now start your graphical environment by typing <c>startx</c>: 144Now start your graphical environment by typing <c>startx</c>:
128</p> 145</p>
129 146
200use within Xfce. 217use within Xfce.
201</p> 218</p>
202 219
203<p> 220<p>
204There are many plugins for the panel available in Portage; see for yourself with 221There are many plugins for the panel available in Portage; see for yourself with
205<c>emerge --search xfce</c>. Though for the most part their names are self 222<c>emerge --search xfce</c>. Though for the most part their names are
206explanatory, a few deserve some attention, as they are quite helpful. To use 223self-explanatory, a few deserve extra attention, as they are quite helpful. To
207them, simply <c>emerge</c> them. They'll be added to the list of available items 224use them, simply <c>emerge</c> them. They'll be added to the list of available
208in the "Add New Item" menu shown when you right-click on the panel. 225items in the "Add New Items" menu shown when you right-click on the panel.
209</p> 226</p>
210 227
211<ul> 228<ul>
212 <li> 229 <li>
213 <c>xfce4-mount</c> gives you a handy method of mounting devices listed in
214 <path>/etc/fstab</path> just by clicking your mouse
215 </li>
216 <li>
217 <c>xfce4-battery</c> is perfect for laptop users. It displays battery 230 <c>xfce4-battery-plugin</c> is perfect for laptop users. It displays battery
218 percentage, time remaining, power source (AC or battery), fan status, 231 percentage, time remaining, power source (AC or battery), fan status,
219 warnings, and can even be configured to execute commands at certain power 232 warnings, and can even be configured to execute commands at certain power
220 levels. This feature can be used to put the laptop into hibernate mode when 233 levels. This feature can be used to put the laptop into hibernate mode when
221 the battery is almost exhausted. 234 the battery is almost exhausted.
222 </li> 235 </li>
223 <li> 236 <li>
224 <c>verve</c> is a small command line embedded into the panel. It's quicker 237 <c>xfce4-verve-plugin</c> is a small command line embedded into the panel.
225 than opening up another terminal when you want to run a command. 238 It's quicker than opening up another terminal when you want to run a
226 </li> 239 command.
227 <li> 240 </li>
228 <c>xfce4-mixer</c> is a volume control. It works with both ALSA and OSS 241 <li>
229 sound applications. 242 <c>xfce4-mount-plugin</c> gives you a handy method of mounting devices
243 listed in <path>/etc/fstab</path> just by clicking your mouse
244 </li>
245 <li>
246 <c>xfce4-sensors-plugin</c> lets you monitor your hardware sensors, such as
247 CPU temperature, fan RPM, hard drive temp, motherboard voltage, and more
230 </li> 248 </li>
231</ul> 249</ul>
232 250
233<p>
234If you can't find what you're looking for in the plugins specifically made for
235Xfce, try searching through the list of Gnome panel applets! That's right, by
236first emerging <c>xfce4-xfapplet</c>, you can install and run any applet made
237for Gnome.
238</p>
239
240</body> 251</body>
241</section> 252</section>
242<section> 253<section>
243<title>Useful programs</title> 254<title>Useful programs</title>
244<body> 255<body>
245 256
246<p> 257<p>
247Xfce bundles a few useful applications, including <c>thunar</c>, 258We should now <c>emerge</c> some useful applications and utilities:
248<c>terminal</c>, <c>orage</c>, and <c>mousepad</c>. Note that the last three 259<c>xfce4-mixer</c>, <c>xfce4-taskmanager</c>, <c>xfwm4-themes</c>, <c>orage</c>,
249will not be installed if you built <c>xfce4</c> with the <c>minimal</c> USE 260<c>leafpad</c>, <c>xfce4-power-manager</c>, <c>x11-terms/terminal</c>, and
250flag. However, these are all very small, yet terrific applications, so they're 261<c>thunar</c>.
251well worth installing.
252</p>
253
254<p> 262</p>
263
264<p>
265<c>xfce4-mixer</c> is a volume control for your sound card. It can also be run
266as a panel applet, giving you fast access to playback volume.
267<c>xfce4-taskmanager</c> displays a list of all running programs, and the CPU
268and memory consumption each one takes up. By right-clicking an item, you can
269kill a misbehaving application, pause and restart it, or even alter its runtime
270priority, which lets you fine-tune how much of a demand it puts on your system's
271resources.
272</p>
273
274<p>
275<c>xfwm4-themes</c> adds several window manager themes. You may want to add a
276more full-coverage icon theme such as <c>tango-icon-theme</c> just to round out
277your desktop.
278</p>
279
280<p>
255<c>orage</c> is a simple, handy calendar. <c>mousepad</c> is a barebones text 281<c>orage</c> is a simple, handy calendar. <c>leafpad</c> is a barebones text
256editor that starts up extremely quickly. <c>terminal</c> is far more 282editor that starts up extremely quickly.
257configurable and useful than xterm, and supports Unicode text,
258pseudo-transparency and accelerated transparency via Xfce's built-in
259compositor, all out-of-the-box. Just make sure that the default action on the
260terminal launcher of your panel runs <path>/usr/bin/Terminal</path> instead of
261xterm. Right click the launcher and choose "Properties" to change the command.
262</p>
263
264<p> 283</p>
284
285<p>
286<c>xfce4-power-manager</c> is an application to monitor and manage power usage.
287This is especially important for laptops! The power manager allows you to adjust
288screen brightness, choose maximum performance or battery-saving modes, and setup
289hibernate, suspend, and shutdown actions when the lid is shut or buttons are
290pressed. You can set <uri
291link="http://goodies.xfce.org/projects/applications/xfce4-power-manager">xfce4-power-manager</uri>
292to warn you when your battery reaches certain levels, or even turn off your
293machine. The application comes with a couple of helpful panel plugins to display
294battery/charging status, and a brightness control.
295</p>
296
297<p>
298<c>x11-terms/terminal</c> is an X11 terminal emulator, far more configurable and
299useful than the barebones <c>xterm</c>. <c>terminal</c> supports Unicode text,
300color schemes, pseudo-transparency and hardware-accelerated transparency via
301Xfce's built-in compositor, all out-of-the-box. Just make sure that the default
302action on the terminal launcher of your panel runs
303<path>/usr/bin/Terminal</path> instead of <path>xterm</path>. Right-click the
304launcher and choose "Properties" to change the command.
305</p>
306
307<p>
265<c>thunar</c> is Xfce's built-in graphical file manager. It's fast yet quite 308<c>thunar</c> is Xfce's default graphical file manager. It's fast yet quite
266powerful, can support a few plugins for even more functionality; just install 309powerful, can support several plugins for even more functionality; just install
267them with <c>emerge</c>. Let's take a look: 310them with <c>emerge</c>. Let's take a look:
268</p> 311</p>
269 312
270<ul> 313<ul>
271 <li> 314 <li>
272 <c>thunar-archive</c> lets you create and extract archive files using the 315 <c>thunar-archive-plugin</c> lets you create and extract archive files using
273 right-click menu. It works even better when paired with the new graphical 316 the right-click menu. It provides a handy <uri
274 archiving <uri
275 link="http://www.foo-projects.org/~benny/projects/thunar-archive-plugin/">tool</uri> 317 link="http://www.foo-projects.org/~benny/projects/thunar-archive-plugin">front-end</uri>
276 developed for Xfce, <c>xarchiver</c>. 318 for graphical archiving applications such as <c>xarchiver</c>,
277 </li> 319 <c>squeeze</c>, and <c>file-roller</c>.
278 <li> 320 </li>
279 <c>thunar-media-tags</c> lets you intelligently rename multiple media files
280 at once, and lets you <uri
281 link="http://thunar.xfce.org/pwiki/projects/thunar-media-tags-plugin">edit</uri>
282 their information tags, such as id3 tags.
283 </li> 321 <li>
284 <li> 322 <c>tumbler</c> lets you preview certain types of files from within Thunar,
285 <c>thunar-thumbnailers</c> lets you <uri 323 such as images and fonts.
286 link="http://goodies.xfce.org/projects/thunar-plugins/thunar-thumbnailers">preview</uri>
287 certain types of files from within Thunar, such as images and fonts.
288 </li> 324 </li>
289 <li> 325 <li>
290 <c>thunar-volman</c> automatically <uri 326 <c>thunar-volman</c> automatically <uri
291 link="http://foo-projects.org/~benny/projects/thunar-volman/">manages</uri> 327 link="http://foo-projects.org/~benny/projects/thunar-volman/">manages</uri>
292 removable media and drives. 328 removable media and drives.
297Next, let's see about adding some useful but lightweight desktop applications, 333Next, let's see about adding some useful but lightweight desktop applications,
298in keeping with Xfce's philosophy. 334in keeping with Xfce's philosophy.
299</p> 335</p>
300 336
301<p> 337<p>
302Though <c>mousepad</c> is nice enough, if you need a full-featured word 338Though <c>leafpad</c> is nice enough as a basic text editor, if you need a
303processor but don't want the bloat of OpenOffice, try emerging <c>abiword</c>. 339full-featured word processor but don't want the bloat of OpenOffice, try
304<uri link="http://www.abisource.com">AbiWord</uri> is lighter, faster, and is 340emerging <c>abiword</c>. <uri link="http://www.abisource.com">AbiWord</uri> is
305completely interoperable with industry-standard document types. 341lighter, faster, and is completely interoperable with industry-standard document
306</p> 342types.
307
308<pre caption="Adding a word processor">
309# <i>emerge -avt abiword</i>
310</pre> 343</p>
311 344
312<p> 345<p>
313Need a nice email client/newsreader that isn't as demanding as 346Need a nice email client/newsreader that isn't as demanding as
314<c>mozilla-thunderbird</c> or <c>evolution</c>? Try emerging <c>claws-mail</c>. 347<c>thunderbird</c> or <c>evolution</c>? Try emerging <c>claws-mail</c>.
315</p> 348</p>
316 349
317<p> 350<p>
318For your internet chat needs, <c>irssi</c> is an excellent, tiny, incredibly 351For your internet chat needs, <c>irssi</c> is an excellent, tiny, incredibly
319configurable IRC client that runs in your terminal. If you prefer a compact 352configurable IRC client that runs in your terminal. If you prefer a compact
321<c>emerge pidgin</c>. 354<c>emerge pidgin</c>.
322</p> 355</p>
323 356
324<p> 357<p>
325If you need movie and music players, look no further than <c>mplayer</c> and 358If you need movie and music players, look no further than <c>mplayer</c> and
359<uri link="/proj/en/desktop/sound/decibel.xml">decibel-audio-player</uri>. They
326<c>audacious</c>. They can play most every media format available quite nicely, 360can play most every media format available quite nicely.
327and have a wealth of additional plugins available for additional functionality.
328</p> 361</p>
329 362
330<p> 363<p>
331Finally, you'll need a webbrowser. Nearly all graphical webbrowsers require more 364Finally, you'll need a webbrowser. Nearly all graphical webbrowsers require more
332resources than most of your other desktop applications. Still, 365resources than most of your other desktop applications. Still, <c>firefox</c>
333<c>mozilla-firefox</c> (or <c>mozilla-firefox-bin</c>) is always a good choice. 366and <c>midori</c> are always good choices. Alternatively, you may find
334Alternatively, you may find <c>opera</c> to be quite fast. However, <c>opera</c> 367<c>opera</c> to be quite fast. However, <c>opera</c> is not available on as many
335is not available on as many processor architectures as <c>mozilla-firefox</c>, 368processor architectures as <c>firefox</c>, and it has more dependencies unless
336and it has more dependencies unless you override them with a USE flag. 369you override them with a few USE flags.
337</p> 370</p>
338 371
339<pre caption="Adding a webbrowser"> 372<pre caption="Adding a webbrowser">
340<comment>(Installing Mozilla Firefox)</comment> 373<comment>(Installing Mozilla Firefox)</comment>
341# <i>emerge mozilla-firefox</i> 374# <i>emerge firefox</i>
375<comment>(Installing Midori)</comment>
376# <i>emerge midori</i>
342<comment>(Installing Opera)</comment> 377<comment>(Installing Opera)</comment>
343# <i>echo "www-client/opera qt-static" >> /etc/portage/package.use</i> 378# <i>echo "www-client/opera gtk -kde" >> /etc/portage/package.use</i>
344# <i>emerge opera</i> 379# <i>emerge opera</i>
345</pre> 380</pre>
346 381
347<p> 382<p>
348Now that we've explored some good suggestions for rounding out your desktop 383Now that we've explored some good suggestions for rounding out your desktop
385 420
386<pre caption="Installing SLiM"> 421<pre caption="Installing SLiM">
387# <i>emerge -avt slim</i> 422# <i>emerge -avt slim</i>
388</pre> 423</pre>
389 424
425<note>
426The <c>branding</c> USE flag will pull in the <c>slim-themes</c> package, which
427will give you an assortment of login themes, including a Gentoo Linux theme.
428</note>
429
390<p> 430<p>
391Then edit the DISPLAYMANAGER variable in <path>/etc/conf.d/xdm</path>: 431Then edit the DISPLAYMANAGER variable in <path>/etc/conf.d/xdm</path>:
392</p> 432</p>
393 433
394<pre caption="Editing /etc/conf.d/xdm"> 434<pre caption="Editing /etc/conf.d/xdm">
395DISPLAYMANAGER="slim" 435DISPLAYMANAGER="slim"
396</pre> 436</pre>
397 437
398<p> 438<p>
399SLiM can automatically start your Xfce session if you add 439SLiM can automatically start your Xfce session if you add
400<c>XSESSION="Xfce4"</c> to <path>/etc/rc.conf</path>. 440<c>XSESSION="Xfce4"</c> to <path>/etc/env.d/90xsession</path>:
441</p>
442
443<pre caption="Setting XSESSION">
444# <i>echo XSESSION=\"Xfce4\" > /etc/env.d/90xsession</i>
445# <i>env-update &amp;&amp; source /etc/profile</i>
401</p> 446</pre>
402 447
403</body> 448</body>
404</section> 449</section>
405<section> 450<section>
406<title>Beautifying your desktop</title> 451<title>Beautifying your desktop</title>
430<p> 475<p>
431If you installed SLiM as your display manager, there are lots of themes in the 476If you installed SLiM as your display manager, there are lots of themes in the
432<c>slim-themes</c> package available in Portage. Also, be sure to check the SLiM 477<c>slim-themes</c> package available in Portage. Also, be sure to check the SLiM
433<uri link="http://slim.berlios.de/themes01.php">themes page</uri> for more 478<uri link="http://slim.berlios.de/themes01.php">themes page</uri> for more
434themes. Creating your own SLiM theme is fairly easy; just read the <uri 479themes. Creating your own SLiM theme is fairly easy; just read the <uri
435link="http://slim.berlios.de/themes_howto.php">Themes HowTo</uri>. 480link="http://slim.berlios.de/themes_howto.php">Themes HowTo</uri>. Gentoo also
481ships a <c>slim-themes</c> package that you can <c>emerge</c>.
436</p> 482</p>
437 483
438<p> 484<p>
439Finally, Xfce has its own built-in compositor to manage window transparency. 485Finally, Xfce has its own built-in compositor to manage window transparency.
440This option can be found in Menu --> Settings --> Window Manager. For best 486This option can be found in Menu --> Settings --> Window Manager. For best
457<uri link="/doc/en/index.xml?catid=desktop">Desktop Documentation 503<uri link="/doc/en/index.xml?catid=desktop">Desktop Documentation
458Resources</uri> list to learn about configuring hardware-accelerated rendering 504Resources</uri> list to learn about configuring hardware-accelerated rendering
459for your graphics card. 505for your graphics card.
460</p> 506</p>
461 507
508<p>
509Once you've finished setting up a beautiful Xfce desktop, the next thing to do
510is take a picture of it to share with other folks! Just install
511<c>xfce4-screenshooter</c> and post your pictures somewhere for all to admire.
512</p>
513
462</body> 514</body>
463</section> 515</section>
464</chapter> 516</chapter>
465 517
466<chapter> 518<chapter>
471<p> 523<p>
472Congratulations on making it this far! You've installed and configured a speedy 524Congratulations on making it this far! You've installed and configured a speedy
473desktop environment with a solid suite of applications for your computing 525desktop environment with a solid suite of applications for your computing
474needs. 526needs.
475</p> 527</p>
528
529</body>
530</section>
531<section>
532<title>Upgrading Xfce</title>
533<body>
534
535<p>
536If you're upgrading Xfce from an old version to 4.8 or newer, then you will need
537to remove your old cached sessions. For each of your users, run the following
538commands to remove your old incompatible cached sessions:
539</p>
540
541<pre caption="Deleting old sessions from the cache">
542$ <i>rm -r ~/.cache/sessions</i>
543$ <i>rm -r ~/.config/xfce*</i>
544$ <i>rm -r ~/.config/Thunar</i>
545</pre>
476 546
477</body> 547</body>
478</section> 548</section>
479<section> 549<section>
480<title>Resources</title> 550<title>Resources</title>

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20