Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 7009

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<HTML
><HEAD
><TITLE
>Common Configurations</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
REL="HOME"
TITLE="XDM and X Terminal mini-HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Advanced Configuration Options"
HREF="xdm-advconfig.html"><LINK
REL="NEXT"
TITLE="Resources"
HREF="resources.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>XDM and X Terminal mini-HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="xdm-advconfig.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="resources.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="COMMON-CONFIGS">6. Common Configurations</H1
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="CFGS-LINUX">6.1. Linux to Linux</H2
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="CFGS-STDALONEX">6.1.1. Stand-alone X Workstation</H3
><P
>        This has already been mentioned several times in this document, but
        in summary, it is a PC running XDM, with a single entry in the Xservers
        file, relating to the localhost (i.e. the local machine).
      </P
><P
>        This is usually the default configuration provided by most distributions
        'out of the box'.
      </P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="CFGS-XTERMAPPS">6.1.2. X Terminal and Application Server</H3
><P
>        XDM runs on the application server:
        <P
></P
><UL
><LI
><P
>          Xserver: Contains no entries
          </P
></LI
><LI
><P
>          Xaccess: Must permit the X terminal to connect
          </P
></LI
></UL
>
      </P
><P
>        X terminal runs X using a direct query to the application server:
          <TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>          /usr/X11R6/bin/X -query the.application.server
          </PRE
></FONT
></TD
></TR
></TABLE
>
      </P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="CFGS-MNGEXTERM">6.1.3. Group of Managed X Terminals</H3
><P
>        XDM runs on an application server:
        <P
></P
><UL
><LI
><P
>          Xserver: Lists each X terminal to be managed
          </P
></LI
><LI
><P
>          Xaccess: Must permit each X terminal to connect
          </P
></LI
></UL
>
      </P
><P
>        Each X terminal, just runs X, with suitable access control to
        permit XDM to connect to it.
        <TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>          /usr/X11R6/bin/X -ac
        </PRE
></FONT
></TD
></TR
></TABLE
>
      </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="CFGS-TOOTHER">6.2. Linux to Other Systems</H2
><P
>    It is possible to use a Linux X terminal to connect to another
    system running XDM.  The same principles as above apply, but
    the specifics of configuring XDM (or its equivalent) will be
    specific to that system.
    </P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="CFGS-LINSOL">6.2.1. Linux and Solaris</H3
><P
>         You can run X on a Linux box, instructing it to query
         a Solaris machine as previously described:
         <TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>          /usr/X11R6/bin/X -query the.solaris.server
         </PRE
></FONT
></TD
></TR
></TABLE
>
      </P
><P
>         Note that you may have to configure X on the Linux
         machine to use the font server from the Solaris box.
         Although my Linux box connected and logged in fine without
         doing this, the fonts used by CDE were not displayed
         correctly.
      </P
><P
>         I have not got this to work yet, as I don't have a
         Solaris box that I have any control over - but I am
         told that a font entry in /etc/XF86config similar to
         the following should work - you may have to change the
         port number from 7200 to something else (7100 has been
         quoted at me before).  Can anyone confirm that this works?
         <TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>           FontPath "tcp/solaris.box:7200/all"
         </PRE
></FONT
></TD
></TR
></TABLE
>
      </P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="CFGS-LINWIN">6.2.2. Linux and Windows</H3
><P
>        It is not possible to use X to remotely display Windows applications
        on a Windows box.  It is possible to use X to display Windows versions
        of X applications on a Linux box, using a Windows X Server and Windows
        X applications (for example the XFree86 Win32 port -
        see <A
HREF="resources.html"
>Section 7</A
>)
      </P
><P
>        It is possible to view Windows applications remotely on a Linux box
        using one of the following applications (which don't rely on X or XDM):
        <P
></P
><UL
><LI
><P
>          Windows Terminal Services (WTS).  RDesktop is a Linux application that
          understands the 'RDP' protocol used by WTS.  This enables Linux to act
          as a client to WTS (see <A
HREF="resources.html"
>Section 7</A
>).
          </P
></LI
><LI
><P
>          Vitual Network Computing (VNC). This is an excellent platform independent
          remote desktop system that provides a bi-directional 'Windows or Linux' to
          'Windows or Linux' networked desktop.  It can be a bit slow, but works
          well (see <A
HREF="resources.html"
>Section 7</A
>).
          </P
><P
>          You can actually do quite strange things with VNC, such has having multiple
          machines connect and 'control' the desktop (and consequently 'fight' over
          control of the mouse :).  It also doesn't maintain any
          state in the client, so you can leave your client, shutdown, bootup again,
          reconnect and carry on from where you left off.  There is even a version
          of the viewer implemented as a Java applet, usable from any Java-enabled web
          browser.
          </P
></LI
></UL
>
      </P
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="CFGS-TOLINUX">6.3. Other Systems to Linux</H2
><P
>    If you have an X server for your system, it should be able to connect
    to a Linux XDM application server.
    </P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="CFGS-SOLLIN">6.3.1. Solaris and Linux</H3
><P
>         I assume that you would run XDM on the Linux box as usual, and
         instruct X on Solaris to query the Linux box - does anyone have
         any information on this?
      </P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="WINLIN">6.3.2. Windows and Linux</H3
><P
>         If you have an X server for windows that supports XDMCP queries, then
         it should be possible to configure it to query the Linux box.  You should
         just run XDM on the Linux box as usual.
      </P
><P
>         There are many commercial X Server implementations for Windows, and I will
         not list them all here.  There is also a port of XFree86 to Windows, that
         makes use of the cygwin libraries (used to port many GNU/Linux tools to
         Windows - see <A
HREF="resources.html"
>Section 7</A
>).  This works well.
      </P
><P
>         The following batch file would start the cygwin XFree86 X server on
         Windows and connect to a Linux box (or any OS/machine running XDM),
         assuming a default installation  of cygwin and XFree86 in c:\cygwin
         (save it as xdm.bat):
         <TABLE
BORDER="1"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="SCREEN"
>           @echo off
           if "%1"=="" goto noserver
           goto allok
           :noserver
           echo Usage: xdm servername
           goto end

           :allok
           set path=%PATH%;\cygwin\bin;\cygwin\usr\X11R6\bin
           c:
           chdir \cygwin\usr\X11R6\bin
           XWin -query %1

           :end
         </PRE
></FONT
></TD
></TR
></TABLE
>
      </P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="xdm-advconfig.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="resources.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Advanced Configuration Options</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Resources</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>