Runlevels And Xfree86 - Red Hat ENTERPRISE LINUX 3 Reference Manual

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

98
7.4.2.2. Adding Fonts to
To add fonts to the core X font subsystem (
1. If it does not already exist, create a directory called
following command as root:
mkdir /usr/share/fonts/local/
If creating the
path using the following command as root:
xfs
chkfontpath --add /usr/share/fonts/local/
2. Copy the new font file into the
3. Update the font information by issuing the following command as root:
ttmkfdir -d /usr/share/fonts/local/ -o /usr/share/fonts/local/fonts.scale
4. Reload the
xfs
service xfs reload

7.5. Runlevels and XFree86

In most cases, the default installation of Red Hat Enterprise Linux configures a machine to boot into
a graphical login environment, known as runlevel 5. It is possible, however, to boot into the text-only
multi-user mode called runlevel 3 and begin an X session from there.
For more information about runlevels, refer to Section 1.4 SysV Init Runlevels.
This section reviews how XFree86 starts up in both runlevel 3 and runlevel 5.
7.5.1. Runlevel 3
When in runlevel 3, the best way to start an X session is to log in and type
command is a front-end to the
clients applications to it. Because the user is already logged into the system at runlevel 3,
does not launch a display manager or authenticate users. Refer to Section 7.5.2 Runlevel 5 for more
information about display managers.
When the
command is executed, it searches for a
startx
to define the desktop environment and possibly other X client applications to run. If no
is present, it uses the system default
The default
xinitrc
,
.Xresources
.Xmodmap
and
in the
Xkbmap
/etc/X11/
the
utility to configure the keyboard. The
xmodmap
preference values to applications.
After setting these options, the
/etc/X11/xinit/xinitrc.d/
configures settings such as the default language.
Next, the
xinitrc
/etc/X11/xinit/Xclients
the desktop environment or, possibly, just a basic window manager. The
user's home directory starts the user-specified desktop environment in the
If
does not exist in the user's home directory, the standard
.Xclients
script attempts to start another desktop environment, trying GNOME first and then KDE followed by
.
twm
xfs
/usr/share/fonts/local/
/usr/share/fonts/local/
font server configuration file by issuing the following command as root:
command, which launches the XFree86 server and connects X
xinit
/etc/X11/xinit/xinitrc
script then looks for user-defined files and default system files, including
, and
.Xkbmap
directory. The
xinitrc
directory. One important script in this directory is
script tries to execute
if it cannot be found. The purpose of the
), follow these steps:
xfs
/usr/share/fonts/local/
directory is necessary, it must be added to the
.xinitrc
in the user's home directory, and
and
Xmodmap
Xkbmap
Xresources
script executes all scripts located in the
in the user's home directory and turns to
.Xclients
Chapter 7. The X Window System
directory
startx
file in the user's home directory
file instead.
Xresources
files, if they exist, are used by
file is read to assign specific
Xclients
.Xclients
.Xclients-default
/etc/X11/xinit/Xclients
using the
. The
startx
startx
file
.xinitrc
,
,
Xmodmap
, which
xinput
file is to start
script in the
file.

Advertisement

Table of Contents
loading

Table of Contents