I just bought Rpi 5, installed Raspberry pi OS with desktop (without the recommended software), enabled VNC from sudo raspi-config but the VNC is not showing up in the Takbar. It is installed, as if I run:
sudo apt-get install -y realvnc-vnc-server
It says its already installed.
This answer did not start the vnc either, I dont get any errors in the pi when I run these commands but I cant connect to the pi afterwards:
The closest thing to connecting was to run vncserver-virtual which gives me an IP 192.168.2.36:1 , where if I try to connect it drops me this error GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject:
And if I try to re-connect, no error, gray screen with indications that I connected..:
I noticed that I had two 5900 ports open (sudo lsof -i :5900) thanks to this post. And if I run vncserver-x11 I can see the UI also pops up the error of conflicting ports:

So I disabled the auto-start of VNC with the pi, and I opened the vnc on my own every time the pi starts up using the command vncserver -x11. I took the Ip from there, but when I tried to connect it showed me black screen like in this post (With the difference that I dont use Raspbian lite, I use the desktop version)...
I re-enabled the auto start of vnc from start/raspberry pi configuration (so not from using the raspi-config command) and restarted the pi. Now I already had the ip of the vnc on my computer so I didnt need to start the vnc viewer on the pi, I assume it runs at the background with only one :5900 instance, so I can connect using VNC, and I can see the remote desktop!
So the status is: pi opens with VNC since I have it to auto-start with the pi, it doesnt show the VNC window, but it runs at the background and I connect to it, if it doesn't change its IP.
Reinstalling vnc with sudo apt purge realvnc-vnc-server + sudo rm -rf /etc/vnc/ because the uninstaller fails to delete it, and re-installing vnc server (downloading it from their website) does not solve the issue.
- Why VNC isnt showing up its window? How can I fix that?
- How can I see the VNC's IP without using the VNC window?




