The problem: you want to VNC into your work machine, an Ubuntu 9.04 jaunty, over a VPN but not have everything you do show up on your screen at work. Obviously, the client machine doesn’t matter — you just need a VNC viewer.
The background: there is an old post from 2006 with 60 pages of information on this. The url is this link.
It has been summarised with some personal feedback in 2007 at this link.
Unfortunately it does not work on Ubuntu 9.04 jaunty.
Here are the steps:
- Do what this link suggests.
- Change
service Xvnc
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/bin/Xvnc
server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
port = 5901
}
to
service Xvnc
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/bin/Xvnc
server_args = -inetd :1 -query 127.0.0.1 -geometry 1024x768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
port = 5901
}
-
Do
sudo mkdir -p /etc/X11/xserver
- Create a file SecurityPolicy in /etc/X11/xserver. You can find one on the Web. I started with this link.
- Create a file rgb.txt in /etc/X11. I used the one from the vim installation.
- Reboot and you’re done.
Why not include a copy of the SecurityPolicy file here?
http://ubuntuforums.org/showthread.php?t=186035