-2

I am running a VNC server (vnc4server) on a Ubuntu server.

Does killing the VNC server itself kill the processes on it, such as applications started from VNC sessions?

2
  • I've edited your question a bit but I can't tell precisely what you're asking, so please consider editing it yourself to add more information.
    – bwDraco
    Aug 31, 2016 at 4:36
  • @bwDraco, thanks for the clarification. I just notice there are various kinds of VNC servers. What I am using is vnc4server.
    – Romaboy
    Aug 31, 2016 at 17:57

2 Answers 2

0

If you're using Xvnc, yes, because it contains its own copy of the X server and hosts its own graphical sessions. Terminating the Xvnc server will terminate any applications started in client VNC sessions.

Otherwise, no (unless the VNC server shuts down the X server or sessions on exit), because the VNC server merely interfaces with an existing X server to supply a remote desktop to the client. Klling the VNC server will not kill any programs started in VNC sessions, as the underlying X server and desktop environment are not dependent on the VNC server. Of course, if the server is killed, clients will not be able to access any running sessions.

2
  • Thanks. Just want to make it clear. If I kill the vnc4server (running on a remote ubuntu server), the processes which I started through the vnc4server will not be killed and will still be running. Is that correct? Therefore, a follow-up question, how can I kill those processes correctly? I think through ssh connection, as long as I quit from the ssh connection, all processes I ran are killed, unless I use something like tmux or the processes are database processes.
    – Romaboy
    Aug 31, 2016 at 18:07
  • Not too sure about this, but user sessions should still be active.
    – bwDraco
    Aug 31, 2016 at 18:22
-1

If by "VNC server" in "running in the VNC server" you meant a server (operating system) which is (was) running a VNC service then the answer is: no.

Unlike for example the SSH deamon which opens new sessions when users connect (and the processes that users subsequently run become child processes), VNC server only shares the screen and allows the control of the machine it is running on, but it is running "side-by-side" with other processes.

Killing VNC server stops the sharing service and would kill VNC client session(s), but does not influence other processes running on the server (operating system).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .