We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

pibuntu
Posts: 4
Joined: Sun Jul 26, 2020 8:00 am

VNC issues weird errors Tigervnc (I am running Ubuntu 20.04.1 LTS)

Tue Jul 28, 2020 10:42 am

I previously installed Tightvnc server which appears to be crappy. It is missing RANDR extension for XFCE4 and titlebars on windows are not shown. O a forum I found that TigerVNC should be better. I already have experience with Tigervnc running on Andronix (Ubuntu subsystem under Android) which runs flawlessly.
So I uninstalled Tightvnc and installed Tigervnc (I am running Ubuntu 20.04.1 LTS).
After starting 'vncserver' it stopped and in the log /home/pi/.vnc/raspberry-pi\:1.log (I start it as the non-root user 'pi'):

Code: Select all


Tue Jul 28 10:35:26 2020
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 5901
 vncext:      created VNC server for screen 0
xrdb: No such file or directory
xrdb: can't open file '/home/pi/.Xresources'
/usr/bin/startxfce4: X server already running on display :1
gpg-agent[2954]: WARNING: "--write-env-file" is an obsolete option - it has no effect
gpg-agent: a gpg-agent is already running - not starting a new one

What should appear in .Xresources ?
And there was no VNC server running before, so 'X server already running on display :1' is nonsense.

What is the problem here ?

bls
Posts: 4556
Joined: Mon Oct 22, 2018 11:25 pm
Location: Seattle, WA

Re: VNC issues weird errors

Tue Jul 28, 2020 1:24 pm

.Xdefaults has default resource settings for X11 applications. You can read about it by web searching for "X Resources". The fact that it's not there isn't your problem.

Your vncserver stopped because of "/usr/bin/startxfce4: X server already running on display :1". That's not necessarily a VNC server. Best way to sort out what's going on is to look at what else is running on your system with 'sudo ps aux' or similar command, and look for an Xorg process with ":1" in the command line, or a dangling VNC server.

Post your 'ps aux' output in

Code: Select all

 tags if you aren't able to see it.
Pi tools:
Quickly and easily build customized exactly as-you-want SSDs/SD Cards: https://github.com/gitbls/sdm
Easily run and manage your network's DHCP/DNS servers on a Pi: https://github.com/gitbls/ndm
Easy and secure IPSEC/IKEV2 VPN installer/manager: https://github.com/gitbls/pistrong
Lightweight Virtual VNC Config: https://github.com/gitbls/RPiVNCHowTo

pibuntu
Posts: 4
Joined: Sun Jul 26, 2020 8:00 am

Re: VNC issues weird errors Tigervnc (I am running Ubuntu 20.04.1 LTS)

Tue Jul 28, 2020 1:50 pm

Well, I tried that out and killed all X related processes beforehand.

Installing and starting X11vnc also led to weird errors.

Code: Select all

pi@raspberry-pi:~$ x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth ~/.vnc/passwd  -rfbport 5901 -shared

 --- x11vnc loop: 1 ---

 --- x11vnc loop: waiting for: 5669

28/07/2020 15:26:05 passing arg to libvncserver: -rfbauth
28/07/2020 15:26:05 passing arg to libvncserver: /home/pi/.vnc/passwd
28/07/2020 15:26:05 passing arg to libvncserver: -rfbport
28/07/2020 15:26:05 passing arg to libvncserver: 5901
28/07/2020 15:26:05 x11vnc version: 0.9.16 lastmod: 2019-01-05  pid: 5669
28/07/2020 15:26:05 -auth guess: failed for display='unset'

 --- x11vnc loop: sleeping 2000 ms ---

Now I reverted to TightVNC server but still I get the error RANDR extension missing when I want to setup Display settings in XFCE.
Screenshot 2020-07-28 at 15.44.32.png
Screenshot 2020-07-28 at 15.44.32.png (172.49 KiB) Viewed 2579 times

Return to “Ubuntu”