<div dir="ltr"><div><div><div>That looks correct.<br><br></div>The log is a bit confusing, the LightDM daemon is starting a "display server" but in fact it's just creating the object for the remote display server. The daemon is then trying to connect to that X server and failing which is why it stops.<br>
<br></div>This is basically the equivalent of running something like:<br>$ DISPLAY=desktop/unix:6 glxinfo<br><br></div>So check if that works.<br><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 15 November 2013 06:29, Shahim Essaid <span dir="ltr"><<a href="mailto:shahim@essaid.com" target="_blank">shahim@essaid.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Robert,<br>
<br>
I tried the configuration you suggested but there must be something<br>
else I am missing.<br>
<br>
I'm trying this in Ubuntu 13.10 64 bit with LightDM 1.8.4. My host<br>
name is "desktop". I have the socket as /tmp/.X11-unix/X6 and if I<br>
do:<br>
<br>
export DISPLAY=:6<br>
xterm<br>
<br>
I get the xterm window on the display. I have access control disabled<br>
in X for now.<br>
<br>
I started with the LightDM configuration you suggested and then added<br>
few more lines to make the server name look right in the logs. Here is<br>
my configuration and the error in the log:<br>
<br>
<br>
[LightDM]<br>
start-default-seat=false<br>
minimum-display-number=6<br>
minimum-vt=6<br>
<br>
[Seat:6]<br>
type=xremote<br>
xserver-display-number=6<br>
xserver-share = true # I had the same error without this line and the next one<br>
xserver-hostname = desktop/unix # without this the display name would<br>
be localhost:6<br>
<br>
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log<br>
[+0.00s] DEBUG: Starting Light Display Manager 1.8.4, UID=0 PID=984<br>
[+0.00s] DEBUG: Loading configuration from<br>
/etc/lightdm/lightdm.conf.d/10-ubuntu.conf<br>
[+0.00s] DEBUG: Loading configuration from<br>
/etc/lightdm/lightdm.conf.d/50-greeter-wrapper.conf<br>
[+0.00s] DEBUG: Loading configuration from<br>
/etc/lightdm/lightdm.conf.d/50-guest-wrapper.conf<br>
[+0.00s] DEBUG: Loading configuration from<br>
/etc/lightdm/lightdm.conf.d/50-unity-greeter.conf<br>
[+0.00s] DEBUG: Loading configuration from<br>
/etc/lightdm/lightdm.conf.d/50-xserver-command.conf<br>
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf<br>
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager<br>
[+0.00s] DEBUG: Using Xephyr for X servers<br>
[+0.00s] DEBUG: Registered seat module xlocal<br>
[+0.00s] DEBUG: Registered seat module xremote<br>
[+0.00s] DEBUG: Registered seat module unity<br>
[+0.00s] DEBUG: Registered seat module surfaceflinger<br>
[+0.00s] DEBUG: Loading seat Seat:6<br>
[+0.00s] DEBUG: Seat 6: Starting<br>
[+0.00s] DEBUG: Seat 6: Creating greeter session<br>
[+0.00s] DEBUG: Seat 6: Setting XDG_SEAT=seat0<br>
[+0.00s] DEBUG: Seat 6: Creating display server of type x<br>
[+0.00s] DEBUG: Seat 6: Starting remote X display desktop/unix:6<br>
[+0.00s] DEBUG: DisplayServer x-desktop/unix-6: Connecting to XServer<br>
desktop/unix:6<br>
[+0.00s] DEBUG: DisplayServer x-desktop/unix-6: Error connecting to<br>
XServer desktop/unix:6<br>
[+0.00s] DEBUG: Seat 6: Can't create display server for greeter<br>
[+0.00s] DEBUG: Seat 6: Session stopped<br>
[+0.00s] DEBUG: Seat 6: Stopping; failed to start a greeter<br>
[+0.00s] DEBUG: Seat 6: Stopping<br>
[+0.00s] DEBUG: Seat 6: Stopping display server<br>
[+0.00s] DEBUG: Seat 6: Display server stopped<br>
[+0.00s] DEBUG: Seat 6: Stopped<br>
[+0.01s] DEBUG: Acquired bus name org.freedesktop.DisplayManager<br>
<br>
<br>
>From the log it looks like LightDM is trying to start a new display.<br>
Any thoughts about what I am doing wrong?<br>
<br>
Thanks,<br>
<div class="im HOEnZb">Shahim<br>
<br>
<br>
On Wed, Nov 13, 2013 at 8:17 PM, Robert Ancell <<a href="mailto:robert.ancell@gmail.com">robert.ancell@gmail.com</a>> wrote:<br>
</div><div class="HOEnZb"><div class="h5">> Hi Shahim,<br>
><br>
> You should be able to configure LightDM to use an existing X server using<br>
> the following configuration:<br>
><br>
> [SeatDefaults]<br>
> type=xremote<br>
> xserver-display-number=0<br>
><br>
> i.e. if you already have an X server running on :0<br>
><br>
> --Robert<br>
><br>
><br>
> On 14 November 2013 11:56, Shahim Essaid <<a href="mailto:shahim@essaid.com">shahim@essaid.com</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> I'm setting up an LXC container for Ubuntu 13.10 where the X server is<br>
>> started in the host on vt6. The unix socket and authority file are<br>
>> then mounted in the LXC container. I can start X sessions and<br>
>> applications from the container but I can't get LightDM to use this<br>
>> server.<br>
>><br>
>> I would really like to have the container's LightDM/Ubuntu greeter to<br>
>> automatically start on this display when the container is started to<br>
>> allow a graphical login. I'm aware of other options (XDMCP, vnc, etc.)<br>
>> but I'm trying to do it directly through the mounted unix domain<br>
>> socket. I've been trying to configure X to be started and managed by<br>
>> LightDM in the container but haven't been able to do that so far.<br>
>><br>
>> Is this possible?<br>
>><br>
>> Thank you,<br>
>> Shahim<br>
>> _______________________________________________<br>
>> LightDM mailing list<br>
>> <a href="mailto:LightDM@lists.freedesktop.org">LightDM@lists.freedesktop.org</a><br>
>> <a href="http://lists.freedesktop.org/mailman/listinfo/lightdm" target="_blank">http://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>