10

I'm looking for a way to reset the display counter for VNC to :1.

What has happened is that my server has been restarted without killing the VNC processes first and upon reboot and then starting vncserver once more with a new process it has started at :2, completely ignoring :1.

On trying to kill :1 it says: "You'll have to kill the Xtightvnc process manually".

I cannot kill this process, there is no pid files for this display to delete and the process has long gone as the server has restarted. Please can someone advise me on how to restart this count back to :1. Can anyone please help me reset these settings.

Using tightvncserver on Ubuntu 14.01

Jono_2007
  • 203

5 Answers5

6

Try running

ps -ef | grep vnc

to see which VNC services are running.

Bob
  • 76
1

As @bob has mentioned use the command -

ps -ef | grep vnc

It will list all the vnc related process that are in running state.

So note down the PID of the process having the name

Xvnc

And execute the command kill -9 <PID of Xvnc Process(es)>

I will kill the VNC server.

Then restart the VNC server and things are back.

Darshan L
  • 669
0

I solved typing on TightVNC IPSERVER:2 instead of IPSERVER:1. On Vultr cloud, for example, there is another access to ubuntu desktop that is 'View Console'.

0

9 signal has no efficiency for a clean erasing from system programming objects. Prefer first command

    kill

which does the job in case signal 9 has not been made necessary.

-1

The following terminal command;

$ sudo tightvncserver -kill :1

Kills the first server session and leaves the second session untouched.

Burgi
  • 6,768
Nasl
  • 1