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><br></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't start VNC server, Xvn is not in the path</div>
<div><br></div><div>in fact I used x11vnc and I
didn't have any Xvnc
installed.</div><div><br></div><div>So you were
all correct, but I still didn't manage
:(</div><div><br></div><div>I tried
installing=A0tightvncserver but I got access to a new session, but instead
I'm looking to enable desktop sharing. I tried for a good hour to find
how to share the main desktop 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: "no password configured for vnc auth"
but also I wasn't capable to debug this either. It has probably to do
with pam, but I didn't manage to debug the issue:</div>
<div><br></div><div><div>lightdm.log:[+0.90s]
DEBUG: pam_start("lightdm-autologin",
"lightdm") -> (0x8bef588,
0)</div><div>lightdm.log:[+0.90s] DEBUG: pam_authenticate(0x8bef588,
0) -> 0 (Success)</div>
<div>lightdm.log:[+0.90s] DEBUG: pam_acct_mgmt(0x8bef588, 0) -> 0
(Success)</div><div>lightdm.log:[+0.91s] DEBUG:
pam_set_item(0x8bef588, 3, ":0") -> 0
(Success)</div><div>lightdm.log:[+0.92s] DEBUG:
pam_open_session(0x8bef588, 0) -> 0 (Success)</div>
<div>lightdm.log:[+0.95s] DEBUG: pam_setcred(0x8bef588,
PAM_ESTABLISH_CRED) -> 0
(Success)</div><div>lightdm.log:[+1.50s] DEBUG:
pam_start("lightdm", "alfonso") ->
(0x8c06588, 0)</div></div><div>
<br></div><div>I see Xvnc is started as=A0/usr/bin/Xvnc :6
-auth /var/run/lightdm/root/:6 -inetd -nolisten tcp but I don't see
the=A0-rfbauth to point to the password file. Is there a chance to manually add
such option?</div>
<div><br></div><div>If I run for example "Xvnc
:0 -rfbauth /etc/x11vnc.pass" directly at prompt I can authenticate but
still I don'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
since x11vnc doesn't have options for running with inetd, it
didn't work.</div>
<div><br></div><div>Incidentally, at least in Ubuntu
11.10, /var/log/lightdm has permissions=A0drwxr-xr-x but=A0lightdm=A0tries to
create log files there 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 file /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"http://grumpymole.blogspot.com/2006/12/xubuntu-remote-desktop-with-vnc4server.html?showComment=3D1167878940000#c1198657880206490449">http://grumpymole.blogspot.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><div><br></div><div>This is what
I'm trying to achieve. Any chance=A0lightdm 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"gmail_quote">On Wed, Oct 19, 2011 at 12:11 AM, Robert
Ancell <span dir=3D"ltr"><<a
href=3D"mailto:robert.ancell at gmail.com">robert.ancell at
gmail.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">There are multiple
Xvnc servers available on Ubuntu, the<br>
tightvncserver package contains one.<br>
<div><div></div><div class=3D"h5"><br>
On 19 October 2011 09:08, Guido Berhoerster <<a
href=3D"mailto:gber at opensuse.org">gber at
opensuse.org</a>> wrote:<br>
> * Alfonso Fiore <<a href=3D"mailto:alfonso.fiore at
gmail.com">alfonso.fiore at gmail.com</a>> [2011-10-18
23:44]:<br>
>> Hello Guido,<br>
>><br>
>> thank you so much. It sounds great.<br>
>><br>
>> Now my /etc/lightdm/lightdm.conf looks like:<br>
>><br>
>> [SeatDefaults]<br>
>> greeter-session=3Dunity-greeter<br>
>> user-session=3Dubuntu<br>
>><br>
>> [VNCServer]<br>
>> enabled=3Dtrue<br>
>> port=3D5900<br>
>><br>
>> but after restarting lightdm (sudo restart lightdm) the port is
not open:<br>
>><br>
>> dude at box:~$ netstat -ln | grep 5900<br>
>> dude at box:~$<br>
>><br>
>> I also tried to reboot, but the result is the same.<br>
>><br>
>> do you have any suggestion? maybe some missing
package?<br>
><br>
> Do you have Xvnc installed? I don't know what package
it's in<br>
> since I don't use Ubuntu.<br>
> --<br>
> Guido Berhoerster<br>
</div></div><div><div></div><div
class=3D"h5">>
_______________________________________________<br>
> LightDM mailing list<br>
> <a href=3D"mailto:LightDM at
lists.freedesktop.org">LightDM at
lists.freedesktop.org</a><br>
> <a
href=3D"http://lists.freedesktop.org/mailman/listinfo/lightdm"
target=3D"_blank">http://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
><br>
</div></div></blockquote></div><br></div>
--bcaec520f7c58ee72f04af9b0e96--