Archive

Archive for November, 2009

Remote Desktop on Xubuntu 9.10

November 25th, 2009

So I was planning to work from home on the Friday after thanksgiving so I wanted to be able to access my work desktop from home just in case.  Normally I just ssh and use terminals and such, but for some reason I decided I wanted a full desktop.  I use Xubuntu at home and at the office, and there is no default VNC setup like there is with Ubuntu and Kubuntu.  A couple of quick Google searches and I came across this post:

vincentkong.com » Blog Archive » Remote Desktop on Xubuntu.

It pointed me in exactly the right direction.  Just a few package differences for Xubuntu 9.10.

Here are the steps I used:

Install VNC Server and tools

$ sudo apt-get install x11vnc vnc4-common

Once the tools are installed, setup a password for the VNC server:

$ sudo vncpasswd /root/.vncpasswd

Install and configure xinetd

$ sudo apt-get install xinetd

Now, enable the vnc service via a new xinetd.conf using whatever text editor you like, I prefer vim.

$ sudo vim /etc/xinetd.d/x11vnc

service x11vnc
{
port = 5900
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/x11vnc
server_args = -inetd -o /var/log/x11vnc.log -display :0 -auth /var/lib/gdm/:0.Xauth -many -bg -rfbauth /root/.vncpasswd
disable = no
}

Finally, restart xinetd.conf:

$ sudo /etc/init.d/xinetd restart

You should now be able to connect with a VNC Viewer.  Under Xubuntu I prefer the vinagre package.

$ sudo apt-get install vinagre

Thats it.  Thanks much to Vincent for his initial post.  This helped me tremendously.

marc Projects ,