<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Lynch Consulting Blog - Mac OSX</title>
			<link>http://www.lynchconsulting.com.au/blog/index.cfm</link>
			<description>A blog about ColdFusion, PHP, Flash, Flex, Web Standards and a mish mash of other technologies</description>
			<language>en-us</language>
			<pubDate>Tue, 07 Sep 2010 12:47:52 --1000</pubDate>
			<lastBuildDate>Mon, 18 May 2009 21:47:00 --1000</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>mark@lynchconsulting.com.au</managingEditor>
			<webMaster>mark@lynchconsulting.com.au</webMaster>
			
			
			
			
			
			<item>
				<title>HOWTO find files that are not world readable</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2009/5/18/HOWTO-find-files-that-are-not-world-readable</link>
				<description>
				
				I ran across some permissions errors on content that some users uploaded to a website.  The files uploaded were not world readable so were coming up as forbidden:

This simple find command shows the offending files:

&lt;code&gt;
/usr/bin/find . -type f ! -perm -004
&lt;/code&gt;

A quickie but a goodie.

Cheers,
Mark
				
				</description>
				
				<category>Linux</category>
				
				<category>Mac OSX</category>
				
				<category>Open Source</category>
				
				<category>Systems admin</category>
				
				<category>Ubuntu</category>
				
				<pubDate>Mon, 18 May 2009 21:47:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2009/5/18/HOWTO-find-files-that-are-not-world-readable</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Installing Railo on Tomcat via Apache on Leopard - Step by Step</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2009/3/27/Installing-Railo-on-Tomcat-via-Apache-on-Leopard--Step-by-Step</link>
				<description>
				
				After a bit of fiddling and head scratching I managed to install Railo on Tomcat via Apache on my laptop running on OS X 10.5.6.
&lt;h2&gt;Tomcat&lt;/h2&gt;
Firstly, download &lt;a href=&quot;http://tomcat.apache.org/download-60.cgi&quot;&gt;Tomcat 6&lt;/a&gt;

extract content:
&lt;code&gt;
tar xvzf apache-tomcat-6.0.18.tar.gz
&lt;/code&gt;

Move Tomcat to a more secure place:
&lt;code&gt;
sudo mv apache-tomcat-6.0.18 /usr/local/tomcat
&lt;/code&gt;

&lt;h2&gt;Railo&lt;/h2&gt;
Download &lt;a href=&quot;http://www.railo-technologies.com/down.cfm?item=/railo/remote/download/3.0.2.001/custom/all/railo-3.0.2.001-jars.tar.gz&quot;&gt;Railo custom version&lt;/a&gt;

