
The image at left shows a windowed VNC session where I am sharing the desktop of my Ubuntu machine (running Hardy Heron 8.04) with my Mac (running OS X Leopard 10.5.2). If you have installed Avahi following this post and are running Ubuntu Hardy Heron (8.04), then it is easy to configure Ubuntu to use Vinagre (a VNC client that ships with Hardy Heron) to remotely share the desktop with machines running OS X on your local area network (LAN) via the Share Screen... button in Finder. The following guide will gets you started. (Note: In order to share the Ubuntu screen, the following configuration requires you to be logged into a Ubuntu session. Remaining logged into Ubuntu while you are away from the machine is not secure, but for my purposes and perhaps yours it is acceptable. I have yet to figure out how to enable resumable sessions that grant access to the Ubuntu login screen.)
To share your Ubuntu desktop with OS X, a few Vinagre preferences must be set so that it will accept connections from your Mac. Open the Vinagre preferences panel using the following terminal command.
In the general tab check “Allow other users to view your desktop”, “Allow other users to control your desktop”, and “Require the user to enter this password”. Uncheck “Ask you for confirmation” and then enter a password where indicated. It can be the same password as the one associated with your user account on the Ubuntu machine. In the advanced tab, ensure that everything is uncheck except for “Use an alternative port”. Specify port 5901 in the box next to this option. In may be tempting to check the “Require encryption” option, but for some reason when this is enabled, OS X can not connect to Vinagre. Close the preferences panel.
To advertise the VNC client to Macs on your LAN, a few changes must be made to the Avahi configuration. If you have not installed Avahi, do so now following this post. Create a file to specify information about the VNC server.
Copy and paste the following XML into this file.
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_rfb._tcp</type>
<port>5901</port>
</service>
</service-group>
Then, restart Avahi.
At this point, the Share Screen... button should appear on your Mac running OS X Leopard when you select the Ubuntu machine running Vinagre in Finder. As long as you are logged into a session on the Ubuntu machine, you will now be about to view the Ubuntu screen by clicking this button and entering the password that you specified in the Vinagre preferences panel. Note that OS X will throw a warning when you try to connect because the connection is not secure, but the connection will work. If anyone figures out how to configure encrypted screen sharing, please leave a comment below.
This post is one of five in a series on how to integrate Ubuntu into a Mac OS X Network. Check out the others linked to below.
Ubuntu Guide: Configure a Netatalk File Server Based on Apple Filing Protocol (AFP)
Ubuntu Guide: Configure Avahi to Broadcast Services via Bonjour to Mac OS X
Ubuntu Guide: Configure Vinagre to Share the Screen with Mac OS X
Ubuntu Guide: Configure a Firefly (mt-daapd) Streaming Media Server for iTunes and Front Row
Ubuntu Guide: Configure Netatalk to Share a USB Printerr

Add New Comment
Viewing 4 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks
(Trackback URL)
April 30, 2008 at 9:35 am
[...] 3) Ubuntu Guide: Configure Vinagre to Share the Screen with Mac OS X [...]
April 30, 2008 at 9:44 am
[...] Filing Protocol (AFP) Ubuntu Guide: Configure Avahi to Broadcast Services via Bonjour to Mac OS X Ubuntu Guide: Configure ...
April 30, 2008 at 10:33 am
[...] Filing Protocol (AFP) Ubuntu Guide: Configure Avahi to Broadcast Services via Bonjour to Mac OS X Ubuntu Guide: Configure ...
May 1, 2008 at 1:09 pm
[...] Filing Protocol (AFP) Ubuntu Guide: Configure Avahi to Broadcast Services via Bonjour to Mac OS X Ubuntu Guide: Configure ...
May 1, 2008 at 1:17 pm
[...] Filing Protocol (AFP) Ubuntu Guide: Configure Avahi to Broadcast Services via Bonjour to Mac OS X Ubuntu Guide: Configure ...
November 15, 2008 at 8:02 pm
[...] Configure Vinagre in Ubuntu to Share the Screen with Mac OS X [Ubuntu Guide] : Zaphu (tags: ubuntu vinagre ...
January 26, 2009 at 8:14 am
[...] sudo vim /etc/avahi/services/rfb.service. Copy and paste the following XML into this file. … Read more… [...]