KDE-GUI-Login-Configuration-HOWTO(1).pdf
(
23 KB
)
Pobierz
KDE GUI Login Configuration HOWTO
KDE GUI Login Configuration HOWTO
KDE GUI Login Configuration HOWTO
Table of Contents
KDE GUI Login Configuration HOWTO.
.......................................................................................................1
John P. Meshkoff,II johnm@sivakalpa.org.
............................................................................................1
1. Copyright.
............................................................................................................................................1
2. Introduction.
.........................................................................................................................................1
3. Adding new window manager selections to the drop−down list.
........................................................1
4. Enabling user selection icons in the login dialog box.
.........................................................................1
5. Requiring root permission for shutdown.
............................................................................................1
6. Bibliography.
.......................................................................................................................................1
1. Copyright.
............................................................................................................................................1
2. Introduction.
.........................................................................................................................................2
3. Adding new window manager selections to the drop−down list.
........................................................3
4. Enabling user selection icons in the login dialog box.
.........................................................................5
5. Requiring root permission for shutdown.
............................................................................................6
6. Bibliography.
.......................................................................................................................................6
i
KDE GUI Login Configuration HOWTO
John P. Meshkoff,II
johnm@sivakalpa.org
v1.03 2003/04/13 update icon notes and kde 3.1 handbook notes
This is the KDE GUI Login Configuration HOWTO, a tutorial on customizing the GUI login screen. Topics
include: How to add other window managers to the drop−down selection list; how to enable user selection
icons in the login window; and requiring root permission for system shutdown.
1.
Copyright
2.
Introduction
3.
Adding new window manager selections to the
drop−down list
4.
Enabling user selection icons in the login dialog box
5.
Requiring root permission for shutdown
6.
Bibliography
1.
Copyright
Copyright (c) 2002 by John Meshkoff
Please freely copy and distribute (sell or give away) this document in any format. It's requested that
corrections and/or comments be forwarded to the document maintainer. You may create a derivative work and
distribute it provided that you:
1. Send your derivative work (in the most suitable format such as sgml) to the LDP (Linux Documentation
Project) or the like for posting on the Internet. If not the LDP, then let the LDP know where it is available.
2. License the derivative work with this same license or use GPL. Include a copyright notice and at least a
pointer to the license used.
3. Give due credit to previous authors and major contributors.
If you're considering making a derived work other than a translation, it's requested that you discuss your plans
with the current maintainer.
KDE GUI Login Configuration HOWTO
1
KDE GUI Login Configuration HOWTO
2.
Introduction
This info is based on my RedHat 6.1 default KDE Workstation installation. If you are using another
distribution, or even another version of RedHat, or a different Workstation install, then you may have to do
some detective work. Hopefully, this info will give you what you need to start detecting! This HOWTO began
as the result of wondering how to add another window manager or desktop environment to the drop−down list
on the GUI login screen; further investigation revealed other configuration options.
I began my own "detective work" when I found a reference on a RedHat List which mentioned
/etc/inittab
, and its role in system startup. In
/etc/inittab
I found the following entries, which
define how the X Window System is started in my distribution and version:
# Run xdm in runlevel 5
# xdm is now a separate service
x:5:respawn:/etc/X11/prefdm −nodaemon
Here is what prefdm looks like:
#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
# Run preferred X display manager
preferred=
if [ −f /etc/sysconfig/desktop ]; then
if grep −q GNOME /etc/sysconfig/desktop 2>/dev/null; then
preferred=gdm
elif grep −q KDE /etc/sysconfig/desktop 2> /dev/null; then
preferred=kdm
elif grep −q AnotherLevel /etc/sysconfig/desktop 2> /dev/null; then
preferred=xdm
fi
fi
if [ −z ":$preferred" ]; then
if which gdm >/dev/null 2>&1; then
preferred=gdm
elif which kdm >/dev/null 2>&1; then
preferred=kdm
elif which xdm >/dev/null 2>&1; then
preferred=xdm
fi
fi
if [ −n "$preferred" ] && which $preferred >/dev/null 2>&1; then
exec `which $preferred` $*
fi
exit 1
No changes to prefdm are necessary; it determines which display manager is the system default, and which
runs the GUI login. During boot−up, prefdm parses
/etc/sysconfig/desktop
and selects the display
manager listed there; in the case of my KDE Workstation install, this is kdm (KDE Display Manager). Note
that gdm (Gnome Display Manager) is not installed on my system; xdm (X Display Manager) is installed by
default as part of the X Window System, and was apparently used by older versions of Red Hat.
2. Introduction
2
KDE GUI Login Configuration HOWTO
3.
Adding new window manager selections to the
drop−down list
WARNING: The procedures explained in this HOWTO involve making changes to system configuration
files; if you are not experienced in making such changes, some caution is required. Introducing errors into
such files may make your system unstable, or cause it to crash. The procedures explained in this HOWTO
have been tested and should not cause problems if used correctly.
If you have KDE 2.2 or higher, and you are not comfortable with manual editing of system files, you may
open a terminal window (xterm or konsole) from your user desktop (NOT the root desktop), then type and
enter:
su −c 'kcontrol'
Enter your root password at the prompt, and make the changes from within the KDE Control Center that
appears: go to
Applications ==> Login Manager
. Choose the appropriate configuration tab; you can easily
configure every aspect of the login screen from there. In Earlier versions of KDE, kcontrol can modify kdmrc,
but cannot modify Xsession which is used in those versions; see the note below about changes from KDE 2.2
and higher.
To see how to manually configure some of these, and see what these configuration files do, proceed as
follows:
(Caution: Some configuration files have changed since the version of kdm I'm using, particularly since KDE >
2.0:
The following is quoted from
the FreeBSD Handbook−X11:
"Note: In KDE 2.2 this has changed: kdm now uses its own configuration files. Please see the KDE 2.2
documentation for details.")
Note: KDE 3.1 has added kdm documentation, see
The kdm Handbook
Much of the material in this new handbook applies to the older versions; new features are also described
therein.
Check the documentation for your version to identify the current configuration files if you want to manually
edit these, or just want to see how they work.
Do
not
use a
word−processor
program for editing system configuration files; such programs introduce special
formatting characters which will corrupt the files. Use a
text−editor
, particularly one which can handle long
lines without introducing extra carriage−return or line feed characters into existing code. Suitable editors
include vim (vi improved), vi, and emacs. There are others, but these are usually installed by default in Linux
workstation installations; they each have features which make them especially suitable for writing and editing
computer code. See the bibliography section at the end of this HOWTO for more information.
IMPORTANT: Before making changes to
any
system configuration files, you should make back−up copies of
the originals, so you can restore them in case of serious errors!
3. Adding new window manager selections to the drop−down list
3
Plik z chomika:
megaskrypty
Inne pliki z tego folderu:
3-Button-Mouse(1).pdf
(58 KB)
XWindow-Overview-HOWTO(1).pdf
(30 KB)
Xterm-Title(1).pdf
(39 KB)
Xterminals(1).pdf
(30 KB)
Xinerama-HOWTO(1).pdf
(33 KB)
Inne foldery tego chomika:
Programowanie
Zgłoś jeśli
naruszono regulamin