extract and move into Tomcat lib directory:
&lt;code&gt;
tar zxvf railo-3.0.2.001-jars.tar.gz
sudo mv railo-3.0.2.001-jars/* /usr/local/tomcat/lib
&lt;/code&gt;

Make Tomcat and Railo work together by modifying the web config file:
&lt;code&gt;
sudo nano /usr/local/tomcat/conf/web.xml
&lt;/code&gt;

add the following inside the &amp;lt;web-app&amp;gt; element:
&lt;code&gt;
&lt;servlet&gt;
&lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
&lt;servlet-class&gt;railo.loader.servlet.CFMLServlet&lt;/servlet-class&gt;
   &lt;init-param&gt;
      &lt;param-name&gt;configuration&lt;/param-name&gt;
      &lt;param-value&gt;{web-root-directory}/WEB-INF/railo/&lt;/param-value&gt;
      &lt;description&gt;Configuraton directory&lt;/description&gt;
   &lt;/init-param&gt;
   &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfm&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfml&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;servlet-mapping&gt;
   &lt;servlet-name&gt;CFMLServlet&lt;/servlet-name&gt;
   &lt;url-pattern&gt;*.cfc&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
&lt;/code&gt;

add the following inside &amp;lt;welcome-file-list&amp;gt; element:
&lt;code&gt;
&lt;welcome-file&gt;index.cfm&lt;/welcome-file&gt;
&lt;welcome-file&gt;index.cfml&lt;/welcome-file&gt;
&lt;/code&gt;

&lt;h2&gt;Apache&lt;/h2&gt;
Leopard OS comes with Apache 2, so you don&apos;t have to worry about installing it.  However, you need to download &lt;a href=&quot;http://tomcat.apache.org/connectors-doc/&quot;&gt;The Apache Tomcat Connector&lt;/a&gt; source code.

Next you need to compile the source so that the resulting binary file is compatible with your Intel Mac architecture.  I got this from &lt;a href=&quot;http://blog.lo-fi.net/2007/10/leopard-for-web-developer-installing.html&quot;&gt;Eric Rank&apos;s blog&lt;/a&gt;

cd into tomcat source:
&lt;code&gt;
cd tomcat-connectors-1.2.27-src/native
&lt;/code&gt;

Edit the apache-2.0/Makefile.apxs.in file.

Replace
&lt;code&gt;
mod_jk.la:
 $(APXS)  -c -o $@ -Wc,&quot;${APXSCFLAGS} ${JK_INCL}&quot; &quot;${JAVA_INCL}&quot; &quot;${APXSLDFLAGS}&quot; mod_jk.c ${APACHE_OBJECTS}
&lt;/code&gt;

with:

&lt;code&gt;
mod_jk.la:
 $(APXS) -c -o $@ -Wc,&quot;${APXSCFLAGS} -arch x86_64 ${JK_INCL}&quot; &quot;${JAVA_INCL}&quot; &quot;${APXSLDFLAGS} -arch x86_64 &quot; mod_jk.c ${APACHE_OBJECTS}
&lt;/code&gt;

configure the build files:
&lt;code&gt;
./configure --with-apxs=/usr/sbin/apxs
&lt;/code&gt;

now go into apache-2.0 directory and build:
&lt;code&gt;
cd apache-2.0
make -f Makefile.apxs
&lt;/code&gt;

Finally install
&lt;code&gt;
sudo make install
&lt;/code&gt;

Now specify the connection between Apache and Tomcat.  To do this you need to create workers.properties file.  I created mine in /etc/apache2.
&lt;code&gt;
sudo nano /etc/apache2/workers.properties
&lt;/code&gt;

Paste the following:
&lt;code&gt;
worker.list=default

worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1
&lt;/code&gt;

Now we need to modify the Apache httpd.conf file:
&lt;code&gt;
sudo nano /etc/apache2/httpd.conf
&lt;/code&gt;

Enable The Apache Tomcat Connector:
&lt;code&gt;
LoadModule jk_module    libexec/apache2/mod_jk.so
&lt;/code&gt;

Underneath that tell Apache where your workers.properties file is located and add some logging info (could be useful):
&lt;code&gt;
# Mod_jk settings                                            
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel debug
DirectoryIndex index.html index.htm index.cfm index.cfml
&lt;/code&gt;

&lt;h2&gt;Back to Tomcat&lt;/h2&gt;
To test our Railo installation, let&apos;s create a test site by adding a new virtual host in both Tomcat and Apache.  We do this by modifying Tomcat server.xml file (/usr/local/tomcat/conf/server.xml )
&lt;code&gt;
&lt;Host name=&quot;railo.local&quot; appBase=&quot;webapps&quot;&gt;
    &lt;Context path=&quot;&quot; docBase=&quot;/Library/Webserver/Documents&quot;/&gt;
&lt;/Host&gt;
&lt;/code&gt; 

&lt;h2&gt;Apache&lt;/h2&gt;
Now we need to create a virtual host entry in Apache as well:
&lt;code&gt;
&lt;VirtualHost *:80&gt;
        JkMount /*.cfm default
        ServerName railo.local
        DirectoryIndex index.cfm
&lt;/VirtualHost&gt;
&lt;/code&gt;

&lt;code&gt;
JkMount /*.cfm default
&lt;/code&gt;
Tells mod_jk to use the connector specified in your workers.properties file when it encounters a .cfm extension.

&lt;h2&gt;Important&lt;/h2&gt;
Notice that in my Apache VirtualHost entry there is no DocumentRoot.  I originally had it in there and it was breaking my Apache-Tomcat connection.  It was driving me mad.  It&apos;s probably because document root is already specified in /usr/local/tomcat/conf/server.xml.

One last thing, to start your Tomcat server type in this command:
&lt;code&gt;
/usr/local/tomcat/bin/startup.sh 
&lt;/code&gt;

shut down

&lt;code&gt;
/usr/local/tomcat/bin/shutdown.sh
&lt;/code&gt;

My assumption is that the above steps would be very similar on other operating systems as long as you use the correct file paths.

Good luck :-)

Marko
				
				</description>
				
				<category>Systems admin</category>
				
				<category>Railo</category>
				
				<category>Mac OSX</category>
				
				<category>HOWTO</category>
				
				<pubDate>Fri, 27 Mar 2009 14:45:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2009/3/27/Installing-Railo-on-Tomcat-via-Apache-on-Leopard--Step-by-Step</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Loading MySQL timezone info on Linux and Macs</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2008/9/8/Loading-MySQL-timezone-info-on-Linux-and-Macs</link>
				<description>
				
				MySQL has some really useful functions that make timezone support a bit easier &lt;a href=&quot;http://www.lynchconsulting.com.au/blog/index.cfm/2007/4/29/CFMX-applications-on-servers-with-different-time-zones&quot;&gt;as described in a previous blog post.&lt;/a&gt;.

However, you need to do a tiny bit of setup work before you can use the functions.  You need to load the timezone info from your system into the mysql db.

Thankfully, the MySQL Developers have included a very handy script that will do just that from a zoneinfo files which are used on Linux and on Mac&apos;s.

&lt;code&gt;
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql
&lt;/code&gt;

Obviously change the mysql params or add a -p if you have a password or are connecting to a remote server.

Check out the MySQL developer site for &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/time-zone-support.html&quot;&gt;full details on MySQL timezone support&lt;/a&gt;

Cheers,
Mark
				
				</description>
				
				<category>mysql</category>
				
				<category>Mac OSX</category>
				
				<category>Linux</category>
				
				<category>Database</category>
				
				<category>Open Source</category>
				
				<pubDate>Mon, 08 Sep 2008 13:30:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2008/9/8/Loading-MySQL-timezone-info-on-Linux-and-Macs</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Convert Mac Line endings to Linux</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2008/6/23/Convert-Mac-Line-endings-to-Linux</link>
				<description>
				
				I was cleaning up some source code yesterday and wanted to print it all out, however the Mac line endings (we use Mac&apos;s and Ubuntu mostly) were messing up the printout on my Ubuntu machine.

A quick google later and I found the solution, a program called &apos;tr&apos;, posting here for next time:

&lt;code&gt;
tr &quot;\r&quot; &quot;\n&quot; &lt; filewithmaclineendings.txt &gt; filewithunixlineendings.txt
&lt;/code&gt;


Obviously you could convert from Unix to Mac by reversing it.
&lt;code&gt;
tr &quot;\n&quot; &quot;\r&quot; &lt; filewithunixlineendings.txt &gt; filewithmaclineendings.txt
&lt;/code&gt;

Cheers,
Mark
				
				</description>
				
				<category>Linux</category>
				
				<category>Mac OSX</category>
				
				<category>Systems admin</category>
				
				<category>Ubuntu</category>
				
				<pubDate>Mon, 23 Jun 2008 08:13:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2008/6/23/Convert-Mac-Line-endings-to-Linux</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>DVD to iPod conversion - Linux, Mac &amp; Windows</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2008/5/17/DVD-to-iPod-conversion--Linux-Mac--Windows</link>
				<description>
				
				I&apos;ve been looking for a while for a way to convert DVD&apos;s and other movies that I have into iPod format and have been failing miserably.  That is until today, when I came across the unusually named &lt;a href=&quot;http://handbrake.fr/&quot;&gt;HandBrake&lt;/a&gt;.

It does exactly what is says on the tin and makes it very easy to copy dvd&apos;s.  Initially I used it from my Mac and it worked flawlessly.  

I also tried the Linux version on Ubuntu Hardy (8.04) which has no GUI but it is pretty simple when you get the hang of it.

Here&apos;s a typical command line:

&lt;code&gt;
 HandBrakeCLI --preset=&quot;iPod Low-Rez&quot; -i /media/cdrom -o myvideo.mp4 -t 2
&lt;/code&gt;

This reads from /dev/cdrom  and uses the handy &quot;iPod Low-Rez&quot; preset which fixes it all up nicely for the iPod. 


And here&apos;s one that takes the second title:
&lt;code&gt;
 HandBrakeCLI --preset=&quot;iPod Low-Rez&quot; -i /media/cdrom -o myvideo.mp4 -t 2
&lt;/code&gt;

The wiki has &lt;a href=&quot;http://handbrake.fr/trac/wiki/CLIGuide&quot;&gt;more information on command line usage&lt;/a&gt;.

Happy iPodding.

Cheers,
Mark
				
				</description>
				
				<category>Gadgets</category>
				
				<category>HOWTO</category>
				
				<category>Linux</category>
				
				<category>Mac OSX</category>
				
				<category>Open Source</category>
				
				<category>Ubuntu</category>
				
				<category>Windows</category>
				
				<pubDate>Sat, 17 May 2008 01:21:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2008/5/17/DVD-to-iPod-conversion--Linux-Mac--Windows</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Gmail, Docs, Calendar and Analytics standalone with Prism</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2008/3/25/Gmail-Docs-Calendar-and-Analytics-standalone-with-Prism</link>
				<description>
				
				I came across &lt;a href=&quot;http://wiki.mozilla.org/WebRunner&quot;&gt;Mozilla Prism&lt;/a&gt; the other day and while I&apos;m still deciding if it&apos;s going to be a permanent addition to my machine so far so good.

&lt;img src=&quot;http://www.lynchconsulting.com.au/blog/enclosures/prism-gmail.png&quot; alt=&quot;Screenshot of Prism Gmail&quot; align=&quot;right&quot;/&gt;
Prism is a cut down version of Mozilla which is designed to run single sites from icon - what&apos;s the use of that you may ask?  Well it allows you to have an icon on your desktop for Gmail or Google Calendar or docs or analytics and get to it nice and quickly.

It also free&apos;s up some much needed screen real-estate as all the other toolbars relevant for a web-developers browser can get in the way and are not used when you are using you email and calendar.

Additionally - as web developer I tend to restart firefox more often than some - and having my email seperated from that is nice.

Give it a try and see if you like it.  On Ubuntu Hardy you can do the following to install it:
&lt;code&gt;
#install calendar
sudo apt-get install prism-google-calendar
#install google docs
sudo apt-get install prism-google-docs
#install gmail
sudo apt-get install prism-google-mail
#install analytics
sudo apt-get install prism-google-analytics
&lt;/code&gt;

On other platforms (windows,mac or other linux versions) you can go to the &lt;a href=&quot;http://wiki.mozilla.org/WebRunner#Latest_Version&quot;&gt;Prism site and download it&lt;/a&gt;.

For the different applications check out the &lt;a href=&quot;http://wiki.mozilla.org/WebRunner#Bundles&quot;&gt;Bundles section&lt;/a&gt; or the &lt;a href=&quot;http://wiki.mozilla.org/WebRunner#User_Contributed_Bundles&quot;&gt;User contributed bundles section&lt;/a&gt;.

Obviously this shares a lot of similarities with the adobe AIR platform albeit not as full featured.  It will be interesting to see what further development plans there are for the prism platform.

Cheers,
Mark
				
				</description>
				
				<category>Windows</category>
				
				<category>Ubuntu</category>
				
				<category>Open Source</category>
				
				<category>Mac OSX</category>
				
				<category>Linux</category>
				
				<category>AIR</category>
				
				<pubDate>Tue, 25 Mar 2008 07:32:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2008/3/25/Gmail-Docs-Calendar-and-Analytics-standalone-with-Prism</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Pretty network diagrams and flow charts with Open Source software.</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2008/2/13/Pretty-network-diagrams-and-flow-charts-with-Open-Source-software</link>
				<description>
				
				I had been using &lt;a href=&quot;http://www.gnome.org/projects/dia/&quot;&gt;Dia&lt;/a&gt; for all my charts and diagrams, and it does a very good job.  The only downside is that it doesn&apos;t produce very pretty charts of the like of &lt;a href=&quot;http://www.omnigroup.com/applications/omnigraffle/&quot;&gt;Omnigraffle&lt;/a&gt;.

However, &lt;a href=&quot;http://www.ioncannon.net/utilities/123/10-tips-for-creating-good-looking-diagrams-using-inkscape/&quot;&gt;inspired by this article&lt;/a&gt;, I&apos;m starting to use a new solution, &lt;a href=&quot;http://www.inkscape.org/&quot;&gt;Inkscape&lt;/a&gt;, that fulfills my criteria that works on Linux, Mac and Windows.


&lt;table border=&quot;1&quot;&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;a href=&quot;http://www.gnome.org/projects/dia/&quot;&gt;Dia&lt;/a&gt;&lt;/th&gt;
&lt;th&gt;&lt;a href=&quot;http://www.omnigroup.com/applications/omnigraffle/&quot;&gt;Omnigraffle&lt;/a&gt;&lt;/th&gt;
&lt;th&gt;&lt;a href=&quot;http://www.inkscape.org/&quot;&gt;Inkscape&lt;/a&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Can create pretty pictures&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cross Platform (Linux, Mac, Windows)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No - Mac only&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open Source&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open file format (to work with version control)&lt;/td&gt;
&lt;td&gt;No - Binary&lt;/td&gt;
&lt;td&gt;No - Binary&lt;/td&gt;
&lt;td&gt;Yes - SVG&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Export to PNG&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

Now you may argue that Inkscape is not a diagraming tool but a generic drawing tool.  This is true, but with the addition of a few templates of pre-drawn items it become a very good diagramming tool.

I&apos;ve created a few simple flow chart elements which I use and also scoured the net for some SVG icons for network based diagrams which were sourced from &lt;a href=&quot;http://packages.ubuntu.com/gutsy/gnome/gnome-icon-theme&quot;&gt;Gnome (via Ubuntu)&lt;/a&gt; and from &lt;a href=&quot;http://www.quantum-bits.org/?p=57&quot;&gt;Quantum Bits&lt;/a&gt;.

&lt;h3&gt;Templates Previews&lt;/h3&gt;


&lt;img src=&quot;http://www.lynchconsulting.com.au/blog/enclosures/Diagram-Template.png&quot;
alt=&quot;Flow chart diagram preview&quot;  style=&quot;float:left&quot;&gt;

&lt;img src=&quot;http://www.lynchconsulting.com.au/blog/enclosures/Device-Template.png&quot;
alt=&quot;Computing devices preview&quot; style=&quot;float:left&quot;&gt;


&lt;h3 style=&quot;clear:left&quot;&gt;Download&lt;/h3&gt;
Download the svg templates (right click - Save As):
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.lynchconsulting.com.au/blog/enclosures/Diagram-Template.svg&quot;&gt;Flowchart  Template (SVG) (10k)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.lynchconsulting.com.au/blog/enclosures/Device-Template.svg&quot;&gt;Network Devices Template (SVG) (1.6M)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

Give it a try - it&apos;s very easy.
				
				</description>
				
				<category>Windows</category>
				
				<category>Ubuntu</category>
				
				<category>Software Architecture</category>
				
				<category>Open Source</category>
				
				<category>Mac OSX</category>
				
				<category>Linux</category>
				
				<pubDate>Wed, 13 Feb 2008 07:31:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2008/2/13/Pretty-network-diagrams-and-flow-charts-with-Open-Source-software</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>OS X Leopard and Ubuntu Screen sharing - HOWTO</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2008/1/31/OS-X-Leopard-and-Ubuntu-Screen-sharing--HOWTO</link>
				<description>
				
				I just go a nice shiny new Mac Mini today to use as a testing machine.  

&lt;img src=&quot;http://www.lynchconsulting.com.au/blog/enclosures/Ubuntu-Leopard-VNC.png&quot; align=&quot;right&quot;&gt;
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&apos;s new screen sharing and a bit of googling it&apos;s easy to connect both ways.

&lt;h3&gt;Ubuntu to OS X&lt;/h3&gt;

The Apple screen sharing uses a version of VNC - but the default VNC client on Ubuntu won&apos;t work with it - however &lt;a href=&quot;http://rclermont.blogspot.com/2008/01/using-ubuntu-vnc-client-to-connect-to.html&quot;&gt;thanks to this post&lt;/a&gt; I discovered the xtightvncviewer will work.

You need to configure your Mac to allow it with the following settings:
&lt;ul&gt;
&lt;li&gt;Open &quot;System Preferences&quot;&lt;/li&gt;
&lt;li&gt;Select &quot;Sharing&quot;&lt;/li&gt;
&lt;li&gt;Ensure &quot;Screen Sharing&quot; is on&lt;/li&gt;
&lt;li&gt;Select &quot;Computer Settings&quot; on the Screen sharing page&lt;/li&gt;
&lt;li&gt;Tick both boxes - &quot;Anyone my request...&quot; and &quot;VNC viewers may control...&quot; and add a password.&lt;/li&gt;
&lt;/ul&gt;

Note the address of your machine also - eg: vnc://192.168.0.55 or similar

Then over to the ubuntu machine and install xtightvncviewer:
&lt;code&gt;
$ sudo apt-get install xtightvncviewer
&lt;/code&gt;

Then connect to the machine with: (change the ip address as relevant)
&lt;code&gt;
$ xtightvncviewer 192.168.0.55
&lt;/code&gt;
You will then get a prompt - enter the password and you should be good to go.


&lt;h3&gt;OS X to Ubuntu&lt;/h3&gt;
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:

&lt;ul&gt;
&lt;li&gt;Select &quot;System-&gt;Preferences-&gt;Remote Desktop&quot; from the menu&lt;/li&gt;
&lt;li&gt;Tick the following boxes: &quot;Allow others to view...&quot;, &quot;Allow others to control...&quot;, and &quot;Require ... password&quot; and enter a password. &lt;/li&gt;
&lt;/ul&gt;

Then open up safari and type in the the address of you Ubuntu machine with vnc:// in front of it. eg:

&lt;code&gt;
vnc://192.168.0.255
&lt;/code&gt;

It will give a warning about the vnc server not supporting &quot;Keystroke encryption&quot; but it will work (albeit not as securely as a Mac to Mac connection) - but good enough for your local network.

That&apos;s it - I did notice that it also showed up in Finder-&gt;Shared which I presume it found via Avahi/Bonjour - which is nice.

Hope it helps.
Cheers,
Mark

&lt;h3&gt;Update:&lt;/h3&gt;
&lt;strong&gt;Note that on Ubuntu Intrepid 8.10 the standard Vinagre remote desktop viewer now works perfectly with OSX 10.5.  The version I am using is 2.24.1.  The authentication works a treat and it even picks it up with Avahi/Bonjour.&lt;/strong&gt;
				
				</description>
				
				<category>Ubuntu</category>
				
				<category>Mac OSX</category>
				
				<category>Linux</category>
				
				<category>HOWTO</category>
				
				<pubDate>Thu, 31 Jan 2008 19:50:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2008/1/31/OS-X-Leopard-and-Ubuntu-Screen-sharing--HOWTO</guid>
				
			</item>
			
		 	
			</channel></rss>