Hello All,
This post will mostly be a rehash of the information contained here: http://kubuntuguide.org/Lucid#X11VNC_Server
However, I wanted to share my additional findings with successfully getting x11vnc server to run on the latest Kubuntu.
---
Before starting we need to make a backup of the MIT-COOKIE auth file. Having this file will allow us to run x11vnc as being non-root, and eliminate much of the configuration headaches involved.
The file will be located in:
In my case it was: /var/run/xauth/A:0-m7qo9b (note this file name will frequently change, necessitating copying this to a specific directory.)
Create a new directory in ~/.vnc for storing files
Copy the MIT-COOKIE auth file as root.
Follow the instructions here for installing x11vnc and creating a password: http://kubuntuguide.org/Lucid#X11VNC_Server
The following script for running x11vnc is the only other area where I'll deviate from the Kubuntuguide website:
The -auth switch specifically points to the MIT-cookie auth file, and -noxdamage has been added to prevent Compiz from creating additional display issues. However I would suggest changing the RFB or listening port to a non-standard one for security reasons.
Create a startup script:
Be sure to open the corresponding ports on your firewall.
Please respond with any additional suggestions, as I am by no means an expert and I am positive this configuration can be greatly improved upon. But I did want to share this information with the Kubuntu community.
This post will mostly be a rehash of the information contained here: http://kubuntuguide.org/Lucid#X11VNC_Server
However, I wanted to share my additional findings with successfully getting x11vnc server to run on the latest Kubuntu.
---
Before starting we need to make a backup of the MIT-COOKIE auth file. Having this file will allow us to run x11vnc as being non-root, and eliminate much of the configuration headaches involved.
Code:
ps wwaux | grep auth
Code:
/var/run/xauth/
Create a new directory in ~/.vnc for storing files
Code:
mkdir ~/.vnc
Code:
sudo cp /var/run/xauth/your_file_name ~/.vnc
The following script for running x11vnc is the only other area where I'll deviate from the Kubuntuguide website:
Code:
x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -auth ~/.vnc/your_auth_file -noxdamage -display :0
Create a startup script:
Code:
echo "x11vnc -forever -rfbport 5900 -rfbauth ~/.vnc/x11vnc.pass -o ~/.vnc/x11vnc.log -auth ~/.vnc/your_auth_file -noxdamage -display :0" > ~/.kde/Autostart/x11vnc.sh chmod +x ~/.kde/Autostart/x11vnc.sh
Please respond with any additional suggestions, as I am by no means an expert and I am positive this configuration can be greatly improved upon. But I did want to share this information with the Kubuntu community.