removed
[ikiwiki.git] / docs / handbook / handbook-x11-wm.mdwn
1
2 ----
3
4
5
6 # 5.7 Desktop Environments 
7
8  ***Contributed by Valentino Vaschetto. ***
9
10 ***
11
12  This section describes the different desktop environments available for X on FreeBSD. A ***desktop environment*** can mean anything ranging from a simple window manager to a complete suite of desktop applications, such as  **KDE**  or  **GNOME** .
13
14
15
16 ## 5.7.1 GNOME 
17
18
19
20 ### 5.7.1.1 About GNOME 
21
22
23
24    **GNOME**  is a user-friendly desktop environment that enables users to easily use and configure their computers.  **GNOME**  includes a panel (for starting applications and displaying status), a desktop (where data and applications can be placed), a set of standard desktop tools and applications, and a set of conventions that make it easy for applications to cooperate and be consistent with each other. Users of other operating systems or environments should feel right at home using the powerful graphics-driven environment that  **GNOME**  provides.
25
26
27
28 ### 5.7.1.2 Installing GNOME 
29
30
31
32    **GNOME**  can be easily installed from a package or from the pkgsrc framework:
33
34
35
36   To install the  **GNOME**  package from the network, simply type:
37
38
39
40       
41
42     # pkg_radd gnome
43
44
45
46
47
48   To build  **GNOME**  from source, use the ports tree:
49
50
51
52       
53
54     # cd /usr/pkgsrc/meta-pkgs/gnome
55
56     # bmake install clean
57
58
59
60
61
62   Once  **GNOME**  is installed, the X server must be told to start  **GNOME**  instead of a default window manager.
63
64
65
66   The easiest way to start  **GNOME**  is with  **GDM** , the GNOME Display Manager.  **GDM** , which is installed as a part of the  **GNOME**  desktop (but is disabled by default), can be enabled by adding `gdm_enable="YES"` to `/etc/rc.conf`. Once you have rebooted,  **GNOME**  will start automatically once you log in -- no further configuration is necessary.
67
68
69
70    **GNOME**  may also be started from the command-line by properly configuring a file named `.xinitrc`. If a custom `.xinitrc` is already in place, simply replace the line that starts the current window manager with one that starts  **/usr/pkg/bin/gnome-session**  instead. If nothing special has been done to the configuration file, then it is enough simply to type:
71
72
73
74       
75
76     % echo "/usr/pkg/bin/gnome-session" > ~/.xinitrc
77
78
79
80
81
82   Next, type `startx`, and the  **GNOME**  desktop environment will be started.
83
84 ***
85
86   ***
87
88      **Note:** If an older display manager, like  **XDM** , is being used, this will not work. Instead, create an executable `.xsession` file with the same command in it. To do this, edit the file and replace the existing window manager command with  **/usr/pkg/bin/gnome-session** :
89
90
91
92         
93
94     % echo "#!/bin/sh" > ~/.xsession
95
96     % echo "/usr/pkg/bin/gnome-session" >> ~/.xsession
97
98     % chmod +x ~/.xsession
99
100
101
102
103
104   Yet another option is to configure the display manager to allow choosing the window manager at login time; the section on [ KDE details](x11-wm.html#X11-WM-KDE-DETAILS) explains how to do this for  **kdm** , the display manager of  **KDE** .
105
106
107
108 ### 5.7.1.3 Anti-aliased Fonts with GNOME 
109
110
111
112   X11 supports anti-aliasing via its ***RENDER*** extension. GTK+ 2.0 and greater (the toolkit used by  **GNOME** ) can make use of this functionality. Configuring anti-aliasing is described in [ Section 5.5.3](x-fonts.html#ANTIALIAS). So, with up-to-date software, anti-aliasing is possible within the  **GNOME**  desktop. Just go to  **Applications->Desktop Preferences->Font** , and select either Best shapes, Best contrast, or Subpixel smoothing (LCDs). For a GTK+ application that is not part of the  **GNOME**  desktop, set the environment variable `GDK_USE_XFT` to `1` before launching the program.
113
114
115
116 ## 5.7.2 KDE 
117
118
119
120 ### 5.7.2.1 About KDE 
121
122
123
124   **KDE**  is an easy to use contemporary desktop environment. Some of the things that  **KDE**  brings to the user are:
125
126 ***
127
128  ***
129
130
131 * A beautiful contemporary desktop
132
133 ***
134
135  ***
136
137
138 * A desktop exhibiting complete network transparency
139
140 ***
141
142  ***
143
144
145 * An integrated help system allowing for convenient, consistent access to help on the use of the  **KDE**  desktop and its applications
146
147 ***
148
149  ***
150
151
152 * Consistent look and feel of all  **KDE**  applications
153
154 ***
155
156  ***
157
158
159 * Standardized menu and toolbars, keybindings, color-schemes, etc.
160
161 ***
162
163  ***
164
165
166 * Internationalization:  **KDE**  is available in more than 40 languages
167
168 ***
169
170  ***
171
172
173 * Centralized consisted dialog driven desktop configuration
174
175 ***
176
177  ***
178
179
180 * A great number of useful  **KDE**  applications
181
182 ***
183
184  ***
185
186   **KDE**  comes with a web browser called  **Konqueror** , which represents a solid competitor to other existing web browsers on UNIX® systems. More information on  **KDE**  can be found on the [KDE website](http://www.kde.org/).
187
188
189
190 ### 5.7.2.2 Installing KDE 
191
192
193
194  Just as with  **GNOME**  or any other desktop environment, the easiest way to install  **KDE**  is through the pkgsrc framework or from a package:
195
196
197
198  To install the  **KDE**  package from the network, simply type:
199
200
201
202      
203
204     # pkg_radd kde3
205
206
207
208
209
210  [pkg_radd(1)](http://leaf.dragonflybsd.org/cgi/web-man?command#pkg_radd&section1) will automatically fetch the latest version of the application.
211
212 ***
213
214  ***
215
216  To build  **KDE**  from source, use the pkgsrc framework:
217
218
219
220      
221
222     # cd /usr/pkgsrc/meta-pkgs/kde3
223
224     # bmake install clean
225
226
227
228
229
230  After  **KDE**  has been installed, the X server must be told to launch this application instead of the default window manager. This is accomplished by editing the `.xinitrc` file:
231
232
233
234      
235
236     % echo "exec startkde" > ~/.xinitrc
237
238
239
240
241
242  Now, whenever the X Window System is invoked with `startx`,  **KDE**  will be the desktop.
243
244
245
246  If a display manager such as  **XDM**  is being used, the configuration is slightly different. Edit the `.xsession` file instead. Instructions for  **kdm**  are described later in this chapter.
247
248
249
250 ## 5.7.3 More Details on KDE 
251
252
253
254  Now that  **KDE**  is installed on the system, most things can be discovered through the help pages, or just by pointing and clicking at various menus. Windows® or Mac® users will feel quite at home.
255
256
257
258  The best reference for  **KDE**  is the on-line documentation.  **KDE**  comes with its own web browser,  **Konqueror** , dozens of useful applications, and extensive documentation. The remainder of this section discusses the technical items that are difficult to learn by random exploration.
259
260
261
262 ### 5.7.3.1 The KDE Display Manager 
263
264
265
266  An administrator of a multi-user system may wish to have a graphical login screen to welcome users. [ XDM](x-xdm.html) can be used, as described earlier. However,  **KDE**  includes an alternative,  **kdm** , which is designed to look more attractive and include more login-time options. In particular, users can easily choose (via a menu) which desktop environment ( **KDE** ,  **GNOME** , or something else) to run after logging on.
267
268
269
270  To enable  **kdm** , the `ttyv8` entry in `/etc/ttys` has to be adapted. The line should look as follows:
271
272
273
274      
275
276     ttyv8 "/usr/pkg/bin/kdm -nodaemon" xterm on secure
277
278
279
280
281
282 ## 5.7.4 XFce 
283
284
285
286 ### 5.7.4.1 About XFce 
287
288
289
290   **XFce**  is a desktop environment based on the GTK+ toolkit used by  **GNOME** , but is much more lightweight and meant for those who want a simple, efficient desktop which is nevertheless easy to use and configure. Visually, it looks very much like  **CDE** , found on commercial UNIX systems. Some of  **XFce** 's features are:
291
292 ***
293
294  ***
295
296
297 * A simple, easy-to-handle desktop
298
299 ***
300
301  ***
302
303
304 * Fully configurable via mouse, with drag and drop, etc
305
306 ***
307
308  ***
309
310
311 * Main panel similar to  **CDE** , with menus, applets and applications launchers
312
313 ***
314
315  ***
316
317
318 * Integrated window manager, file manager, sound manager,  **GNOME**  compliance module, and other things
319
320 ***
321
322  ***
323
324
325 * Themeable (since it uses GTK+)
326
327 ***
328
329  ***
330
331
332 * Fast, light and efficient: ideal for older/slower machines or machines with memory limitations
333
334 ***
335
336  ***
337
338  More information on  **XFce**  can be found on the [XFce website](http://www.xfce.org/).
339
340
341
342 ### 5.7.4.2 Installing XFce 
343
344
345
346  A binary package for  **XFce**  exists (at the time of writing). To install, simply type:
347
348
349
350      
351
352     # pkg_radd xfce4
353
354
355
356
357
358  Alternatively, to build from source, use the pkgsrc framework:
359
360
361
362      
363
364     # cd /usr/pkgsrc/meta-pkgs/xfce4
365
366     # bmake install clean
367
368
369
370
371
372  Now, tell the X server to launch  **XFce**  the next time X is started. Simply type this:
373
374
375
376      
377
378     % echo "/usr/pkg/bin/startxfce4" > ~/.xinitrc
379
380
381
382
383
384  The next time X is started,  **XFce**  will be the desktop. As before, if a display manager like  **XDM**  is being used, create an `.xsession`, as described in the section on [ GNOME](x11-wm.html#X11-WM-GNOME), but with the `/usr/pkg/bin/startxfce4` command; or, configure the display manager to allow choosing a desktop at login time, as explained in the section on [ kdm](x11-wm.html#X11-WM-KDE-KDM).
385
386
387
388
389
390 ----
391
392
393