X11VNCserver as a Service

Asked by Robert Egoroff

Hi. I built a headless Linux box as my lab machine (Ubuntu 10.04). I connect to it via VNC. At the moment I am manually starting X11VNCserver on Ubuntu to achieve this. What I would like do is run this as a service at bootup. The help on X11VNCserver tells me I have to disable a line in gdm.config (among other things) and I simply cannot find this file on 10.04.

How do I get X11VNCServer up on bootup??

(Sorry I am a new kid on the block on Linux)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu x11vnc Edit question
Assignee:
No assignee Edit question
Solved by:
Robert Egoroff
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Add an entry in your startup items in System -> Prefs -> startup items.

The command will be the comamnd you have been running, the other items can be whatever you wish.

When you log in the server will start

Personally I think this is really BAD practise as the service will run if you need it or not and is a possibility for attack, if you only launch it when needed and close it after, you will limit the chance of exploit.

Make sure you use an SSH tunnel if you are connecting to VNC over the web as VNC is not secure at all.

Revision history for this message
Robert Egoroff (fforoge) said :
#2

Ok...I did do that with the suggested switch settings with no joy. But this should be enough for me to continue. Re security, yes I know where you are coming from. This is a training platform for MS training (I am running MV's) and as such would be very boring to hack into, if you got past my firewall. Concern noted though. Thanks