Setup X11VNC to start at boot

Is there any guide for openSUSE 11.3 or 11.4 to make x11vnc to start everytime the pc is rebooted, I have search the forum with no results


One way would be to place your command for starting x11vnc into the file /etc/init.d/boot.local

Long time since I used x11vnc, I always use nx for a full desktop or just plain old x11 forwarding over ssh if I’m just doing something quick and simple

is there anyone that can post an example of how that command would be? I have found some examples but for other distributions

A better way is to put the x11vnc command in the display manager startup script. This has the advantage that the env. vars. DISPLAY and XAUTHORITY are automatically set to the correct values to permit connection to the X session. Depending on ones system, the /etc/init.d/boot.local method may not be able to find suitable Xauthority credentials to connect to the display. Also the boot.local file would need to be run AFTER the X server has been started.

More info in the section marked ‘Continuously’ here:

X11VNC FAQ #59