3 <!DOCTYPE chapter PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd">
5 <chapter id="configure">
6 <title>Configuring &kde;</title>
11 <para>How do I set the language used by &kde;?</para>
15 <para>There are two ways to set the language &kde; uses in the
16 messages it will display:</para>
19 <varlistentry><term>Using the <application>&kde; Control Center</application></term>
20 <listitem><para>Fire up the <application>&kde; Control Center</application> and select
21 <guimenu>Regional & Accessibility</guimenu> followed by
22 <guimenuitem>Country/Region & Language</guimenuitem>. You can select your language and location
23 here. If &kde; cannot find a translation in the first language
24 chosen, it will fall back on the default language. This is usually
25 (American) English by default.</para>
26 <note><para>Using the <application>&kde; Control Center</application> is the preferred way of choosing
27 languages in &kde;.</para></note></listitem>
29 <varlistentry><term>Using the <envar>KDE_LANG</envar> environment variable</term>
30 <listitem><para>The second method uses the standard locale setting on
31 your system. To change the language, simply set the environment
32 variable <envar>KDE_LANG</envar> accordingly. For example, if your shell
33 is <application>bash</application>, execute
34 <userinput><command>export</command> <envar>KDE_LANG</envar>=de</userinput>
35 to set German as the language used.</para></listitem>
43 <para>Is there any keyboard switcher for international keyboards for
48 Yes, you can configure it using the <application>&kde; Control Center</application>
49 <guimenu>Regional & Accessibility</guimenu>
50 <guimenuitem>Keyboard Layout</guimenuitem>
58 <para>How do I replace the standard text login screen with the
59 &kde; login screen?</para>
62 <note><para>Your distribution/&UNIX; flavor may have its own setup tools to
63 change this (⪚ <application>YaST</application> on &SuSE; &Linux;). This will
64 be the safest way to enable the &kde; login screen. However, if for some reason
65 you do not wish to use these tools, the following instructions may be useful.</para></note>
66 <para>First, you need to change to the <quote>xdm runlevel</quote> (runlevel 5 on
67 &RedHat; and &SuSE; systems) by editing your
68 <filename>/etc/inittab</filename> file. In the file, you should have
69 a line saying <userinput>id:3:initdefault:</userinput>. Change it to
70 <userinput>id:5:initdefault:</userinput>. Now, at the end of the file,
71 comment out the following line:
72 <literal>x:5:respawn:/usr/bin/X11/xdm -nodaemon</literal> and
74 <userinput>x:5:respawn:<replaceable>/opt/kde/</replaceable>bin/kdm
75 -nodaemon</userinput>.
76 <note><para>The location of &kdm; may differ on your
77 system.</para></note></para>
78 <para>For changes to take effect immediately, type <command>init
79 5</command> (for &RedHat; systems) at the shell prompt.
80 <caution><para>It is risky to initiate a graphical login without
81 checking beforehand whether it works. If it fails to work, you would
82 be in for a hard time getting back....</para></caution></para>
86 For FreeBSD, you should edit the file <filename>/etc/ttys</filename>
87 and change one of the lines that look like
88 <programlisting>ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure</programlisting>
89 to instead say <userinput>ttyv8 "/usr/local/bin/kdm -nodaemon" xterm
90 off secure</userinput>.</para>
97 <para>I would like to click the &LMB; anywhere on the
98 desktop and have the <guimenu>K</guimenu> menu displayed.</para>
101 <para>Open the <application>&kde; Control Center</application> and
102 choose <menuchoice><guisubmenu>Desktop</guisubmenu>
103 <guisubmenu>Behavior</guisubmenu></menuchoice>. You
104 can now choose the behavior of mouse clicks on the desktop. To have
105 the <guimenu>K</guimenu> menu open from a single &LMB; click, change
106 the entry labeled <guilabel>Left button</guilabel> to say
107 <guilabel>Application Menu</guilabel>.</para>
113 <para>Where do I find information regarding &kde; themes?</para>
117 url="http://www.kde-look.org">http://www.kde-look.org</ulink> for a wide range of KDE themes and theming resources.</para>
123 <para>How do I change &MIME; Types?</para>
126 <para>If you are using &konqueror;, do this instead: first, open a
127 &konqueror; window and choose
128 <menuchoice><guimenu>Settings</guimenu><guimenuitem>Configure
129 Konqueror</guimenuitem></menuchoice>, then <guilabel>File Associations</guilabel>. Find the type you want to change
130 (⪚ <literal>text/english</literal> or
131 <literal>image/gif</literal>), and set the application preference order
132 to whatever you want.</para>
138 <para>&kde; (&kdm;) does not read my
139 <filename>.bash_profile</filename>!</para>
142 <para>The login managers<application>xdm</application> and &kdm; do
143 not run a login shell, so <filename>.profile</filename>,
144 <filename>.bash_profile</filename>, &etc; are not
145 sourced. When the user logs in, <application>xdm</application> runs
146 <command>Xstartup</command> as root and then
147 <command>Xsession</command> as user. So the normal practice is to add
148 statements in <filename>Xsession</filename> to source the user
149 profile. Please edit your <filename>Xsession</filename> and
150 <filename>.xsession</filename> files.</para>
156 <para>How do I use &TrueType; fonts in &kde;?</para>
160 <para>You need to install &TrueType; font support into your &X-Window; configuration.
161 Please take a look at <ulink
162 url="http://x.themes.org/">x.themes.org</ulink> for the fonts, and
163 <ulink url="http://www.dcs.ed.ac.uk/home/jec/programs/xfsft/">xfsft:
164 &TrueType; Font Support For X11</ulink> or <ulink
165 url="http://X-TT.dsl.gr.jp/">X-&TrueType; Server Project Home
166 Page</ulink> for the font servers.</para>
168 <para>If you have a bunch of &TrueType; fonts from &Microsoft;
169 &Windows;, edit the <filename>XF86Config</filename> file to get the
170 fonts from the font folder. Then just tell &kde; to use these new
171 fonts with the font administrator utility.</para>
178 <para>Is it possible to enter, show and work with the Euro Symbol in
182 <para>Yes and no. For details, look here: <ulink
183 url="http://www.koffice.org/kword/euro.php">http://www.koffice.org/kword/euro.php</ulink>.</para>
188 <question><para>How do I run a program at &kde; startup?</para></question>
190 <answer><para>There are many ways to do that. If what you want to do
191 is to run some scripts that would set some environment variables (for
192 example, to start <command>gpg-agent</command>, <command>ssh-agent</command> and others), you can put
193 these scripts into <filename class="directory">$<envar>KDEHOME</envar>/env/</filename> and make sure their names end in
194 <literal role="extension">.sh</literal>. $<envar>KDEHOME</envar> is
195 usually a folder named <filename class="directory">.kde</filename>
196 (note the period at the beginning) in your home
197 folder. If you want scripts to be executed for all &kde; users, you can
198 put them under <filename class="directory">$<envar>KDEDIR</envar>/env/</filename>, where $<envar>KDEDIR</envar> is the prefix &kde; was
199 installed to (you can find this out using the command
200 <userinput><command>kde-config</command> --prefix</userinput>).</para>
201 <para>If you wish to start a program after &kde; has started, you may want to use the
202 <filename class="directory">Autostart</filename> folder. To add
203 entries to the <filename class="directory">Autostart</filename> folder:
205 <listitem><para>Open &konqueror;.</para>
207 <listitem><para>Select <menuchoice><guimenu>Go</guimenu><guimenuitem>Autostart</guimenuitem>
208 </menuchoice> from the menubar.</para>
210 <listitem><para>Right-click in the window view area and select <menuchoice><guisubmenu>Create New</guisubmenu><guisubmenu>File</guisubmenu><guimenuitem>Link to
211 Application</guimenuitem>
214 <listitem><para>Click on the <guilabel>Application</guilabel> tab in
215 the window that appears and enter the name of the command to run in
216 the <guilabel>Command</guilabel> text box.</para>
226 <para>How can I allow more than one user to be logged in a at a time? Can &kde; do <quote>fast user switching</quote>?</para>
230 <para>To enable more than one user to log in at one time on the same
231 computer (sometimes referred to as <quote>fast user switching</quote>) you
232 need to tell the program that logs you in that it can use more than one
233 session (or, in &X-Window; terms, <quote>display</quote>) at a time.</para>
235 <para>In &kde;, this program is called &kdm; which stands for <quote>&kde;
236 Display Manager</quote>. If you are not using &kdm; as your login screen
237 then you will need to consult the documentation for the software you are using on how to
238 accomplish multiple sessions.</para>
240 <para>By default, this will be configured at installation time automatically
241 if &kdm; supports virtual terminals on your system (currently Linux only).
242 If it was not configured automatically, consult the &kdm; manual, section
243 <ulink url="help:/kdm/kdmrc-xservers">Specifying permanent &X-Server;s</ulink>.
244 After modifying kdmrc, you will have to let &kdm; know about it; just
245 invoke <command>killall -HUP kdm</command>.</para>