%% $Header: /cvsroot/lcdp/lpic/general-linux-1/slides/gl1.110.2.slides.tex,v 1.2 2003/05/30 05:04:33 waratah Exp $ \input{gl1.slide-header.tex} \usepackage{epsfig} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %----10->|-----20->|-----30->|-----40->|-----50->|-----60->|-----70->|-----80-> \begin{slide} %================================================================ \begin{center} \LARGE \textsf{-- General Linux 2 -- \\ Setup a Display Manager} \\[2mm] \large \textsf{(Linux Professional Institute Certification)}\\[1mm] \normalsize\end{center} \footnote{Copyright \copyright\ 2002 Geoffrey Robertson. Permission is granted to make and distribute verbatim copies or modified versions of this document provided that this copyright notice and this permission notice are preserved on all copies under the terms of the GNU General Public License as published by the Free Software Foundation---either version 2 of the License or (at your option) any later version.} \scriptsize \begin{verbatim} .~. Prepared by Andrew Eager /V\ // \\ geoffrey robertson @._.@ geoffrey@zip.com.au \end{verbatim} \tiny \begin{verbatim} $Id: gl1.110.2.slides.tex,v 1.2 2003/05/30 05:04:33 waratah Exp $ \end{verbatim} \normalsize \vfill \end{slide} %----------------------------------------------------------- %----10->|-----20->|-----30->|-----40->|-----50->|-----60->|-----70->|-----80-> %============================================================================== %\begin{slide}{} %ghr %\Slidecontents %\vfill \end{slide} %---------------------------------------------------------- %============================================================================== %============================================================================== \begin{slide} %ghr \slideheading{} \slidesubheading{} \begin{description} \item[1.110.1] Install \& Configure XFree86 \item[1.110.2] {\bf \underline{Setup a Display Manager}} \item[1.110.4] Install \& Customise a Window Manager Environment \end{description} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== %============================================================================== \begin{slide} %ghr \Slideheading{Setup a Display Manager} \slidesubheading{Objective} Candidate should be able setup and customise a Display manager. This objective includes turning the display manager on or off and changing the display manager greeting. This objective includes changing default bitplanes for the display manager. It also includes configuring display managers for use by X-stations. This objective covers the display managers XDM (X Display Manger), GDM (Gnome Display Manager) and KDM (KDE Display Manager). \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide} %ghr \Slideheading{Setup a Display Manager} \slidesubheading{Key files, terms, and utilities} \begin{alltt} /etc/inittab /etc/X11/xdm/* /etc/X11/kdm/* /etc/X11/gdm/* \end{alltt} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide} %ghr \Slideheading{Setup a Display Manager} \slidesubheading{Resources of interest} \begin{description} \item[]: \begin{alltt} \end{alltt} \item[]: \end{description} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{Display Managers} \begin{itemize} \item Manages connection to local or remote X sessions \item Similar function to getty \& login \item Different types are: \begin{itemize} \item KDM - KDE Display Manager \item GDM - Gnome Display Manager \item XDM - X Display Manager (base X system) \end{itemize} \end{itemize} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{Life Cycle of a DM} \begin{itemize} \item When a display manager is started, it: \begin{itemize} \item Starts up X servers on each display configured \item Displays a GUI login window \item Authenticates user / password \item Starts selected X-session (KDE, Gnome, Xterm..) \end{itemize} \item When the X-session ends it: \begin{itemize} \item Resets the X server \item Repeats the process above (optional) \end{itemize} \end{itemize} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{Local \& Remote X sessions} \begin{itemize} \item A user logging in through XDM can: \begin{itemize} \item Log into their local system \item Log into another system running XDM \end{itemize} \item For remote logins, XDMCP (X Display Manager Control Protocol) is used \item A remote X login can be established to: \begin{itemize} \item A specific host \item Any available host (broadcast) \item A host chosen from a list \end{itemize} \end{itemize} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{Direct Remote X login - Client Side} \begin{itemize} \item To log into a specific host: \cmd{X [display] -query } Example: \cmd{X :1 -query node10.c222} This will startup an X server on the second display of your local machine. The X session established will run on the host node10.c222 \item This assumes that node10.c222 has allowed access to the client in its xdm-config. \end{itemize} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{Broadcast Remote X login - Client Side} \begin{itemize} \item To log into any host running xdm: \cmd{X [display] -broadcast} Example: \cmd{X :1 -broadcast} This will startup an X server on the second display of your local machine. The X session established will run on any host that responds to the broadcast request. \item This assumes that xdm on the server machines have been configured to listen to broadcast requests. \end{itemize} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{Chooser Remote X login - Client Side} \begin{itemize} \item To log into a host by selecting it from a chooser list: \cmd{X [display] -indirect } Example: \cmd{X :1 -indirect foozle.c222} This will startup an X server on the second display of your local machine. A list of hosts available for logon will be generated by foozle.c222. An X session will then be established on the host selected from the list. \item This assumes that xdm on foozle.c222 has been configured to provide clients with a chooser \end{itemize} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{Configuring XDM} \begin{itemize} \item XDM has its configuration files in \texttt{/etc/X11/xdm} \item \texttt{xdm-config} controls xdm functionality \item \texttt{Xaccess} controls which clients can access XDM \item man xdm gives full documentation to both files \end{itemize} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{Configuring Xaccess} \begin{itemize} \item Xaccess has 4 different syntaxes: \begin{itemize} \item \texttt{pattern} - Controls direct \& broadcast access \item \texttt{pattern } - Forwarding of indirect access \item \texttt{pattern CHOOSER BROADCAST} - To use a chooser \item \texttt{pattern CHOOSER } - To use a chooser with a specific list \end{itemize} \end{itemize} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{Xaccess - Direct \& Broadcast} \begin{itemize} \item To control direct and broadcast access to XDM simply specify a list of hosts that are allowed to connect: Example \texttt{/etc/X11/xdm/Xaccess}: \begin{alltt} !badguy.c222 *.c222 \end{alltt} This says allow all hosts in the c222 domain except for the host badguy.c222 to connect to XDM. \end{itemize} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{Xaccess - Providing a chooser} \begin{itemize} \item To have XDM provide a predefined list of available hosts for all indirect requests: Example \texttt{/etc/X11/xdm/Xaccess}: \begin{alltt} admin.c222 CHOOSER BROADCAST *.c222 CHOOSER node1.c222 node2.c222 \end{alltt} This says that admin.c222 will get a list of hosts discovered on the network by using a broadcast to choose from. Anyone else in the c222 domain will get a list with only node1 and node2 in the list. \end{itemize} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \begin{slide}{} %Andrew Eager \slideheading{xdm-config - Enabling chooser requests} \begin{itemize} \item In order to use the chooser, the following line needs to be removed from \texttt{/etc/X11/xdm/xdm-config}: \begin{small} \begin{alltt} ! SECURITY: do not listen for XDMCP or Chooser requests ! Comment out this line if you want to manage X terminals with xdm DisplayManager.requestPort: 0 \end{alltt} \end{small} \item Note that a comment in this file starts with a '!'. \end{itemize} \vfill \end{slide} %----------------------------------------------------------- %============================================================================== \end{document}%================================================================ %==============================================================================