User avatar
pi-anazazi
Posts: 841
Joined: Fri Feb 13, 2015 9:22 pm
Location: EU

Raspbian (latest) - tigerVNC not working?

Mon Jun 24, 2019 3:38 pm

Hi!

I started installing latest Raspbian (Buster with GUI) on a raspi 2. Removed the VNC coming with the image, rebooted and installed TigerVNC from the "install and remove software" tool in the GUI.

I can start the VNCserver:

Code: Select all

vncserver -localhost no 
Cleaning stale pidfile '/home/pi/.vnc/raspberrypi:1.pid'!

New 'raspberrypi:1 (pi)' desktop at :1 on machine raspberrypi

Starting applications specified in /home/pi/.vnc/xstartup
Log file is /home/pi/.vnc/raspberrypi:1.log

Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/pi/.vnc/passwd raspberrypi:1 to connect to the VNC server.

but when I do on client:

Code: Select all

vncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/pi/.vnc/passwd IP_raspi:1
I get on the client "opening password file failed":

Code: Select all

TigerVNC Viewer 64-bit v1.9.80
Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.

Mon Jun 24 17:33:47 2019
 DecodeManager: Detected 6 CPU core(s)
 DecodeManager: Creating 4 decoder thread(s)
 CConn:       Connected to host 10.0.0.5 port 5901
 CConnection: Server supports RFB protocol version 3.8
 CConnection: Using RFB protocol version 3.8
 CConnection: Choosing security type VeNCrypt(19)
 CVeNCrypt:   Choosing security type VncAuth (2)
[b] CConn:       Opening password file failed[/b]
The server says in the log:

Code: Select all

...
Mon Jun 24 17:33:47 2019
 Connections: accepted: IP_client::36308
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VeNCrypt(19)
 SVeNCrypt:   Client requests security type VncAuth (2)
terminate called after throwing an instance of 'rdr::EndOfStream'
terminate called recursively
(EE) 
(EE) Backtrace:
(EE) 
(EE) 
Fatal server error:
(EE) Caught signal 6 (Aborted). Server aborting
(EE) 
syswrite() on closed filehandle WH at /usr/bin/vncserver line 912.
I only found this here:

https://github.com/TigerVNC/tigervnc/issues/800

...which gives me little hope.

Has anybody managed to get TigerVNC up and running on raspbian? :-)
Kind regards

anazazi

User avatar
pi-anazazi
Posts: 841
Joined: Fri Feb 13, 2015 9:22 pm
Location: EU

Re: Raspbian (latest) - tigerVNC not working?

Mon Jun 24, 2019 5:46 pm

