remote desktop/vnc in kubuntu

krfb keeps crashing when I try to VNC to my Kubuntu box. The solution is below. I do it differently but adapt it as needed.

 * Install x11vnc:sudo apt-get install x11vnc

* Create a vncpassword if you haven't already:

mkdir ~/.vnc
x11vnc -storepasswd ~/.vnc/passwd

* Create your config file in ~/.x11vncrc to look something like this:

forever
localhost
rfbauth /home//.vnc/passwd
display :0

#You can use rfbport to specify a different port (default is 5900).
#Remove localhost if you plan on connecting from a second computer
#more info: man x11vnc

* Create a file "~/.kde/Autostart/x11vnc" with the following contents:

#!/bin/bash
/usr/bin/x11vnc &

* Set the executable permissions on the autostart file:

chmod +x ~/.kde/Autostart/x11vnc

At this point you need to log out of KDE and back in to test your setup. I use SSH with port forwarding to establish my remote connections. That topic is beyond the scope of this document though. If you do not use port forwarding you will need to remove the "localhost" line from your .x11vncrc file.

Source: https://bugs.launchpad.net/ubuntu/+source/kdenetwork/+bug/39046

Advertisement

Follow

Get every new post delivered to your Inbox.