I am running Linux Debian 10 in a VM on a MAC. I can't get vncserver working, and I have found an article in the knowledge database that says to use "pctl..." to enable vncserver in a parallels vm, but I am wondering if this is a Windows command since it is not available in my Linux (Debian 10) distribution. My end goal is to enable vnc access to the Linux VM from one or more MACs or PCs. All help welcome!
If it helps, the knowledge article I am referring to says this: Enabling VNC Access to Virtual Machines By default, you cannot connect to a virtual machine using a VNC client. To enable VNC access to a virtual machine, you need to configure the following settings: Enable the VNC support in the virtual machine. Specify the TCP port number on the physical server that will be used to listen to VNC connections for the virtual machine. Note: A unique port number must be specified for each virtual machine where you plan to connect via VNC. Set a password to secure your VNC connection. Anyone trying to connect to the virtual machine will need to specify this password before they will be logged in to the virtual machine. Let us assume the following: You want to enable VNC access to the MyVM virtual machine. The server will listen on port 5901 for VNC connections to the virtual machine. The XXXXXXXXX password will be used to access the virtual machine. To enable VNC access to the MyVM virtual machine and set the parameters above, you can run the following command: # pctl set MyVM --vnc-mode manual --vnc-port 5901 --vnc-passwd XXXXXXXXX Configure VNC: mode=manual port=5901 Success. The operation was successfully completed. The changes will come into effect on the next virtual machine start.
Just for clarity - when I say I can't get the vncserver running - what I mean is that after running it, the PID is there OK but I cannot connect to the domain XXX:1. It cannot be found. So I am suspicious that it is the above pctl issue.