PS: I tried the built-in tightVNC server, but that requires tightVNC viewer and is not compatible to tigerVNC I have installed on all my machines. :-(

So: Any way to get tigerVNC server to work on raspbian?
Kind regards

anazazi

User avatar
pi-anazazi
Posts: 841
Joined: Fri Feb 13, 2015 9:22 pm
Location: EU

Re: Raspbian (latest) - tigerVNC not working?

Fri Jun 28, 2019 2:03 pm

Really? Nobody running TigerVNC?
Kind regards

anazazi

mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: Raspbian (latest) - tigerVNC not working?

Fri Jun 28, 2019 2:26 pm

Nope -we all all use the standard RealVNC server that comes as standard

acavalin
Posts: 3
Joined: Mon Aug 12, 2019 11:34 am

Re: Raspbian (latest) - tigerVNC not working?

Mon Aug 12, 2019 11:47 am

Hello I found that this is a problem related to libunwind8 and the function _Unwind_RaiseException that overrides the one supplied in libgcc_s.so.1.
See https://bugs.debian.org/cgi-bin/bugrepo ... =932499#47

It works if you run the server like this:

Code: Select all

LD_PRELOAD=/lib/.../libgcc_s.so.1 Xtigervnc ...
but this is only a hack... the bug is fixed in tigervnc/1.9.0+dfsg-1 but in raspbian we only have tigervnc/1.9.0+dfsg-3.

Does someone knows how to tell the raspbian devs about this problem and bugfix?

fruitoftheloom
Posts: 24565
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspbian (latest) - tigerVNC not working?

Mon Aug 12, 2019 1:35 pm

acavalin wrote:
Mon Aug 12, 2019 11:47 am
Hello I found that this is a problem related to libunwind8 and the function _Unwind_RaiseException that overrides the one supplied in libgcc_s.so.1.
See https://bugs.debian.org/cgi-bin/bugrepo ... =932499#47

It works if you run the server like this:

Code: Select all

LD_PRELOAD=/lib/.../libgcc_s.so.1 Xtigervnc ...
but this is only a hack... the bug is fixed in tigervnc/1.9.0+dfsg-1 but in raspbian we only have tigervnc/1.9.0+dfsg-3.

Does someone knows how to tell the raspbian devs about this problem and bugfix?

The package is provided by Debian, you need to contact the package maintainers:

https://packages.debian.org/stable/source/tigervnc
Thinking outside the box is better than burying your head in the sand...

User avatar
raspphibian
Posts: 4
Joined: Wed Oct 12, 2016 5:31 pm

Re: Raspbian (latest) - tigerVNC not working?

Thu Dec 05, 2019 4:44 pm

mattmiller wrote:
Fri Jun 28, 2019 2:26 pm
Nope -we all all use the standard RealVNC server that comes as standard
I think the raspberry pi foundation makes deals with some non-free software vendors to include their software in the raspbian repo or NOOBS, and they get paid for including their limited trial versions. RealVNC is one of these. It is non-free software which doesn't allow you to use it commercially or with more than 5 computers or something. There might be some more restrictions on it, I didn't fully read their license. The point it is that it's not free and so it is better to learn the free and open source TigerVNC, which seems to be the best FOSS VNC software right now.

Here are my notes on how to set it up. This works fine for me on my LAN.

debian:
sudo apt install tigervnc-scraping-server tigervnc-common
for config:
tigervncpasswd
run local display mirror vnc server:
x0vncserver -rfbauth ~/.vnc/passwd

arch:
sudo pacman -S tigervnc
for initial config config:
$ vncserver
If at any stage one needs to change the previously defined password, the vncpasswd tool can be called:
$ vncpasswd
run local display mirror vnc server:
$ x0vncserver -rfbauth ~/.vnc/passwd
Running vncserver for virtual (headless) sessions:
https://wiki.archlinux.org/index.php/Ti ... )_sessions

connect with
$ vncviewer <ip address>

wildfire
Posts: 669
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: Raspbian (latest) - tigerVNC not working?

Thu Dec 05, 2019 5:40 pm

raspphibian wrote:
Thu Dec 05, 2019 4:44 pm
I think the raspberry pi foundation makes deals with some non-free software vendors to include their software in the raspbian repo or NOOBS, and they get paid for including their limited trial versions.
Really, where did you get those thoughts from?

I have some thoughts of my own about your post, unfortunately I'm certain if I post them I'd be in trouble with the mods.
E8 85 A2 40 C9 40 81 94 40 81 95 40 89 84 89 96 A3
Still NF Shirls

mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: Raspbian (latest) - tigerVNC not working?

Thu Dec 05, 2019 9:58 pm

I think the raspberry pi foundation makes deals with some non-free software vendors to include their software in the raspbian repo or NOOBS, and they get paid for including their limited trial versions. RealVNC is one of these.
I'd be much more inclined to believe that RealVNC supply RPi with their "limited" (doesn't affect me at all controlling 10 Pi over my LAN) product as bit of free product placement advertising.

It works really well OOB

It doesn't bother me at all if its not "free" software as there are plenty of "free" alternatives is they ever decided to pull it from Pi

Until that day (ever) comes - I'll just continue to enjoy their largess :)

intgir
Posts: 1
Joined: Mon Jan 27, 2020 6:11 am

Re: Raspbian (latest) - tigerVNC not working?

Mon Jan 27, 2020 6:14 am

mattmiller wrote:
Thu Dec 05, 2019 9:58 pm
I'd be much more inclined to believe that RealVNC supply RPi with their "limited" (doesn't affect me at all controlling 10 Pi over my LAN) product as bit of free product placement advertising.

It works really well OOB

It doesn't bother me at all if its not "free" software as there are plenty of "free" alternatives is they ever decided to pull it from Pi

Until that day (ever) comes - I'll just continue to enjoy their largess :)
I prefer to use free, open source software like the one OP mentions because it is more secure. Where can I review the source code for RealVNC? How do I know that it isn't compromising my system?

fruitoftheloom
Posts: 24565
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspbian (latest) - tigerVNC not working?

Mon Jan 27, 2020 12:05 pm

intgir wrote:
Mon Jan 27, 2020 6:14 am
mattmiller wrote:
Thu Dec 05, 2019 9:58 pm
I'd be much more inclined to believe that RealVNC supply RPi with their "limited" (doesn't affect me at all controlling 10 Pi over my LAN) product as bit of free product placement advertising.

It works really well OOB

It doesn't bother me at all if its not "free" software as there are plenty of "free" alternatives is they ever decided to pull it from Pi

Until that day (ever) comes - I'll just continue to enjoy their largess :)
I prefer to use free, open source software like the one OP mentions because it is more secure. Where can I review the source code for RealVNC? How do I know that it isn't compromising my system?

https://www.realvnc.com/en/legal/#tandc
Thinking outside the box is better than burying your head in the sand...

User avatar
pi-anazazi
Posts: 841
Joined: Fri Feb 13, 2015 9:22 pm
Location: EU

Re: Raspbian (latest) - tigerVNC not working?

Mon Jan 27, 2020 1:30 pm

I simply use now headless buster, only access via ssh.

I still miss tigerVNC though...
Kind regards

anazazi

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5918
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Raspbian (latest) - tigerVNC not working?

Mon Jan 27, 2020 1:38 pm

pi-anazazi wrote:
Mon Jan 27, 2020 1:30 pm
I simply use now headless buster, only access via ssh.
...
with X-forwarding enabled maybe? That's the "simplest" approach Pi (or other box with X-win support) to Pi.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

User avatar
pi-anazazi
Posts: 841
Joined: Fri Feb 13, 2015 9:22 pm
Location: EU

Re: Raspbian (latest) - tigerVNC not working?

Mon Jan 27, 2020 2:20 pm

headless as in "buster light", i.e. without any GUI installed at all... ;-)
Kind regards

anazazi

tmbdev
Posts: 1
Joined: Mon May 04, 2020 5:04 am

Re: Raspbian (latest) - tigerVNC not working?

Mon May 04, 2020 5:17 am

You need to set both a regular and a view-only password for TigerVNC to work on Raspbian. Yes, that's a bug, but it's fortunately not a big problem once you know about it.

(The reason many people want to run TigerVNC is that RealVNC doesn't play particularly nicely with non-RealVNC clients, like those that are standard on Ubuntu. Also, ssh tunnels are often preferable to RealVNC's protocols.)

bls
Posts: 883
Joined: Mon Oct 22, 2018 11:25 pm
Location: Seattle, WA
Contact: Twitter

Re: Raspbian (latest) - tigerVNC not working?

Mon May 04, 2020 1:56 pm

Agree most people here use RealVNC, but TigerVNC and TightVNC are viable options.

If you'd prefer to use one of those two VNC servers with virtual displays (rather than controlling the RPi console), have a look at https://github.com/gitbls/RPiVNCHowTo. It shows you how to set up those two VNC servers as being systemd-started on demand without using vncserver at all. It does require a display manager, such as lightdm or xdm, but most systems with X have one of them installed.
Pi tools:
Quickly and easily build customized-just-for-you SD Cards: https://github.com/gitbls/sdm
Easily run your network's DHCP/DNS on a Pi: https://github.com/gitbls/ndm
Easy strongSwan VPN installer/manager: https://github.com/gitbls/pistrong
Lightweight Virtual VNC Config: https://github.com/gitbls/RPiVNCHowTo

strongcoffee
Posts: 2
Joined: Tue Jun 09, 2015 7:09 pm

Re: Raspbian (latest) - tigerVNC not working?

Wed Jul 15, 2020 12:47 pm

by tmbdev » Mon May 04, 2020 5:17 am

You need to set both a regular and a view-only password for TigerVNC to work on Raspbian. Yes, that's a bug, but it's fortunately not a big problem once you know about it.
Thanks for that tip, I finally got it to work.
I use TigerVNC Viewer 1.10.1 on my Mac to connect to TigerVNCserver running on my raspberry pi 4. I create an ssh tunnel first; replace 192.168.x.x with the IP address of your raspberry pi.

Code: Select all

ssh -NTf -L 5901:localhost:5901 192.168.x.x 
In the client I specify localhost::5901 and after providing the password a connection is established. Without the ssh tunnel (i.e. connecting directly to rpiIPaddress::5901) does not work for me, but connecting over ssh is more secure so preferable.

wsanders
Posts: 11
Joined: Thu Nov 14, 2013 2:06 am

Re: Raspbian (latest) - tigerVNC not working?

Wed Jul 15, 2020 7:53 pm

Running Buster (yes it's old.)

TigerVNC doesn't work out of the box because it only opens a socket on localhost.

Code: Select all

netstat -nta
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:5901          0.0.0.0:*               LISTEN     
The aforementioned ssh tunnel technique should work, but the tunnel it creates is on localhost as well:

Code: Select all

$ netstat -nta | grep 590
tcp        0      0 127.0.0.1:5901          0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:5902          0.0.0.0:*               LISTEN     
tcp6       0      0 ::1:5901                :::*                    LISTEN     
tcp6       0      0 ::1:5902                :::*                    LISTEN    
I haven't yet figured out how to fix this. (Gpsd behaves the same way, with the -G flag, which is supposed to create a listening socket, but the socket created is on localhost only.) I don't have a firewall running on the host. "Ssh -Y" works though.

The RealVNC that ships is incompatible with TigerVNC, which is the default VNC server present in Fedora.

ilg
Posts: 14
Joined: Sat Aug 08, 2020 3:54 pm
Location: Bucharest, Romania

Re: Raspbian (latest) - tigerVNC not working?

Sat Aug 08, 2020 3:57 pm

> TigerVNC doesn't work out of the box because it only opens a socket on localhost.

That's correct, but you can start it with lots of options, including:

Code: Select all

vncserver -localhost no

Return to “Beginners”