Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.raspberry-pi > #38430 > unrolled thread

RealVNC server on RasPi with Raspian/Debian Bookworm - current situation

Started byNY <me@privacy.net>
First post2026-10-11 20:21 +0100
Last post2026-10-16 10:07 +0100
Articles 16 — 8 participants

Back to article view | Back to comp.sys.raspberry-pi


Contents

  RealVNC server on RasPi with Raspian/Debian Bookworm - current situation NY <me@privacy.net> - 2026-10-11 20:21 +0100
    Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation Knute Johnson <groups@585ranch.com> - 2026-10-11 15:29 -0500
      Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation Chris Townley <news@cct-net.co.uk> - 2026-10-11 21:41 +0100
      Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation NY <me@privacy.net> - 2026-10-11 22:20 +0100
        Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation Robert Riches <spamtrap42@jacob21819.net> - 2026-10-11 22:57 +0000
        Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation druck <news@druck.org.uk> - 2026-10-12 21:30 +0100
          Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation NY <me@privacy.net> - 2026-10-12 22:08 +0100
      Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation "NY" <me@privacy.invalid> - 2026-10-12 10:20 +0100
        Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation Knute Johnson <groups@585ranch.com> - 2026-10-13 09:16 -0500
          Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation Knute Johnson <groups@585ranch.com> - 2026-10-13 09:20 -0500
          Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation druck <news@druck.org.uk> - 2026-10-13 20:49 +0100
            Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation Knute Johnson <groups@585ranch.com> - 2026-10-13 19:58 -0500
              Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation druck <news@druck.org.uk> - 2026-10-16 09:39 +0100
                Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation Knute Johnson <groups@585ranch.com> - 2026-10-16 09:28 -0500
          Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-10-17 02:41 +0000
    Re: RealVNC server on RasPi with Raspian/Debian Bookworm - current situation Andy Burns <usenet@andyburns.uk> - 2026-10-16 10:07 +0100

#38430 — RealVNC server on RasPi with Raspian/Debian Bookworm - current situation

FromNY <me@privacy.net>
Date2026-10-11 20:21 +0100
SubjectRealVNC server on RasPi with Raspian/Debian Bookworm - current situation
Message-ID<11agnjm$2ug8j$1@dont-email.me>
I know that at one time newer versions of Raspian (eg Bookworm) wouldn't 
run RealNVC server because of a problem with Wayland.

Has that situation been resolved yet? Is there a version of RealVNC 
server that will work with Debian Bookworm to allow cloud-based 
connections from outside my LAN?

