0

Auto login with Kubuntu 14.10 KDE 5 plasma

How can I start a VNC server before log on?

  • I see a post similar to this setting up a sh file vncserver.sh – Aj Anning Oct 18 '14 at 07:08
  • I did this as shown, but when I run sudo update-rc.d vncserver defaults I get error ub2@ajub2-pc:/etc$ sudo update-rc.d vncserver defaults insserv: Script vncserver is broken: incomplete LSB comment. insserv: missing Required-Stop:' entry: please add even if empty. insserv: Script vncserver is broken: incomplete LSB comment. insserv: missingRequired-Stop:' entry: please add even if empty. – Aj Anning Oct 18 '14 at 07:09

1 Answers1

0

Drop into Root:

sudo -s

First off, install X11vnc:

apt-get install x11vnc

Make a place for its files:

mkdir /etc/x11vnc

Set up auth:

x11vnc -storepasswd in /etc/x11vnc/passwd
x11vnc -storepasswd /etc/x11vnc/passwd

You will be asked to choose a password. Follow the on-screen instructions.

Edit the configs:

nano /etc/init/x11vnc.conf

Add this to the config:

start on login-session-start

script

sudo x11vnc -xkb -forever -auth /var/run/kdm/root/:0 -display :0 -rfbauth /etc/x11vnc/passwd -rfbport 5900 -bg -o /var/log/x11vnc.log

end script

Save with Ctrl+X.

Reboot and you can now use VNC.

(Src)

Kaz Wolfe
  • 34,122
  • 21
  • 114
  • 172
  • Do I need to do this ? "First off, install X11vnc:" I already have realvnc installed – Aj Anning Oct 18 '14 at 07:22
  • This did not work...I assume that x11vnc, is not "realVNC" but another vnc? I have to use "realVNC"...to long to explain why. Is there a way to star realVNC before login ? – Aj Anning Oct 18 '14 at 08:04
  • Why realVNC? They all use the same protocol. X11VNC is a special VNC version designed for the X server. AFAIK, RealVNC will not work. – Kaz Wolfe Oct 18 '14 at 08:37