332 lines
5.3 KiB
HTML
332 lines
5.3 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Using the X Desktop Manager</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.63
|
|
"><LINK
|
|
REL="HOME"
|
|
TITLE="Linux Administration Made Easy"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Configuring the X Window System"
|
|
HREF="xwindows-configuration.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Getting the X Window System Working with X-Configurator"
|
|
HREF="xwindows-xconfigurator.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Improving Font Appearance Under X"
|
|
HREF="xwindows-fonts.html"></HEAD
|
|
><BODY
|
|
CLASS="SECT1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Linux Administration Made Easy</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="xwindows-xconfigurator.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 5. Configuring the X Window System</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="xwindows-fonts.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="XWINDOWS-XDM"
|
|
>5.2. Using the X Desktop Manager</A
|
|
></H1
|
|
><P
|
|
>If you wish, you may use the X Desktop Manager
|
|
(``<TT
|
|
CLASS="LITERAL"
|
|
>xdm</TT
|
|
>'') to start up the X Window System automatically
|
|
at system boot time. This allows your Linux system to always run under X
|
|
(although you can switch from the GUI to the regular consoles with
|
|
<TT
|
|
CLASS="LITERAL"
|
|
><<B
|
|
CLASS="KEYCAP"
|
|
>Ctrl</B
|
|
>>-<<B
|
|
CLASS="KEYCAP"
|
|
>Alt</B
|
|
>>-<<B
|
|
CLASS="KEYCAP"
|
|
>F1</B
|
|
>></TT
|
|
>,
|
|
and then back again to the GUI with
|
|
<TT
|
|
CLASS="LITERAL"
|
|
><<B
|
|
CLASS="KEYCAP"
|
|
>Alt</B
|
|
>>-<<B
|
|
CLASS="KEYCAP"
|
|
>F7</B
|
|
>></TT
|
|
>
|
|
as needed). This is a nice way of providing an attractive and friendly
|
|
environment for you and your users, and avoid having to type
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
>startx</TT
|
|
>'' all the time.</P
|
|
><P
|
|
>To enable xdm, simply edit the
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>/etc/inittab</TT
|
|
></TT
|
|
>'' file and change
|
|
the line that reads <SPAN
|
|
CLASS="QUOTE"
|
|
>"<TT
|
|
CLASS="LITERAL"
|
|
>id:3:initdefault:</TT
|
|
>"</SPAN
|
|
>
|
|
to the following:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
>id:5:initdefault:</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>The above change will switch Linux to run level 5 upon system boot
|
|
up; this run level, by default, will start xdm. You may also wish to
|
|
check your ``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>/etc/inittab</TT
|
|
></TT
|
|
>'' file,
|
|
probably near the bottom, to ensure the following line is present:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
>x:5:respawn:/usr/bin/X11/xdm -nodaemon</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>If you have enabled xdm and wish to use a higher ``bpp'' value than
|
|
the default of 8 (and your video card and monitor will support it), you
|
|
will need to modify the
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>/etc/X11/xdm/Xservers</TT
|
|
></TT
|
|
>'' file as
|
|
follows:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
>:0 local /usr/X11R6/bin/X -bpp 24</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>The above change will start the xdm at 24 bits per pixel.</P
|
|
><P
|
|
>You may also wish to edit the
|
|
``<TT
|
|
CLASS="LITERAL"
|
|
><TT
|
|
CLASS="FILENAME"
|
|
>/etc/X11/xdm/Xsetup_0</TT
|
|
></TT
|
|
>'' file
|
|
and with a ``<TT
|
|
CLASS="LITERAL"
|
|
>#</TT
|
|
>'' character, comment out the line that
|
|
starts ``<TT
|
|
CLASS="LITERAL"
|
|
>xbanner</TT
|
|
>'' as shown:</P
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
>#/usr/X11R6/bin/xbanner</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>This will prevent the default xdm banner screen from displaying for a
|
|
split second between KDE sessions. Aesthestics, I know, but...</P
|
|
><DIV
|
|
CLASS="TIP"
|
|
><BLOCKQUOTE
|
|
CLASS="TIP"
|
|
><P
|
|
><B
|
|
>Tip: </B
|
|
>Tip: Sometimes you may find it necessary to switch back to the
|
|
console (for example, certain games run under the console but not under
|
|
X). There are two ways of doing this. To temporarily switch away from X
|
|
to the console, press
|
|
<TT
|
|
CLASS="LITERAL"
|
|
><<B
|
|
CLASS="KEYCAP"
|
|
>Alt</B
|
|
>><<B
|
|
CLASS="KEYCAP"
|
|
>F1</B
|
|
>></TT
|
|
>,
|
|
and to switch back to X again, press
|
|
<TT
|
|
CLASS="LITERAL"
|
|
><<B
|
|
CLASS="KEYCAP"
|
|
>Alt</B
|
|
>><<B
|
|
CLASS="KEYCAP"
|
|
>F7</B
|
|
>></TT
|
|
>.
|
|
Or, if you wish to terminate X altogether (thus freeing up your available
|
|
memory), you can type ``<TT
|
|
CLASS="LITERAL"
|
|
>/sbin/telinit 3</TT
|
|
>'' as
|
|
<SPAN
|
|
CLASS="QUOTE"
|
|
>"root"</SPAN
|
|
> to switch the system run-level; this tells XDM to
|
|
terminate. To switch back, type ``<TT
|
|
CLASS="LITERAL"
|
|
>/sbin/telinit
|
|
5</TT
|
|
>''.</P
|
|
></BLOCKQUOTE
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="xwindows-xconfigurator.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="xwindows-fonts.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Getting the X Window System Working with X-Configurator</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="xwindows-configuration.html"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Improving Font Appearance Under X</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |