Issues with "vnc" server module and X console mirroring

133 views
Skip to first unread message

pprind...@gmail.com

unread,
Dec 28, 2016, 6:41:57 PM12/28/16
to TigerVNC User Discussion/Support
I'm running Fedora 6.8 as a guest VM on Parallels (or OS X sierra). Fedora is updated with xorg 1.17.4.

Parallels installs its own proprietary drivers which are a little quirky, but I don't think they're related to the problem here.

The server is auto-configuring, and I ran "Xorg -configure" to have a peek at what it thought the configuration should be. It was sane enough.

So I added the file /etc/X11/xorg.conf.d/20-vnc.conf with the contents:

Section "Module"
Load "vnc"
EndSection

Section "Screen"
Identifier "Screen0"
Option "SecurityTypes" "None"
# Option "SecurityTypes" "VncAuth"
# Option "UserPasswdVerifier" "VncAuth"
# Option "PasswordFile" "/etc/X11/.vncpasswd"
Option "AlwaysShared" "yes"
EndSection

and restarted the server via logging out and logging back in again.

But when I run vncviewer I get:


[philipp@centos6 ~]$ vncviewer -log "*:stderr:100" -Shared :0

TigerVNC Viewer for X version 1.1.0 - built May 11 2016 13:00:50
Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.

Wed Dec 28 16:37:29 2016
Config: set Shared(Bool) to 1
Config: set AutoSelect(Bool) to 1
Config: set CustomCompressLevel(Bool) to 0

Wed Dec 28 16:37:30 2016
CConn: connected to host localhost port 5900
CConnection: reading protocol version
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
CConnection: processing security types message
CConnection: Server offers security type VncAuth(2)
CConnection: Choosing security type VncAuth(2)
CConnection: processing security message

Wed Dec 28 16:37:33 2016
CConnection: processing security result message
CConnection: processing security result message
CConnection: auth failed
main: No password configured for VNC Auth
[philipp@centos6 ~]$


Note the wrong SecurityType being selected.

The "Load "vnc"" is definitely being seen, since the VNC server is talking to us (otherwise we'd get a Connection refused error).

But the "SecurityTypes" option is not.

This is probably something as simple as it is obscure. But I've been staring at it for most of the morning and I'm not gaining any ground.

Any suggestions on how to progress on this?

Thanks,

-Philip

Pierre Ossman

unread,
Dec 29, 2016, 4:22:35 AM12/29/16
to pprind...@gmail.com, TigerVNC User Discussion/Support
On 29/12/16 00:41, pprind...@gmail.com wrote:
>
> Note the wrong SecurityType being selected.
>
> The "Load "vnc"" is definitely being seen, since the VNC server is talking to us (otherwise we'd get a Connection refused error).
>
> But the "SecurityTypes" option is not.
>
> This is probably something as simple as it is obscure. But I've been staring at it for most of the morning and I'm not gaining any ground.
>
> Any suggestions on how to progress on this?
>

Please check the X server log as well. It should tell you what the VNC
server is up to.

Regards
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600 https://plus.google.com/+CendioThinLinc

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

pprind...@gmail.com

unread,
Dec 29, 2016, 12:35:48 PM12/29/16
to TigerVNC User Discussion/Support, pprind...@gmail.com
On Thursday, December 29, 2016 at 2:22:35 AM UTC-7, Pierre Ossman wrote:

> Please check the X server log as well. It should tell you what the VNC
> server is up to.
>
> Regards

Unfortunately, the log doesn't have anything very useful. It shows it parsing the Load "vnc" directive, and that's about it: http://paste.fedoraproject.org/514792/83032820/

Cheers,

-Philip

Pierre Ossman

unread,
Jan 5, 2017, 7:08:25 AM1/5/17
to pprind...@gmail.com, TigerVNC User Discussion/Support
The pastebin timed out before I had time to look at it. :/

However, in that case it sounds like you aren't connecting to that
server, but to a different one. Which would explain why your settings
aren't being respected. :)
Reply all
Reply to author
Forward
0 new messages