OS X Leopard and Ubuntu Screen sharing - HOWTO
To make my life easy I want to be able to connect to it remotely from my Ubuntu (Gutsy 7.10) laptop. Luckily with Leopard's new screen sharing and a bit of googling it's easy to connect both ways.
Ubuntu to OS X
The Apple screen sharing uses a version of VNC - but the default VNC client on Ubuntu won't work with it - however thanks to this post I discovered the xtightvncviewer will work.
You need to configure your Mac to allow it with the following settings:
- Open "System Preferences"
- Select "Sharing"
- Ensure "Screen Sharing" is on
- Select "Computer Settings" on the Screen sharing page
- Tick both boxes - "Anyone my request..." and "VNC viewers may control..." and add a password.
Note the address of your machine also - eg: vnc://192.168.0.55 or similar
Then over to the ubuntu machine and install xtightvncviewer:
Then connect to the machine with: (change the ip address as relevant)
OS X to Ubuntu
Once I had that working I was keen to see if I could get it working the other way:You need to enable remote desktop sharing in Ubuntu:
- Select "System->Preferences->Remote Desktop" from the menu
- Tick the following boxes: "Allow others to view...", "Allow others to control...", and "Require ... password" and enter a password.
Then open up safari and type in the the address of you Ubuntu machine with vnc:// in front of it. eg:
It will give a warning about the vnc server not supporting "Keystroke encryption" but it will work (albeit not as securely as a Mac to Mac connection) - but good enough for your local network.
That's it - I did notice that it also showed up in Finder->Shared which I presume it found via Avahi/Bonjour - which is nice.
Hope it helps. Cheers, Mark




:) great tip!
<blockquote>sean@ubuntu-hp:~$ xtightvncviewer 10.0.0.9
VNC server supports protocol version 3.889 (viewer 3.3)
VNC connection failed: Incompatible Version.
</blockquote>
I am missing something here?
What version of xtightvncviewer are you using?
try: xtightvncviewer -help
TightVNC viewer version 1.2.9
I'm using 1.2.9 and it works a treat.
Cheers,
Mark
lefty@debian:~$ xtightvncviewer alpha.sierrabravo.net
VNC server supports protocol version 3.889 (viewer 3.3)
Password:
VNC authentication succeeded
Desktop name "Administrator’s MacBook"
Connected to VNC server, using protocol version 3.3
VNC server default format:
32 bits per pixel.
Least significant byte first in each pixel.
True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Using default colormap and translating from BGR233. Pixel format:
8 bits per pixel.
True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Got 256 exact BGR233 colours out of 256
Using shared memory PutImage
xtightvncviewer: VNC server closed connection
ShmCleanup called
lefty@debian:~$