[Solution]Failed to start Remote desktop service (VNC)

The most common error a beginner can face while working with VNCs is VNC failing to start remote desktop service, there are many reasons as to why this happens and we’re going to take a look at those reasons along with proper steps about how to fix them. In computing, Virtual Network Computing is a graphical desktop sharing system that uses the Remote Frame Buffer protocol to remotely control another computer. One of the most common examples of a VNC application is TeamViewer. Let’s dig deeper into this issue and see how we can fix this error.

Reasons for this error to occur:

Primarily there are 2 main reasons for the remote desktop service to not start:

  1. VNC password is not set
  2. VNC fails to clear the files
  3. Error in VNC configurations file

VNC password not set:

If you’re one of those newbies who are facing this error then don’t sweat because we’re here with a solution. Just set the password for the user- Mynewuser defined in the configuration file and restart the service. This would most likely fix the issue.

VNC fails to clear the files:

If luck is not on your side and you run into this issue, then there are a few steps that could fix the problem. With a further diagnosis, you’d find the VNC could not clear the files created under /tmp and /tmp/.X11-Unix/. So you have to remove them manually using the command below:

rm -f /tmp/.X11-unix/Y;

where Y is the file to remove.

Then you have to restart the server using the command: systemctl start vncserver@:X.service.

Note: Fix may vary depending on your OS and the VNC you’re using.

Error in VNC configurations file:

Check the start-up files for your VNC and install the dependencies according to the VNC you’re using.

Leave a Comment