No subject


Tue Oct 18 16:26:52 PDT 2011


I gather that only x11vnc can share the desktop (is it true?)

This is what I'm trying to achieve. Any chance lightdm can support x11vnc as
well?

Thank you.

Good night,
alfonso

On Wed, Oct 19, 2011 at 12:11 AM, Robert Ancell <robert.ancell at gmail.com>wrote:

> There are multiple Xvnc servers available on Ubuntu, the
> tightvncserver package contains one.
>
> On 19 October 2011 09:08, Guido Berhoerster <gber at opensuse.org> wrote:
> > * Alfonso Fiore <alfonso.fiore at gmail.com> [2011-10-18 23:44]:
> >> Hello Guido,
> >>
> >> thank you so much. It sounds great.
> >>
> >> Now my /etc/lightdm/lightdm.conf looks like:
> >>
> >> [SeatDefaults]
> >> greeter-session=unity-greeter
> >> user-session=ubuntu
> >>
> >> [VNCServer]
> >> enabled=true
> >> port=5900
> >>
> >> but after restarting lightdm (sudo restart lightdm) the port is not
> open:
> >>
> >> dude at box:~$ netstat -ln | grep 5900
> >> dude at box:~$
> >>
> >> I also tried to reboot, but the result is the same.
> >>
> >> do you have any suggestion? maybe some missing package?
> >
> > Do you have Xvnc installed? I don't know what package it's in
> > since I don't use Ubuntu.
> > --
> > Guido Berhoerster
> > _______________________________________________
> > LightDM mailing list
> > LightDM at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/lightdm
> >
>

--bcaec520f7c58ee72f04af9b0e96
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div><br></div>Hi Robert, Guido,<div><br></div><div>thank you.</div><div><b=
r></div><div>Indeed the log file was a smart idea ;-)</div><div><br></div><=
div>I found quite a telling line there:</div><div>[+0.01s] WARNING: Can&#39=
;t start VNC server, Xvn is not in the path</div>

<div><br></div><div>in fact I used x11vnc and I didn&#39;t have any Xvnc in=
stalled.</div><div><br></div><div>So you were all correct, but I still didn=
&#39;t manage :(</div><div><br></div><div>I tried installing=A0tightvncserv=
er but I got access to a new session, but instead I&#39;m looking to enable=
 desktop sharing. I tried for a good hour to find how to share the main des=
ktop with=A0tightvnc and then I gave up.</div>

<div><br></div><div>So I tried also installing=A0vnc4server which has some =
problem regarding authentication. I get an error in my client: &quot;no pas=
sword configured for vnc auth&quot; but also I wasn&#39;t capable to debug =
this either. It has probably to do with pam, but I didn&#39;t manage to deb=
ug the issue:</div>

<div><br></div><div><div>lightdm.log:[+0.90s] DEBUG: pam_start(&quot;lightd=
m-autologin&quot;, &quot;lightdm&quot;) -&gt; (0x8bef588, 0)</div><div>ligh=
tdm.log:[+0.90s] DEBUG: pam_authenticate(0x8bef588, 0) -&gt; 0 (Success)</d=
iv>

<div>lightdm.log:[+0.90s] DEBUG: pam_acct_mgmt(0x8bef588, 0) -&gt; 0 (Succe=
ss)</div><div>lightdm.log:[+0.91s] DEBUG: pam_set_item(0x8bef588, 3, &quot;=
:0&quot;) -&gt; 0 (Success)</div><div>lightdm.log:[+0.92s] DEBUG: pam_open_=
session(0x8bef588, 0) -&gt; 0 (Success)</div>

<div>lightdm.log:[+0.95s] DEBUG: pam_setcred(0x8bef588, PAM_ESTABLISH_CRED)=
 -&gt; 0 (Success)</div><div>lightdm.log:[+1.50s] DEBUG: pam_start(&quot;li=
ghtdm&quot;, &quot;alfonso&quot;) -&gt; (0x8c06588, 0)</div></div><div>

<br></div><div>I see Xvnc is started as=A0/usr/bin/Xvnc :6 -auth /var/run/l=
ightdm/root/:6 -inetd -nolisten tcp but I don&#39;t see the=A0-rfbauth to p=
oint to the password file. Is there a chance to manually add such option?</=
div>

