<blog:entry xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:blog="http://www.adamretter.org.uk/blog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.adamretter.org.uk/blog http://www.adamretter.org.uk/blog/entry.xsd" status="published" id="318b3704-2bc9-4447-b53b-e33753ef5f49">
    <blog:article timestamp="2011-07-23T17:02:00.000+02:00" author="Adam Retter" last-updated="2011-07-23T17:02:00.000+02:00">
        <blog:title>Connecting to OpenIndiana by XDMCP</blog:title>
        <blog:sub-title>Enabling XDMCP in OpenIndiana</blog:sub-title>
        <blog:article-content>
            <xh:p>I have a small NAS which I have built which run's OpenIndiana oi_151 and I wanted to be able to headlessly administer it, whilst I have SSH and thats all I really need, sometimes its nice to use a remote desktop environment.</xh:p>
            <xh:p>
                <xh:a href="http://en.wikipedia.org/wiki/X_display_manager_(program_type)#X_Display_Manager_Control_Protocol" title="XDMCP article on Wikipedia">XDMCP</xh:a> is a fundamental part of the X Window System, and one feature it offers is the ability to export your display across a network.</xh:p>
            <xh:p>To enable XDMCP on OpenIndiana simply modify the XDMCP section in the file /etc/gdm/custom.conf so that it looks something like this -</xh:p>
            <xh:pre>
# GDM configuration storage

[daemon]

[security]

[xdmcp]
Enable=true

[greeter]

[chooser]

[debug]
                
            </xh:pre>
            <xh:p>Now you just need to restart the GDM service -</xh:p>
            <xh:pre>
$ sudo svcadm restart gdm                
            </xh:pre>
            <xh:p>Thats all there is to it!</xh:p>
            <blog:mini-title>Testing the XDMCP Connection</blog:mini-title>
            <xh:p>To connect to the XDMCP server, you need an X Server for your client machine, for Windows you can use <xh:a href="http://www.straightrunning.com/XmingNotes/">Xming</xh:a>, or if you are on a Linux/Unix like platform you could use <xh:a href="http://www.freedesktop.org/wiki/Software/Xephyr" title="Xephyr website">Xephyr</xh:a>, <xh:a href="http://en.wikipedia.org/wiki/Xvfb" title="Xvfb Wikipedia page">Xvfb</xh:a>, <xh:a href="http://en.wikipedia.org/wiki/Xnest" title="Xnest Wikipedia page">Xnest</xh:a> or similar. Personally im on MacOSX and Xephyr works very well for me - </xh:p>
            <xh:pre>
$ Xephyr -query mnemosyne                
            </xh:pre>
            <xh:p>
                <xh:a href="blog/images/MacOSX-Xephyr.png" title="click for full-size image">
                    <xh:img class="left" src="blog/images/MacOSX-Xephyr.png" width="400" alt="Screenshot of MacOSX Xephyr connected to OpenIndiana"/>
                </xh:a>
            </xh:p>
        </blog:article-content>
    </blog:article>
    <blog:tags>
        <blog:tag>OpenIndiana</blog:tag>
        <blog:tag>XDMCP</blog:tag>
        <blog:tag>Mac</blog:tag>
        <blog:tag>OSX</blog:tag>
        <blog:tag>Xephyr</blog:tag>
        <blog:tag>Solaris</blog:tag>
    </blog:tags>
</blog:entry>