User avatar
makem
Posts: 300
Joined: Tue Jun 18, 2013 9:22 pm

Pi4 Unable to connect to vncserver

Tue Nov 05, 2019 2:27 pm

I am using Ubuntu 19.01 and want to use the Pi headless so followed instructions for 18.04 LTS, assuming they would probably work.

https://computingforgeeks.com/how-to-i ... 8-04-lts/

Everything followed those instructions correctly to the point:

Code: Select all

sudo nano ~/.vnc/xstartup
First, I found the the file xstartup did not exist, second, if I used sudo the file became root and that caused permission errors later.

Instead I created the file:

Code: Select all

nano ~/.vnc/xstartup
and entered the code below, following the instructions.

Code: Select all

exec /usr/bin/startxfce4 &
The vncserver started up ok.

I continued with the instructions.

Code: Select all

ssh <username>@<vnsserverip>  -C  -L 5901:127.0.0.1:5901
My network is setup: 192.168.2.x and I was unsure about the localhost 127.0.0.1 but carried on.

I installed tigervnc-viewer on my linux laptop and this where things go wrong (If not already!)

Nothing in the menu about tigervnc so in a terminal on my laptop,

Code: Select all

vncviewer localhost:5901

TigerVNC Viewer 64-bit v1.7.0
Built on: 2017-12-05 09:25
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.

Tue Nov  5 14:17:29 2019
 DecodeManager: Detected 4 CPU core(s)
 DecodeManager: Creating 4 decoder thread(s)
 CConn:       unable connect to socket: Connection refused (111)
Also:

Code: Select all

makem@ssdTOSH:~$ vncviewer 192.168.2.72:5901

TigerVNC Viewer 64-bit v1.7.0
Built on: 2017-12-05 09:25
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.

Tue Nov  5 14:21:40 2019
 DecodeManager: Detected 4 CPU core(s)
 DecodeManager: Creating 4 decoder thread(s)
 CConn:       unable connect to socket: Connection refused (111)
makem@ssdTOSH:~$ 
So, I am unable to connect to the vncserver and would appreciate any pointers to help me in the right direction.

TIA :)
Last edited by makem on Tue Nov 05, 2019 2:47 pm, edited 1 time in total.

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

Re: Pi4 Unable to connect to vncserver

Tue Nov 05, 2019 2:30 pm

Removed unhelpful
Last edited by fruitoftheloom on Wed Nov 06, 2019 7:33 am, edited 1 time in total.
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
makem
Posts: 300
Joined: Tue Jun 18, 2013 9:22 pm

Re: Pi4 Unable to connect to vncserver

Tue Nov 05, 2019 2:42 pm

Ubuntu 19.01

Ah! I know what you are going to say, "Wrong forum" even for the Pi!

Sorry, I will remove it.

Edit: Can't now remove it :(

Return to “Ubuntu”