Donations accepted

Hosted on verot.net

replace krfb with xVNC on KDE

I use VNC to remotely use a few machines in my network. And I use KDE. I happens so that krfb, the KDE desktop sharing server, is pretty bad. On all my setups, it eats up 100% of the CPU resources, making it difficult to use. And that, it is when it actually accepts the connection without crashing half a second later.

So, I install xVNCserver instead of krfb, and have it to start when KDE starts.

Remote machine setup 

Install the packages

sudo apt-get install x11vnc vncserver

Set your VNC password

vncpasswd

Set xVNCserver to start with KDE

echo "#! /bin/sh" > ~/.kde/Autostart/x11vnc
echo "x11vnc -rfbauth ~/.vnc/passwd -bg -forever" >> ~/.kde/Autostart/x11vnc
chmod 700 ~/.kde/Autostart/x11vnc

Eventually, deactivate krfb and start manually xVNCserver for the first time

x11vnc -rfbauth ~/.vnc/passwd -bg -forever

Local machine setup

You should now be able to connect, from your local machine, to the remote machine (10.1.1.25)

vncviewer 1.1.1.25:5901

In a local network, you might want to connect to the remote machine without entering your password. In order to do so, create a local VNC password file

vncpasswd ~/.vnc/remote_passwd

Then you can create yourself a shortcut or an alias on the local machine, with the following command

vncviewer 10.1.1.25:5901 -passwd ~/.vnc/remote_passwd

Conclusion

That's all! Works flawlessly, I didn't manage to crash it, and the CPU use is about 20% (the remote machine is a PIII)