I've got RealVNC client (eg on Windows or Android) to connect to my Pi 
by Direct connection, but that doesn't help with accessing from the WAN 
(eg if my phone or laptop is connected to a different internet 
connection when I'm away from home).

The workaround is to use Port Forwarding on my router, to forward
<WAN-IP>:<port> to <Pi-LAN-IP>:5900 so an external connection looks like 
an internal LAN connection.

However I've got a new internet connection and the company (by default) 
uses CGNAT which means that port-forwarding doesn't work.

I may be able to get a static IP address from my internet company which 
presumably means there is no CGNAT (or at least, no double-NAT) so I can 
access ports on the WAN address from the outside world and use 
port-forwarding to pass on traffic to the Pi on the LAN.

But if that is not possible, I'll need a RealVNC solution that uses a 
cloud-based connection (as for RealVNC server on Windows) - hence my 
initial question.

[toc] | [next] | [standalone]


#38431

FromKnute Johnson <groups@585ranch.com>
Date2026-10-11 15:29 -0500
Message-ID<11agrjv$3012t$1@dont-email.me>
In reply to#38430
On 10/11/26 14:21, NY wrote:
> I know that at one time newer versions of Raspian (eg Bookworm) wouldn't 
> run RealNVC server because of a problem with Wayland.
> 
> Has that situation been resolved yet? Is there a version of RealVNC 
> server that will work with Debian Bookworm to allow cloud-based 
> connections from outside my LAN?
> 
> I've got RealVNC client (eg on Windows or Android) to connect to my Pi 
> by Direct connection, but that doesn't help with accessing from the WAN 
> (eg if my phone or laptop is connected to a different internet 
> connection when I'm away from home).
> 
> The workaround is to use Port Forwarding on my router, to forward
> <WAN-IP>:<port> to <Pi-LAN-IP>:5900 so an external connection looks like 
> an internal LAN connection.
> 
> However I've got a new internet connection and the company (by default) 
> uses CGNAT which means that port-forwarding doesn't work.
> 
> I may be able to get a static IP address from my internet company which 
> presumably means there is no CGNAT (or at least, no double-NAT) so I can 
> access ports on the WAN address from the outside world and use port- 
> forwarding to pass on traffic to the Pi on the LAN.
> 
> But if that is not possible, I'll need a RealVNC solution that uses a 
> cloud-based connection (as for RealVNC server on Windows) - hence my 
> initial question.

If you want to run RealVNC server on your Pi and access it from the 
internet you need to set your Pi to use X11 not Wayland.  Do that in 
raspi-config.  You can get a free account from RealVNC for up to 3 
servers for personal use.  It works great.  I have 3 Pis running RealVNC 
server and accessing them from the internet.  You can even get an 
Android RealVNC viewer, it works great too.

Or look at the RaspberryPi scheme that I don't know anything about.

-- 

Knute Johnson

[toc] | [prev] | [next] | [standalone]


#38432

FromChris Townley <news@cct-net.co.uk>
Date2026-10-11 21:41 +0100
Message-ID<11ags9n$308h9$1@dont-email.me>
In reply to#38431
On 11/10/2026 21:29, Knute Johnson wrote:
> On 10/11/26 14:21, NY wrote:

snip >
> Or look at the RaspberryPi scheme that I don't know anything about.
> 
Raspberry Pi connect

-- 
Chris

[toc] | [prev] | [next] | [standalone]


#38433

FromNY <me@privacy.net>
Date2026-10-11 22:20 +0100
Message-ID<11agui1$313b1$1@dont-email.me>
In reply to#38431
On 11/10/2026 21:29, Knute Johnson wrote:
> If you want to run RealVNC server on your Pi and access it from the 
> internet you need to set your Pi to use X11 not Wayland.  Do that in 
> raspi-config.  You can get a free account from RealVNC for up to 3 
> servers for personal use.  It works great.  I have 3 Pis running RealVNC 
> server and accessing them from the internet.  You can even get an 
> Android RealVNC viewer, it works great too.
Ah, I didn't know it was possible to change from Wayland to X11. I'll 
investigate.

Does changing from Wayland to X11 "break" anything that I might want to 
run on the Pi? Did older versions of Raspian (the versions avilable when 
the Pi 3 was sold) use X11?

I think I've got a spare RealVNC account, in addition to the two that I 
use for accessing my desktop and laptop Windows PCs. It's a shame that 
they reduced the "Lite" limit from five to three...

Annoyingly, three of the applications (*) that I use on the Pi on the PC 
only have HTTP interfaces (on different ports) so I either have to use 
port-forwarding to access from the internet or else RealVNC to the Pi 
(on X11!) and then start a browser on there to access the apps from the LAN.

(*) TVHeadend video recorder; Cumulus weather station software; an app 
for monitoring electricity usage over time on Kasa smart-plugs, to check 
that our deep freezers are working OK (look for any anomalous usage...)

[toc] | [prev] | [next] | [standalone]


#38434

FromRobert Riches <spamtrap42@jacob21819.net>
Date2026-10-11 22:57 +0000
Message-ID<slrn11co51v.aoi.spamtrap42@one.localnet>
In reply to#38433
On 2026-10-11, NY <me@privacy.net> wrote:
> On 11/10/2026 21:29, Knute Johnson wrote:
>> If you want to run RealVNC server on your Pi and access it from the 
>> internet you need to set your Pi to use X11 not Wayland.  Do that in 
>> raspi-config.  You can get a free account from RealVNC for up to 3 
>> servers for personal use.  It works great.  I have 3 Pis running RealVNC 
>> server and accessing them from the internet.  You can even get an 
>> Android RealVNC viewer, it works great too.
> Ah, I didn't know it was possible to change from Wayland to X11. I'll 
> investigate.
>
> Does changing from Wayland to X11 "break" anything that I might want to 
> run on the Pi? Did older versions of Raspian (the versions avilable when 
> the Pi 3 was sold) use X11?
>
> I think I've got a spare RealVNC account, in addition to the two that I 
> use for accessing my desktop and laptop Windows PCs. It's a shame that 
> they reduced the "Lite" limit from five to three...
>
> Annoyingly, three of the applications (*) that I use on the Pi on the PC 
> only have HTTP interfaces (on different ports) so I either have to use 
> port-forwarding to access from the internet or else RealVNC to the Pi 
> (on X11!) and then start a browser on there to access the apps from the LAN.
>
> (*) TVHeadend video recorder; Cumulus weather station software; an app 
> for monitoring electricity usage over time on Kasa smart-plugs, to check 
> that our deep freezers are working OK (look for any anomalous usage...)

Is there any possibility that a VPN might help to work around the
difficulty in doing port forwarding?

-- 
Robert Riches
spamtrap42@jacob21819.net
(Yes, that is one of my email addresses.)

[toc] | [prev] | [next] | [standalone]


#38436

Fromdruck <news@druck.org.uk>
Date2026-10-12 21:30 +0100
Message-ID<11ajg21$3vb6q$1@druck.eternal-september.org>
In reply to#38433
On 11/10/2026 22:20, NY wrote:
> Does changing from Wayland to X11 "break" anything that I might want to 
> run on the Pi? Did older versions of Raspian (the versions avilable when 
> the Pi 3 was sold) use X11?

It's Wayland that breaks things due to its permanently unfinished state 
and features the developers just wont implement.

X11 is what Raspbian used to be shipped with. You will have no problems 
with it.

---druck

[toc] | [prev] | [next] | [standalone]


#38437

FromNY <me@privacy.net>
Date2026-10-12 22:08 +0100
Message-ID<11aji80$68m$1@dont-email.me>
In reply to#38436
On 12/10/2026 21:30, druck wrote:
> On 11/10/2026 22:20, NY wrote:
>> Does changing from Wayland to X11 "break" anything that I might want 
>> to run on the Pi? Did older versions of Raspian (the versions avilable 
>> when the Pi 3 was sold) use X11?
> 
> It's Wayland that breaks things due to its permanently unfinished state 
> and features the developers just wont implement.
> 
> X11 is what Raspbian used to be shipped with. You will have no problems 
> with it.
However...

When I changed from Wayland to X11 in raspi-config (Advanced | Wayland), 
I got a black screen both on the HDMI output and on a RealVNC "direct" 
(TCP) connection.

So it seems that something else is needed, in order for X11 to work on 
new versions of Raspberry PiOS/Debian, in the same way that it worked on 
older Raspbian.

Any clues would be appreciated...

Luckily I'd already enabled SSH on my Pi, so I could connect to it by 
PuTTY in order to run raspi-config again and change back to 
Labwc/Wayland. Otherwise I'd have been stuffed ;-)

[toc] | [prev] | [next] | [standalone]


#38435

From"NY" <me@privacy.invalid>
Date2026-10-12 10:20 +0100
Message-ID<11ai8q1$3ehem$1@dont-email.me>
In reply to#38431
"Knute Johnson" <groups@585ranch.com> wrote in message 
news:11agrjv$3012t$1@dont-email.me...
> If you want to run RealVNC server on your Pi and access it from the 
> internet you need to set your Pi to use X11 not Wayland.  Do that in 
> raspi-config.  You can get a free account from RealVNC for up to 3 servers 
> for personal use.  It works great.  I have 3 Pis running RealVNC server 
> and accessing them from the internet.

Can I check what I need to do to switch between Wayland and X11, because I 
get a blank screen when I do so...

sudo raspi-config
Advanced Options
Wayland
Openbox with X11 (as opposed to Labwc with Wayland, as it was before)
reboot

RealVNC (direct TCP connection) gives a blank window, and the output on 
HDMI1 is also a black screen,

Fortunately I'd enabled SSH, so I was able to connect using PuTTY and run 
raspi-config to change back to Wayland 

[toc] | [prev] | [next] | [standalone]


#38438

FromKnute Johnson <groups@585ranch.com>
Date2026-10-13 09:16 -0500
Message-ID<11alego$jsnv$1@dont-email.me>
In reply to#38435
On 10/12/26 04:20, NY wrote:
> "Knute Johnson" <groups@585ranch.com> wrote in message 
> news:11agrjv$3012t$1@dont-email.me...
>> If you want to run RealVNC server on your Pi and access it from the 
>> internet you need to set your Pi to use X11 not Wayland.  Do that in 
>> raspi-config.  You can get a free account from RealVNC for up to 3 
>> servers for personal use.  It works great.  I have 3 Pis running 
>> RealVNC server and accessing them from the internet.
> 
> Can I check what I need to do to switch between Wayland and X11, because 
> I get a blank screen when I do so...
> 
> sudo raspi-config
> Advanced Options
> Wayland
> Openbox with X11 (as opposed to Labwc with Wayland, as it was before)
> reboot
> 
> RealVNC (direct TCP connection) gives a blank window, and the output on 
> HDMI1 is also a black screen,
> 
> Fortunately I'd enabled SSH, so I was able to connect using PuTTY and 
> run raspi-config to change back to Wayland

I have one Pi5 that is running Bookworm and Wayland.  I can access it 
with RealVNC viewer.  It sometimes gives me a gray screen (not black) 
and other times I get the login screen if nobody is logged in.  There 
are two users on that computer and I can log in as either but only one 
at a time and it is the running desktop that I can get to.  I'm not sure 
how it works if you connect the RealVNC viewer with one user and then 
login to the computer with another but it seems to work most of the time.

FYI - I just tried to change that Pi5 to X11 and I can't get into it 
with the RealVNC viewer.  It may have something to do with nobody being 
logged in.  It's not convenient to run back and forth to the computers 
as they are 100 yards apart in different buildings.

I've got 4 Pis running X11 with no problems.  Anytime I try Wayland I 
get some sort of issue that I can't resolve.

I think RealVNC and Wayland only work when you are on the same network, 
not using their servers.

-- 

Knute Johnson

[toc] | [prev] | [next] | [standalone]


#38439

FromKnute Johnson <groups@585ranch.com>
Date2026-10-13 09:20 -0500
Message-ID<11alemk$jt09$1@dont-email.me>
In reply to#38438
On 10/13/26 09:16, Knute Johnson wrote:
> On 10/12/26 04:20, NY wrote:
>> "Knute Johnson" <groups@585ranch.com> wrote in message 
>> news:11agrjv$3012t$1@dont-email.me...
>>> If you want to run RealVNC server on your Pi and access it from the 
>>> internet you need to set your Pi to use X11 not Wayland.  Do that in 
>>> raspi-config.  You can get a free account from RealVNC for up to 3 
>>> servers for personal use.  It works great.  I have 3 Pis running 
>>> RealVNC server and accessing them from the internet.
>>
>> Can I check what I need to do to switch between Wayland and X11, 
>> because I get a blank screen when I do so...
>>
>> sudo raspi-config
>> Advanced Options
>> Wayland
>> Openbox with X11 (as opposed to Labwc with Wayland, as it was before)
>> reboot
>>
>> RealVNC (direct TCP connection) gives a blank window, and the output 
>> on HDMI1 is also a black screen,
>>
>> Fortunately I'd enabled SSH, so I was able to connect using PuTTY and 
>> run raspi-config to change back to Wayland
> 
> I have one Pi5 that is running Bookworm and Wayland.  I can access it 
> with RealVNC viewer.  It sometimes gives me a gray screen (not black) 
> and other times I get the login screen if nobody is logged in.  There 
> are two users on that computer and I can log in as either but only one 
> at a time and it is the running desktop that I can get to.  I'm not sure 
> how it works if you connect the RealVNC viewer with one user and then 
> login to the computer with another but it seems to work most of the time.
> 
> FYI - I just tried to change that Pi5 to X11 and I can't get into it 
> with the RealVNC viewer.  It may have something to do with nobody being 
> logged in.  It's not convenient to run back and forth to the computers 
> as they are 100 yards apart in different buildings.
> 
> I've got 4 Pis running X11 with no problems.  Anytime I try Wayland I 
> get some sort of issue that I can't resolve.
> 
> I think RealVNC and Wayland only work when you are on the same network, 
> not using their servers.
> 

To know whether you are running X11 or Wayland, from a command prompt 
type: echo $XDG_SESSION_TYPE.

You should get X11 or Wayland.  This doesn't work if you SSH into 
another computer as it gives you: tty



-- 

Knute Johnson

[toc] | [prev] | [next] | [standalone]


#38440

Fromdruck <news@druck.org.uk>
Date2026-10-13 20:49 +0100
Message-ID<11am200$ruhf$1@druck.eternal-september.org>
In reply to#38438
On 13/10/2026 15:16, Knute Johnson wrote:
> FYI - I just tried to change that Pi5 to X11 and I can't get into it 
> with the RealVNC viewer.  It may have something to do with nobody being 
> logged in.  It's not convenient to run back and forth to the computers 
> as they are 100 yards apart in different buildings.

You need to make sure the vncserver-x11-serviced service is running, and 
you have set up Real VNC with a password.

> I've got 4 Pis running X11 with no problems.  Anytime I try Wayland I 
> get some sort of issue that I can't resolve.

I have a few Pi 3's running the Real VNC Server on the 'standard' 
desktop, and it works. But I mainly use open source x11vnc with Pi 4's 
and 5's that use the Mate desktop, as it allows the main session to be 
shared.

> I think RealVNC and Wayland only work when you are on the same network, 
> not using their servers.

It works for me when coming in from other networks over OpenVPN. Do you 
have any firewall rules rejecting other networks?

---druck

[toc] | [prev] | [next] | [standalone]


#38441

FromKnute Johnson <groups@585ranch.com>
Date2026-10-13 19:58 -0500
Message-ID<11amk32$1256b$1@dont-email.me>
In reply to#38440
On 10/13/26 14:49, druck wrote:
> On 13/10/2026 15:16, Knute Johnson wrote:
>> FYI - I just tried to change that Pi5 to X11 and I can't get into it 
>> with the RealVNC viewer.  It may have something to do with nobody 
>> being logged in.  It's not convenient to run back and forth to the 
>> computers as they are 100 yards apart in different buildings.
> 
> You need to make sure the vncserver-x11-serviced service is running, and 
> you have set up Real VNC with a password.
> 
>> I've got 4 Pis running X11 with no problems.  Anytime I try Wayland I 
>> get some sort of issue that I can't resolve.
> 
> I have a few Pi 3's running the Real VNC Server on the 'standard' 
> desktop, and it works. But I mainly use open source x11vnc with Pi 4's 
> and 5's that use the Mate desktop, as it allows the main session to be 
> shared.
> 
>> I think RealVNC and Wayland only work when you are on the same 
>> network, not using their servers.
> 
> It works for me when coming in from other networks over OpenVPN. Do you 
> have any firewall rules rejecting other networks?
> 
> ---druck

I really like x11vnc and I have about 100 computers running it (40 or 50 
of them Pi4s) in a closed network.  I access them with a hardware VPN 
and RealVNC viewer.

I don't think there is an equivalent to vncserver-x11-serviced for 
Wayland.  Just wayvnc and you can't using RealVNC's network to get at 
that.  Maybe there is a virtual VNC server?

-- 

Knute Johnson

[toc] | [prev] | [next] | [standalone]


#38443

Fromdruck <news@druck.org.uk>
Date2026-10-16 09:39 +0100
Message-ID<11asnrh$34ji1$1@druck.eternal-september.org>
In reply to#38441
On 14/10/2026 01:58, Knute Johnson wrote:
> I don't think there is an equivalent to vncserver-x11-serviced for 
> Wayland.  Just wayvnc and you can't using RealVNC's network to get at 
> that.  Maybe there is a virtual VNC server?

Ah, Real VNC are now offering a 'cloud' remote access system. I've never 
used that, I only ever use VNC remotely via my own VPN, so have not 
signed the Real VNC instances in to a cloud account.

---druck

[toc] | [prev] | [next] | [standalone]


#38445

FromKnute Johnson <groups@585ranch.com>
Date2026-10-16 09:28 -0500
Message-ID<11atcao$3cave$1@dont-email.me>
In reply to#38443
On 10/16/26 03:39, druck wrote:
> On 14/10/2026 01:58, Knute Johnson wrote:
>> I don't think there is an equivalent to vncserver-x11-serviced for 
>> Wayland.  Just wayvnc and you can't using RealVNC's network to get at 
>> that.  Maybe there is a virtual VNC server?
> 
> Ah, Real VNC are now offering a 'cloud' remote access system. I've never 
> used that, I only ever use VNC remotely via my own VPN, so have not 
> signed the Real VNC instances in to a cloud account.
> 
> ---druck

It is really nice and it is free.  I had an actual commercial account 
with them for one server that I used for work but they realigned their 
accounts and got rid of me.  I couldn't afford their minimum account any 
more.

-- 

Knute Johnson

[toc] | [prev] | [next] | [standalone]


#38448

FromLawrence D’Oliveiro <ldo@nz.invalid>
Date2026-10-17 02:41 +0000
Message-ID<11aun8s$3r5cq$5@dont-email.me>
In reply to#38438
On Tue, 13 Oct 2026 09:16:54 -0500, Knute Johnson wrote:

> I'm not sure how it works if you connect the RealVNC viewer with one
> user and then login to the computer with another but it seems to
> work most of the time.

Just a note that GUI remoting on Linux (or any other Unix-type system)
works a bit differently from how you might think if you are more used
to Microsoft/Apple platforms.

Basically, your remote session is entirely independent from what a
local user might be doing on a physical screen on that same machine.
The remoting server is acting as its own, entirely virtual, display
device. In days of yore, this would have been acting as an X11 server,
but there’s nothing preventing it from implementing the Wayland
protocol nowadays. You just have to check this with the software docs,
to see what it actually supports.

[toc] | [prev] | [next] | [standalone]


#38444

FromAndy Burns <usenet@andyburns.uk>
Date2026-10-16 10:07 +0100
Message-ID<nje7q4FqnmqU2@mid.individual.net>
In reply to#38430
NY wrote:

> I know that at one time newer versions of Raspian (eg Bookworm) wouldn't 
> run RealNVC server because of a problem with Wayland.

Probably runs an RDP server instead of VNC?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.raspberry-pi


csiph-web