Debian 12 Bookworm VNC server.... can't connect?

hestermofet

Ars Legatus Legionis
24,887
Maybe I'm doing something wrong, but this seems unnecessarily hard. I'm trying to login to a Debian 12 box using RealVNC on Windows, and tightvncserver. I tried just setting things up using what made sense, doesn't work. RealVNC times out. Then, I tried following some guides including one from DigitalOcean (who always seem to have very good guides), but same issue, I get timeout errors. The guides usually get me to edit ~/.vnc/config, which is fine, but I'm not sure where they're getting it wrong.

The guides also usually assume XFCE, but I'm using Debian's default Gnome DE (weird why guides would assume anything other than the default, but whatever). They also assume you want to use an SSH tunnel, or even SSL certs, but I don't really care for extra security, this is all on my LAN. So I completely ignore those steps. I've tried opening port 5901 with ufw, though, which is one step I usually don't see.

What am I doing wrong? Why is this so hard? 😖 I'm open to using something other than tightvnc, but RealVNC as the client is a must.
 

koala

Ars Tribunus Angusticlavius
7,579
The Debian installer can configure XFCE, which is often easier to get running with VNC than Gnome.

Gnome has its own VNC sharing that you can set directly from their settings applet. You might find this sufficient for your needs.

To troubleshoot your current approach, we would need more information. For starters, you should make sure that VNC is listening on the port you assume it's listening (netstat -nap or a variant can help you there), knowing if you can connect to the port from your client, and logs from both sides.
 

hestermofet

Ars Legatus Legionis
24,887
Gnome has its own VNC sharing that you can set directly from their settings applet. You might find this sufficient for your needs.
Awesome, love it when the Ars community always has the answer. Not only does Gnome have VNC, it has RDP too. It's been a while since I've used Debian for desktop, I usually go with Ubuntu, so I didn't even think this would be built in. Perfect solution, thank you so much!