OS X Setup

November 19, 2005

I recently setup my PowerBook from scratch again; some quick notes, basically for myself but maybe useful for others. I will update it as I add more and more stuff I had but didn’t remember to move initially.

Mac OS X Tiger installation

After the reboot, I make some customizations:

Applications

Next, I install my favorite applications:

Restoring Settings

Most decent Mac OS X applications keep their settings somewhere under ~/Library/Application Support. For NetNewsWire, ecto, and Adium, copying the respective subdirectories to a new installation works perfectly; this is how I move stuff from my old installation to a new one.

Miscellaneous Packages

OS X comes with almost every command line tool you need to be productive. Via DarwinPorts, I add

Other stuff

Lock screen

One of the few things I missed from Windows was the ability to lock the box via a simple key stroke. Putting

/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend

on a QuickSilver trigger does the trick.

Virtual hosts

OS X comes with Apache pre-installed, the easiest way to enable it is to switch on “Personal Web Sharing” in the Sharing preferences pane. To simplify sandboxed Web development, I use a very neat script called “virtualhost.sh” which you can get here; it essentially turns setting up a new virtual host including a host name entry into a 0.5 second affair.

MySQL

MySQL is now trivially easy to set up on OS X, since there’s a Mac installer package. If it doesn’t actually have to serve any DBs, it consumes almost no resources, so I just leave it up and running (i.e. I install the startup item and the preference pane). Changing the root password is mandatory, the easiest way I have found is:

 /usr/local/mysql/bin/mysql -u root
 set password for root@localhost=password('whatever');

About

This page contains a single entry from Stefan Tilkov's Random Stuff posted on November 19, 2005 11:12 PM. The previous post in this blog was "Just" Use XML. The next post in this blog is Informed Opinion on XML Schema. Many more can be found on the main index page or by looking through the archives.

Comments