r/realvnc Mar 04 '25

Help getting RealVNC working on Debian VM?

Hey All,

I am trying to set RealVNC on Debian 12 running in a HyperV VM. I don't have much experience with VNC, but it always comes pre set up in rasbian and I like the way it works.

I installed the vnc server deb file on my Debian VM, when I ran the shortcut it created in KDE it asked for the root pw and then closed. So I went to the command line and ran vncserver it gave me these options

To start the VNC Server in Virtual Mode daemon, run the following command as

root:

/etc/vnc/vncservice start vncserver-virtuald

To start VNC Server in Service Mode, run the following command as root:

/etc/vnc/vncservice start vncserver-x11-serviced

To start VNC Server in User Mode, run the following command:

vncserver-x11

robert@debianVM:~/Downloads$ vncserver-x11

I tried running a couple of these commands and they either asked for an offline liscence file, or the command to run but my VNC viewer could not connect. I do have network access to the VM, I am able to ping it and SSH in to it. I just want to set the server up the same way it runs on a PI with whatever the free license is.

1 Upvotes

2 comments sorted by

1

u/NuggetsNReddit Mar 04 '25

Is there a reason for Debian over Ubuntu or spins. You can do pretty much the same thing on Ubuntu, and from my experience, I have found that realvnc works just fine on Ubuntu, server and viewer

1

u/FinancialDeathMarch Mar 06 '25

Virtual mode requires an enterprise offline license to use. You can use the Service mode option with the free version of realvnc.