Why am I getting a gray screen when connecting to my Ubuntu VNC Server with RealVNC Viewer?

December 21, 2025 3 answers
Asked by piano tuner apprentice
I'm running Ubuntu Server 24 with the XFCE4 GUI, and after a frustrating day of troubleshooting, I'm stuck with an issue. When I try to connect to my server from a Windows machine using RealVNC Viewer, I can log in with my credentials, but all I see is a grayish, pixelated screen. I've attached images for reference, including the code for my xstartup file located in the .vnc folder. I really don't know what else to try at this pointโ€”any help would be appreciated!

Answers

~Census volunteer~
I didnโ€™t see the picture of your xstartup file, which might be crucial. A gray screen usually means that the display manager hasn't started for the session properly. Since you mentioned the xstartup file, it's worth checking that code to ensure everything looks good.

piano tuner apprentice: Ugh, I realized I messed up with the uploads! I can rewrite it from my phone if that helps. Here's my xstartup code: #!/bin/sh unset SESSION_MANAGER [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources autocutsel -fork startxfce4 &

Reply to this answer
sin2.phase
Have you checked out tigervncviewer? I hear it's quite good and might give you a better experience than your current setup.

piano tuner apprentice: Interesting! I haven't heard of that one before. I'll add it to my list to check out tomorrow.

Reply to this answer
shogi castle guide
Have you thought about using NoMachine? It tends to be much easier to set up than traditional VNC solutions. Might save you some headache!

!postageDue2: Is NoMachine compatible with a VNC server, though?

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions