1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="kde-core-config" xreflabel="Starting KDE4">
|
---|
9 | <?dbhtml filename="config.html"?>
|
---|
10 |
|
---|
11 |
|
---|
12 | <title>Starting KDE4</title>
|
---|
13 |
|
---|
14 | <bridgehead renderas="sect3">KDE4 Startup Dependencies</bridgehead>
|
---|
15 |
|
---|
16 | <bridgehead renderas="sect4">Recommended Runtime Dependencies</bridgehead>
|
---|
17 | <para role="recommended">
|
---|
18 | <xref linkend="consolekit"/> and
|
---|
19 | <xref linkend="dbus"/>
|
---|
20 | </para>
|
---|
21 |
|
---|
22 | <para>After <application>Kde-workspace</application> has been installed, the
|
---|
23 | first important milestone has been reached. Now you need to configure your
|
---|
24 | system to start KDE4.</para>
|
---|
25 |
|
---|
26 | <sect2 role="content">
|
---|
27 | <title>Starting KDE4 from the command prompt</title>
|
---|
28 |
|
---|
29 | <para>
|
---|
30 | You can start <application>KDE4</application> from runlevel 3, using
|
---|
31 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
32 | such as <xref linkend="sddm"/>.
|
---|
33 | </para>
|
---|
34 |
|
---|
35 | <para>
|
---|
36 | To start <application>KDE4</application> using <xref linkend="xinit"/>,
|
---|
37 | run the following commands:
|
---|
38 | </para>
|
---|
39 |
|
---|
40 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
41 | <literal>ck-launch-session dbus-launch --exit-with-session startkde</literal>
|
---|
42 | EOF
|
---|
43 |
|
---|
44 | startx</userinput></screen>
|
---|
45 |
|
---|
46 | <para>
|
---|
47 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
48 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
49 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
50 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
51 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
52 | <command>startx</command> was executed will display many messages,
|
---|
53 | including X starting messages, applications automatically started with
|
---|
54 | the session, and eventually, some warning and error messages. You may
|
---|
55 | prefer to redirect those messages to a log file, which not only will keep
|
---|
56 | the initial vt uncluttered, but can also be used for debug purposes. This
|
---|
57 | can be done starting X with:
|
---|
58 | </para>
|
---|
59 |
|
---|
60 | <screen><userinput>startx &> ~/.x-session-errors</userinput></screen>
|
---|
61 |
|
---|
62 | <note>
|
---|
63 | <para>
|
---|
64 | You may wish to drop consolekit and/or dbus-launch, e.g., just using
|
---|
65 | startkde in ~/.xinitrc. However some capabilities such as mounting or
|
---|
66 | umounting file systems from a file manager will not be possible, or the
|
---|
67 | reboot option will be absent or inoperative, among other problems.
|
---|
68 | </para>
|
---|
69 | </note>
|
---|
70 |
|
---|
71 | <para>
|
---|
72 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
73 | where X was running. If you wish to see those messages, simultaneously
|
---|
74 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
75 | </para>
|
---|
76 |
|
---|
77 | </sect2>
|
---|
78 |
|
---|
79 | <sect2 role="content">
|
---|
80 | <title>Starting KDE4 at boot</title>
|
---|
81 |
|
---|
82 | <para>KDE4 comes with a graphical login interface called KDM (the KDE4 Display
|
---|
83 | Manager), which provides a customizable graphical login at boot. To use KDM,
|
---|
84 | you need to edit your <filename>/etc/inittab</filename> file (as the
|
---|
85 | <systemitem class="username">root</systemitem> user).
|
---|
86 | First, setup run-level 5 to start KDM (adjust
|
---|
87 | the path to kdm according to your system):</para>
|
---|
88 |
|
---|
89 | <screen><userinput>cat >> /etc/inittab << EOF
|
---|
90 | <literal>kd:5:respawn:/opt/kde/bin/kdm</literal>
|
---|
91 | EOF</userinput></screen>
|
---|
92 |
|
---|
93 | <para>Additionally, you need to change the default run-level from 3 to 5:</para>
|
---|
94 |
|
---|
95 | <screen><userinput>sed -i 's#id:3:initdefault:#id:5:initdefault:#' /etc/inittab</userinput></screen>
|
---|
96 |
|
---|
97 | <para>You can now restart your system and see the KDE4 login
|
---|
98 | screen.</para>
|
---|
99 |
|
---|
100 | </sect2>
|
---|
101 |
|
---|
102 | <sect2 role="content">
|
---|
103 | <title>Installing further languages (l10n)</title>
|
---|
104 |
|
---|
105 | <para>You may want to install support for your locale language. The l10n
|
---|
106 | packages can be found at <ulink
|
---|
107 | url="&kde-download-http;applications/&kde-apps-version;/src/kde-l10n/">
|
---|
108 | &kde-download-http;applications/&kde-apps-version;/src/kde-l10n/</ulink>.
|
---|
109 | See <xref linkend="kde-add-pkgs"/> for build instructions. If you are in a
|
---|
110 | KDE4 session when installing a new language and configure KDE4 to use it, the
|
---|
111 | session needs to be restarted, in order to see the effects.</para>
|
---|
112 |
|
---|
113 | </sect2>
|
---|
114 |
|
---|
115 | <sect2 role="content">
|
---|
116 | <title>Installing further KDE4 packages</title>
|
---|
117 |
|
---|
118 | <para>Every subsequent package can be built while having
|
---|
119 | <application>KDE4</application> up and running, but remember to keep
|
---|
120 | <envar>&kde-dir;</envar> and <envar>&qt4-dir;</envar> set.</para>
|
---|
121 |
|
---|
122 | </sect2>
|
---|
123 |
|
---|
124 | </sect1>
|
---|