Auto Close Print Queue in OSX Leopard

When printing in Leopard, the print queue application remains open after the print job is done. In Tiger and all previous versions of OS X, the application would quit automatically as soon as the print job was finished. I find it very irritating to have to go and quit the application after every print job.

To stop this, after a print job, or if/when you have a printer open in the dock, right click it in the dock and choose auto quit. I did this with one printer and it changed the settings on all of mine.

OSX Speech Commands

This is a cool tip that will work on and OSX Computer.

You can get your mac to sing and swear and talk anything via a simple Shell Script.

You can even get my mac to talk… I will be able to hear what you type ( But you can’t :( )

If you are on a mac, try this at home….

osascript -e 'say "Sheldon is Awesome!" using "Cellos"'

Installing PHP5 and mySQL on Mac OSX Leopard

There has been a lot of posts on a lot of sites that explain how to get PHP and mySQL working & talking on OSX Leopard, but none that are fully step by step. So with thanks to The Busy Geek ( ), Here is a comprehensive guide.

You will need a very basic knowledge of using OSX Terminal ( Command Line Commands) and your root password.

Step 1:

Go to and download the copy that matches your Machine. In my case because I am on a G4 PowerPC iBook, I had to download the 10.4 version (Mac OS X 10.4 (PowerPC, 32-bit)) as there is no 10.5 version for PPC.

Once you have downloaded the package, install all 2 packages, and the preference pane.

Installing the MySQL packages.
Installing the MySQL packages.

Step 2:

Open Terminal ( Applications / Utilities / ) and log in as root;

sudo su

Enter your root password when prompted.
Navigate to your mysql directory;

cd /usr/local/mysql

If you view the directory you should see something like the following;


COPYING			data		scripts
INSTALL-BINARY		include		sql-bench
README			lib		support-files
bin			man		tests
configure		mysql-test

Next we start mySQL.

./scripts/mysql_install_db --user=mysql

It should run a whole lot of commands, starting with…

Installing MySQL system tables...

Once that has finished we add the mySQL User permissions

./bin/mysqld_safe --user=mysql &

Which will ( or should ) give this..

Starting mysqld daemon with databases from /usr/local/mysql/data

Now the mySQL root user’s password. and then confirm password and database location.

./bin/mysqladmin -u root password '**PASSWORD**'
./bin/mysqladmin -u root -h **IP_ADDRESS** password '**PASSWORD**'

Now, All going well, Lets hope you get this error:

./bin/mysqladmin: connect to server at '**IP_ADDRESS**' failed
error: 'Host '**IP_ADDRESS**' is not allowed to connect to this MySQL server'

Thats good news, This means mySQL is running and that is step 2 finished.

Step 3:

Next Step, We will install PHP, You think huh? Apple already has a copy of PHP pre-complied in OSX?
Yeah, true, but ( No Offense Apple ) its shit.

Still as root user:

cd /usr/local/

We want to download the newest build of PHP from Marc Liyanage’s site. Thank you to Marc, who has openly releasd and supported Great PHP builds for years! And totally for free!
* Make sure this path represents the newest version.

curl -O

We have used cURL as OSX does not support wGet. Remember the -0.

You will see if download like this…

 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 51 85.2M   51 43.4M    0     0  47790      0  0:31:10  0:15:54  0:15:16 52563

Once the download has completed, uncompress it with this command:

tar -zxvf php5-5.2.5-6-beta.tar.gz

Making sure that the file name represents the downloaded file name.
(z = gunzipp, x = uncompress, v = view, f = force ).

View the dir;


You should get a directory looking like this;

OpenSourceLicenses	include		mysql-5.0.51b-osx10.4-powerpc
OpenSourceVersions	lib		php5
bin			mysql		php5-5.2.5-6-beta.tar.gz

Go into the PHP5 Directory; Then view the dir.

CD php5
bin			etc		info	php.d
entropy-php.conf	include		lib		man		share

Then Copy the entropy-php.conf file in to the Apache2 Dir installed by Apple.

cp entropy-php.conf /etc/apache2/other/

Now we need to tell Apache to use our new version of PHP and not the original Apple build.

cd /etc/apache2/

Open the httpd.conf and comment out the following line.

LoadModule php5_module        libexec/apache2/

by placing a # in front of it.

#LoadModule php5_module        libexec/apache2/

To Save your changes press “ctrl x”, there will be a prompt to save, press “y”, then press “return” to save with the same filename.

Now restart Apache with this Command

apachectl restart

And we are done.

Installing PHP and MmySQL Summary

Begin writing your PHP/mySQL applications.

You can access your local Apache environment at two locations:		/Library/WebServer/Documents/

or for your User account:		/Users/username/Sites/

Enjoy :)

Installing Windows in my PowerPC iBook running OSX Leopard

I don’t have my Intel Mac any more,  Until I finally get around to upgrading this iBook to an Intel based mac I can’t use programs like Parraels or VMware Fusion to run Linux or Windows operating systems on my mac.

I need to test my pages in Microsoft Internet Explorer,  and with out having a dedicated Windows machine for that one purpose I could not,  Until I came across Q.  

Q Emulator Q-0.9.0a89  is a free port of QEMU for OS X, that allows you to run Linux, most versions of Windows and many other operating systems on your Mac.

With the release of Intel based Macs, there have been several applications developed for running Windows on your Mac, with Parallel Desktop and Boot Camp being the most popular. Q emulator (QEMU) is a free alternativeapplication, that takes advantage of OS X most advanced technologies like openGL and CoreAudio.



  • Runs On Panther, Tiger And Leopard
  • Runs in Intel or PowerPC Mac’s
  • Switch Between Any Guest Computers
  • Restart A Guest Computer At Any Time
  • Exchange Files Between Host And Guest Computers
  • Import/Export Guest As Executable Packages
  • Supports Toolbar In Full Screen Mode Now
  • Much More
You Need a copy of the Operating system you wish to install,  In my case Microsoft Windows XP SP3.
Installation was easy as,  Insert the Windows dick in to my mac,  open Q,  Select the Guest PC Menu -> New Guest PC.  And Install like any other Windows installation,  Slow and sluggish..  It took quite a while on my machine,  But I  was using it the whole time while installing it in the background.
It runs well once it is all installed,  It will run at the same resolution as your current system with Shard Ram and video.
I’m running it now to write this and luckily or not,  I still havn’t got the Blue Screen of Death (yet). 
Found on
Found on