<div><br></div><div>If I run for example &quot;Xvnc :0 -rfbauth /etc/x11vnc=
.pass&quot; directly at prompt I can authenticate but still I don&#39;t get=
 to share the main desktop.</div><div><br></div><div>I also tried to create=
 a symbolic link from x11vnc to Xvnc since I know x11vnc works fine, but si=
nce x11vnc doesn&#39;t have options for running with inetd, it didn&#39;t w=
ork.</div>

<div><br></div><div>Incidentally, at least in Ubuntu 11.10, /var/log/lightd=
m has permissions=A0drwxr-xr-x but=A0lightdm=A0tries to create log files th=
ere with user=A0lightdm and fails. So I had to change permissions to 777.</=
div>

<div><br></div><div>e.g.</div><div>[+246.83s] WARNING: Failed to open log f=
ile /var/log/lightdm/xvnc-6-greeter.log: Permission denied</div><div><br></=
div><div>Actually, kind of bad news...</div><div>From here:=A0<a href=3D"ht=
tp://grumpymole.blogspot.com/2006/12/xubuntu-remote-desktop-with-vnc4server=
.html?showComment=3D1167878940000#c1198657880206490449">http://grumpymole.b=
logspot.com/2006/12/xubuntu-remote-desktop-with-vnc4server.html?showComment=
=3D1167878940000#c1198657880206490449</a></div>

<div>I gather that only x11vnc can share the desktop (is it true?)</div><di=
v><br></div><div>This is what I&#39;m trying to achieve. Any chance=A0light=
dm can support x11vnc as well?</div><div><br></div><div>Thank you.</div>
<div>
<br></div><div>Good night,</div><div>alfonso</div><div><br><div class=3D"gm=
ail_quote">On Wed, Oct 19, 2011 at 12:11 AM, Robert Ancell <span dir=3D"ltr=
">&lt;<a href=3D"mailto:robert.ancell at gmail.com">robert.ancell at gmail.com</a=
>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">There are multiple Xvnc servers available o=
n Ubuntu, the<br>
tightvncserver package contains one.<br>
<div><div></div><div class=3D"h5"><br>
On 19 October 2011 09:08, Guido Berhoerster &lt;<a href=3D"mailto:gber at open=
suse.org">gber at opensuse.org</a>&gt; wrote:<br>
&gt; * Alfonso Fiore &lt;<a href=3D"mailto:alfonso.fiore at gmail.com">alfonso=
.fiore at gmail.com</a>&gt; [2011-10-18 23:44]:<br>
&gt;&gt; Hello Guido,<br>
&gt;&gt;<br>
&gt;&gt; thank you so much. It sounds great.<br>
&gt;&gt;<br>
&gt;&gt; Now my /etc/lightdm/lightdm.conf looks like:<br>
&gt;&gt;<br>
&gt;&gt; [SeatDefaults]<br>
&gt;&gt; greeter-session=3Dunity-greeter<br>
&gt;&gt; user-session=3Dubuntu<br>
&gt;&gt;<br>
&gt;&gt; [VNCServer]<br>
&gt;&gt; enabled=3Dtrue<br>
&gt;&gt; port=3D5900<br>
&gt;&gt;<br>
&gt;&gt; but after restarting lightdm (sudo restart lightdm) the port is no=
t open:<br>
&gt;&gt;<br>
&gt;&gt; dude at box:~$ netstat -ln | grep 5900<br>
&gt;&gt; dude at box:~$<br>
&gt;&gt;<br>
&gt;&gt; I also tried to reboot, but the result is the same.<br>
&gt;&gt;<br>
&gt;&gt; do you have any suggestion? maybe some missing package?<br>
&gt;<br>
&gt; Do you have Xvnc installed? I don&#39;t know what package it&#39;s in<=
br>
&gt; since I don&#39;t use Ubuntu.<br>
&gt; --<br>
&gt; Guido Berhoerster<br>
</div></div><div><div></div><div class=3D"h5">&gt; ________________________=
_______________________<br>
&gt; LightDM mailing list<br>
&gt; <a href=3D"mailto:LightDM at lists.freedesktop.org">LightDM at lists.freedes=
ktop.org</a><br>
&gt; <a href=3D"http://lists.freedesktop.org/mailman/listinfo/lightdm" targ=
et=3D"_blank">http://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
&gt;<br>
</div></div></blockquote></div><br></div>

--bcaec520f7c58ee72f04af9b0e96--


More information about the LightDM mailing list