<?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml"><head><title>Example Configurations</title><link rel="previous" href="solaris.xhtml" title="Solaris Specific Features"/><link rel="next" href="troubleshooting.xhtml" title="Troubleshooting"/><link rel="top" href="index.xhtml" title="Gnome Display Manager Reference Manual"/><style> div[class~="footnotes"] { font-style: italic; font-size: 0.8em; } div[class~="footnote"] { margin-top: 1.44em; } span[class~="footnote-number"] { display: inline; padding-right: 0.83em; } span[class~="footnote-number"] + p { display: inline; } a[class~="footnote"] { text-decoration: none; font-size: 0.8em; } a[class~="footnote-ref"] { text-decoration: none; } div[class~="caution"] { background-image: url("caution.png"); } div[class~="important"] { background-image: url("important.png"); } div[class~="note"] { background-image: url("note.png"); } div[class~="tip"] { background-image: url("tip.png"); } div[class~="warning"] { background-image: url("warning.png"); } div[class~="admonition"] { padding-top: 4px; padding-bottom: 4px; padding-left: 56px; padding-right: 8px; min-height: 52px; border: dotted #D1940C 1px; background-position: 4px 4px; background-repeat: no-repeat; } div[class~="autotoc"] { margin-left: 2em; padding: 0em; } div[class~="autotoc"] ul { margin-left: 0em; padding-left: 0em; } div[class~="autotoc"] ul li { margin-right: 0em; padding: 0em; list-style-type: none; } * + div[class~="biblioentry"] { margin-top: 1.2em; } * + div[class~="bibliomixed"] { margin-top: 1.2em; } *[class~="block-indent"] { margin-left: 1.72em; margin-right: 1em; } *[class~="block-indent"] *[class~="block-indent"] { margin-left: 0em; margin-right: 0em; } *[class~="block-verbatim"] { white-space: pre; } pre[class~="programlisting"] { padding: 6px; -moz-border-radius: 8px; overflow: auto;background-color: #EEEEEE;border: solid 1px #DDDDDD } pre[class~="screen"] { padding: 6px; -moz-border-radius: 8px; overflow: auto;background-color: #EEEEEE;border: solid 1px #DDDDDD } pre[class~="synopsis"] { overflow: auto; } pre[class~="linenumbering"] { padding-top: 6px; padding-bottom: 6px; -moz-border-radius: 8px; border: solid 1px black; margin-top: 0px; margin-left: 0.83em; background-color: black; color: white; -moz-opacity: .3; padding-right: 0.4em; padding-left: 0.4em; } dt[class~="glossterm"] { margin-left: 0em; } dd + dt[class~="glossterm"] { margin-top: 2em; } dd[class~="glossdef"] { margin-top: 1em; margin-left: 2em; margin-right: 1em; } dd[class~="glosssee"] { margin-top: 1em; margin-left: 2em; margin-right: 1em; } dd[class~="glossseealso"] { margin-top: 1em; margin-left: 2em; margin-right: 1em; } span[class~="co"] { font-size: 8px; padding-left: 0.4em; padding-right: 0.4em; margin-left: 0.2em; margin-right: 0.2em; border: solid 1px; -moz-border-radius: 8px; color: #FFFFFF; background-color: #000000; border-color: #000000; } span[class~="co"]:hover { color: #FFFFFF; background-color: #333333; border-color: #333333; } span[class~="co"] a { text-decoration: none; } span[class~="co"] a:hover { text-decoration: none; } div[class~="cmdsynopsis"] { font-family: monospace; } div[class~="list"] { margin-left: 0px; padding: 0px; margin-bottom: 1em; } div[class~="list"] dl dt { margin-left: 0em; } div[class~="list"] dl dd + dt { margin-top: 1em; } div[class~="list"] dl dd { margin-top: 0.69em; margin-left: 1.72em; margin-right: 1em; } div[class~="list"] ul { margin-left: 1.72em; padding-left: 0em; } div[class~="list"] ol { margin-left: 1.72em; padding-left: 0em; } div[class~="list"] ul li { margin-right: 1em; padding: 0em; } div[class~="list"] ol li { margin-right: 1em; padding: 0em; } div[class~="list"] li + li { margin-top: 0.69em; } div[class~="simplelist"] > table { border: none; } dt[class~="question"] { margin-left: 0em; } dt[class~="question"] div[class~="label"] { float: left; } dd + dt[class~="question"] { margin-top: 1em; } dd[class~="answer"] { margin-top: 1em; margin-left: 2em; margin-right: 1em; } dd[class~="answer"] div[class~="label"] { float: left; } div[class~="refentry"] h2[class~="refentry"] { border: none; margin-top: 1em; } div[class~="refentry"] + div[class~="refentry"] { border-top: dashed black 1px; } table { border-collapse: collapse; border: solid 1px; -moz-border-radius: 5px; } tr[class~="odd"] { background-color: #F0F0F0 } td { padding-left: 0.83em; padding-right: 0.83em; padding-top: 4px; padding-bottom: 4px; } th { padding-left: 0.8em; padding-right: 0.83em; } thead { border-top: solid 2px; border-bottom: solid 2px; } tfoot { border-top: solid 2px; border-bottom: solid 2px; } td + td { border-left: solid 1px; } tbody { border: solid 1px; -moz-border-radius: 5px; } h1 { font-size: 1.72em; margin-top: 0em; } h2 { font-size: 1.44em; } h2[class~="title"] { margin-top: 1.72em; border-bottom: solid 1px; } h3 { font-size: 1.2em; } h3[class~="title"] { margin-top: 1.72em; } h3 span[class~="title"] { border-bottom: solid 1px; } h4 { font-size: 1.0em; } h4[class~="title"] { margin-top: 1.44em; } h4 span[class~="title"] { border-bottom: solid 1px; } h5 { font-size: 1em; margin-top: 1em; } h6 { font-size: 1em; margin-top: 1em; } h7 { font-size: 1em; margin-top: 1em; } body { margin: 0px; direction: ltr; } div[class ~= "body"] { padding: 12px; } div[class ~= "navbar"] { margin-left: 12px; margin-right: 12px; margin-bottom: 12px; padding: 6px; border: solid 1px; } div[class ~= "navbar-prev"] { margin: 0px; padding: 0px; float: left; } div[class ~= "navbar-prev-sans-next"] { float: none; } div[class ~= "navbar-next"] { margin: 0px; padding: 0px; text-align: right; } div { margin-top: 0em; margin-bottom: 0em; padding-top: 0em; padding-bottom: 0em; } p { margin-top: 0em; margin-bottom: 0em; padding-top: 0em; padding-bottom: 0em; } div + * { margin-top: 1em; } p + * { margin-top: 1em; } p > div { margin-top: 1em; margin-bottom: 1em; } p > div + div { margin-top: 0em; } p { text-align: justify; } </style></head><body><div class="body"><div class="sect1"><a name="exampleconf"/><h1 class="sect1 title"><span class="title">Example Configurations</span></h1><p xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n" class="para"> This section has some example configurations that are useful for various setups. </p><div class="sect2"><a name="terminallab"/><h2 class="sect2 title"><span class="title"><span class="label">11.1. </span>Terminal Lab With One Server</span></h2><p xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n" class="para"> Suppose you want to make a lab full of X terminals that all connect to one server machine. So let's call one X terminal <span class="filename" style="font-family: monospace; ">xterminal</span> and let's call the server machine <span class="filename" style="font-family: monospace; ">appserver</span>. You install GDM on both. </p><p xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n" class="para"> On <span class="filename" style="font-family: monospace; ">appserver</span> you enable XDMCP, so you have <div class="screen block-indent"><pre class="screen">[xdmcp] Enable=true </pre></div> If you want no local screens here, you can then make the <span class="filename" style="font-family: monospace; ">[servers]</span> section empty. </p><p xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n" class="para"> On the <span class="filename" style="font-family: monospace; ">xterminal</span> you disable XDMCP (you don't want anyone to connect to the xterminal really). You will add a server type perhaps called <span class="filename" style="font-family: monospace; ">Terminal</span> as follows: <div class="screen block-indent"><pre class="screen">[server-Terminal] name=Terminal server command=/path/to/X -terminate flexible=false handled=false </pre></div> This definition should in fact be included in the standard configuration file. Notice that we made the <span class="filename" style="font-family: monospace; ">handled</span> key false since we don't want GDM to handle this server localy. Also note that we have not yet added the <span class="filename" style="font-family: monospace; ">-query</span> argument, you can add that here, or in the <span class="filename" style="font-family: monospace; ">[servers]</span> section. We'll define our local servers as follows: <div class="screen block-indent"><pre class="screen">[servers] 0=Terminal -query appserver </pre></div> This will run a direct XDMCP query to the server named <span class="filename" style="font-family: monospace; ">appserver</span>. </p></div><div class="sect2"><a name="terminallabtwo"/><h2 class="sect2 title"><span class="title"><span class="label">11.2. </span>Terminal Lab With Two Or More Servers</span></h2><p xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n" class="para"> Suppose you want to make a lab full of X terminals that all connect to some choice of servers. For now let's make it <span class="filename" style="font-family: monospace; ">appserverone</span> and <span class="filename" style="font-family: monospace; ">appservertwo</span>. Again we'll call our example X terminal server <span class="filename" style="font-family: monospace; ">xterminal</span>. The setup on both servers is the same as with the case of one server in the previous section. You do not need to explicitly enable indirect queries on the server since we'll run the choosers locally on the X terminals. </p><p xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n" class="para"> So on the <span class="filename" style="font-family: monospace; ">xterminal</span> you again disable XDMCP. You will add a server type perhaps called <span class="filename" style="font-family: monospace; ">Chooser</span> as follows: <div class="screen block-indent"><pre class="screen">[server-Chooser] name=Chooser server command=/path/to/X flexible=false chooser=true </pre></div> And again this definition should in fact be included in the standard configuration file. Notice that we made the <span class="filename" style="font-family: monospace; ">chooser</span> key true here. This will run the XDMCP chooser for this server, and when the user chooses a host GDM will run a query for that host. Then we will define our local servers as follows: <div class="screen block-indent"><pre class="screen">[servers] 0=Chooser </pre></div> </p><p xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n" class="para"> The XDMCP chooser on the X terminal will normally give a broadcast query to see which servers exist on the network. If the two servers are not reachable by a broadcast query, you must add them by hand to the configuration file. So in the <span class="filename" style="font-family: monospace; ">[chooser]</span> section you would have: <div class="screen block-indent"><pre class="screen">Hosts=appserverone,appservertwo </pre></div> and any other servers you wish the users to be able to connect to. </p><p xmlns:msg="http://www.gnome.org/~shaunm/gnome-doc-utils/l10n" class="para"> Sometimes you may want to run the chooser on the server side however. Then what you want to do is to run a configuration similar to the previous section about the one server configuration with XDMCP indirect queries enabled on <span class="filename" style="font-family: monospace; ">appserver</span> and on the X terminals you'd have <div class="screen block-indent"><pre class="screen">[servers] 0=Terminal -indirect appserver </pre></div> This way for example you only have to maintain one <span class="filename" style="font-family: monospace; ">Hosts</span> entry. However as a disadvantage then, the <span class="filename" style="font-family: monospace; ">appserver</span> must then always be available. So it's not good for situations where you want to have several servers and not all of them have to be on all the time. You could also have one of the X terminals handle indirect XDMCP queries and serve up the chooser to the other X terminals. </p></div></div></div><div class="navbar"><div class="navbar-prev"><span class="navbar-prev"><a class="navbar navbar-prev" href="solaris.xhtml" title="Solaris Specific Features">Solaris Specific Features</a></span></div><div class="navbar-next"><span class="navbar-next"><a class="navbar navbar-next" href="troubleshooting.xhtml" title="Troubleshooting">Troubleshooting</a></span></div></div></body></html>