| 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/xorg-config.xml,v 1.35 2009/12/31 01:37:01 nightmorph Exp $ --> |
3 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/xorg-config.xml,v 1.36 2010/01/02 03:02:40 nightmorph Exp $ --> |
| 4 | |
4 | |
| 5 | <guide> |
5 | <guide> |
| 6 | <title>The X Server Configuration HOWTO</title> |
6 | <title>The X Server Configuration HOWTO</title> |
| 7 | |
7 | |
| 8 | <author title="Author"> |
8 | <author title="Author"> |
| 9 | <mail link="swift@gentoo.org">Sven Vermeulen</mail> |
9 | <mail link="swift"/> |
| 10 | </author> |
10 | </author> |
| 11 | <author title="Author"> |
11 | <author title="Author"> |
| 12 | <mail link="nightmorph"/> |
12 | <mail link="nightmorph"/> |
| 13 | </author> |
13 | </author> |
| 14 | |
14 | |
| 15 | <abstract> |
15 | <abstract> |
| 16 | Xorg is the X Window server which allows users to have a graphical |
16 | Xorg is the X Window server which allows users to have a graphical |
| 17 | environment at their fingertips. This HOWTO explains what Xorg is, how to |
17 | environment at their fingertips. This HOWTO explains what Xorg is, how to |
| 18 | install it and what the various configuration options are. |
18 | install it and what the various configuration options are. |
| 19 | </abstract> |
19 | </abstract> |
| 20 | |
20 | |
| 21 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
21 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 22 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
22 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 23 | <license/> |
23 | <license/> |
| 24 | |
24 | |
| 25 | <version>1.25</version> |
25 | <version>1.26</version> |
| 26 | <date>2009-12-30</date> |
26 | <date>2010-01-01</date> |
| 27 | |
27 | |
| 28 | <chapter> |
28 | <chapter> |
| 29 | <title>What is the X Window Server?</title> |
29 | <title>What is the X Window Server?</title> |
| 30 | <section> |
30 | <section> |
| 31 | <title>Graphical vs Command-Line</title> |
31 | <title>Graphical vs Command-Line</title> |
| 32 | <body> |
32 | <body> |
| 33 | |
33 | |
| 34 | <p> |
34 | <p> |
| 35 | The average user may be frightened at the thought of having to type in commands. |
35 | The average user may be frightened at the thought of having to type in commands. |
| 36 | Why wouldn't he be able to point and click his way through the freedom provided |
36 | Why wouldn't he be able to point and click his way through the freedom provided |
| 37 | by Gentoo (and Linux in general)? Well, *big smile*, of course you are able to |
37 | by Gentoo (and Linux in general)? Well, *big smile*, of course you are able to |
| 38 | do this. :-) Linux offers a wide variety of flashy user interfaces and |
38 | do this. :-) Linux offers a wide variety of flashy user interfaces and |
| 39 | environments which you can install on top of your existing installation. |
39 | environments which you can install on top of your existing installation. |
| 40 | </p> |
40 | </p> |
| 41 | |
41 | |
| … | |
… | |
| 439 | |
439 | |
| 440 | <ul> |
440 | <ul> |
| 441 | <li> |
441 | <li> |
| 442 | If a file named <path>.xinitrc</path> exists in the home directory, it will |
442 | If a file named <path>.xinitrc</path> exists in the home directory, it will |
| 443 | execute the commands listed there. |
443 | execute the commands listed there. |
| 444 | </li> |
444 | </li> |
| 445 | <li> |
445 | <li> |
| 446 | Otherwise, it will read the value of the XSESSION variable and will execute |
446 | Otherwise, it will read the value of the XSESSION variable and will execute |
| 447 | one of the sessions available in <path>/etc/X11/Sessions/</path> |
447 | one of the sessions available in <path>/etc/X11/Sessions/</path> |
| 448 | accordingly. You can set the value of XSESSION in |
448 | accordingly. You can set the value of XSESSION in |
| 449 | <path>/etc/env.d/90xsession</path> to make it a default for all the users on |
449 | <path>/etc/env.d/90xsession</path> to make it a default for all the users on |
| 450 | the system. For example, as root, run <c>echo XSESSION="Xfce4" > |
450 | the system. For example, as root, run <c>echo XSESSION="Xfce4" > |
| 451 | /etc/env.d/90xsession</c>. This will create the <path>90xsession</path> file |
451 | /etc/env.d/90xsession</c>. This will create the <path>90xsession</path> file |
| 452 | and set the default X session to Xfce4. |
452 | and set the default X session to Xfce4. |
| 453 | </li> |
453 | </li> |
| 454 | <li> |
|
|
| 455 | If all of the above fail, it will fall back to a simple window manager, |
|
|
| 456 | usually <c>twm</c>. |
|
|
| 457 | </li> |
|
|
| 458 | </ul> |
454 | </ul> |
| 459 | |
455 | |
| 460 | <pre caption="Starting X"> |
456 | <pre caption="Starting X"> |
| 461 | # <i>startx</i> |
457 | # <i>startx</i> |
| 462 | </pre> |
458 | </pre> |
| 463 | |
459 | |
| 464 | <p> |
460 | <p> |
| 465 | You can kill the X session using the Ctrl-Alt-Backspace combination. This will |
461 | You can kill the X session using the Ctrl-Alt-Backspace combination. This will |
| 466 | however make X exit disgracefully -- something that you might not always want. |
462 | however make X exit disgracefully -- something that you might not always want. |
| 467 | </p> |
463 | </p> |
| 468 | |
464 | |
| 469 | </body> |
465 | </body> |
| 470 | </section> |
466 | </section> |
| 471 | </chapter> |
467 | </chapter> |
| 472 | |
468 | |