One of the first unpleasant surprises I had when I first tried MacOSX was that I couldn't connect to it using standard vnc clients available for linux like realvnc or tinyvnc. I was actually able to connect but after the authentication the client would just hang.Â I guess the protocol used by apple is a bit different then the protocol used by the rest of the vnc clients.
here are your options:
- use another Mac with a vnc client likeÂ theÂ non free TimbuktuÂ or the open source Chicken of the VNC.
- if you have ssh access to the mac where you want to connect over vnc you can set up Vine server ( also known as OSXvnc ) . Vine is a vnc server that is compatible with realvnc client running onÂ linux or windows machines.
I chose the second option when possible because I don't want to fire up the macmini every time I needed to connect to a remote machine .
The vineÂ server comes with a nice GUI and can coexist with the standard MacOSXÂ vnc server listening on the next available port ( 5901 ) or you can just stop the standard server if you don't need it.
Of course if the system is really remote, you don't have another mac at hand and this is the first time you access it you wouldn't be able to use the GUI so here is how to set start vine form the command line:
- connect to the system where you want to install vine over ssh as root or suÂ root after you have connected as a normal user
- downloadÂ Vine3.0.dmgÂ in your home folder orÂ scp it there .
- attach the image:Â hdiutil attach Vine3.0.dmgÂ Â Â -Â This will make it's contents available in /Volumes/Vine3.0
- before you start the server you have to create a password for authentication:
/Volumes/Vine3.0/Vine\ Server.app/storepasswdÂ Â Â <yourpasswordhere> password_file
- start the server:Â /Volumes/Vine3.0/Vine\ Server.app/OSXvnc-serverÂ -rfbauth password_file
The server will output some debuggind information and the last line should be something like:
Started Listener Thread on port 5901
The port can be 5900 if the standard vnc server is not already listenting on 5900
- leave the ssh session open and use something like realvnc vncviewerÂ to connect to your server on port 5901 :
The only disadvantage of this method is that it requires a bit of work in order to be able to connect but this can be avoided by setting the Vine server to start on boot and that will be explained in another post 🙂