Installing OS X Server 10.5 from the command line
I upgraded one of my last remaining Tiger servers to Leopard this morning, and ran into a very odd problem. Every time it got to the install screen, as it appeared to be determining what to show in the progress bar, it semi-crashed. A message would pop up, and the entire window would disappear, leaving an unresponsive menu. (I could choose items from the menus, but they didn’t do anything—not even “Quit”.)
The error dialog disappeared so quickly that I couldn’t read it; it said something about “DVD”. I was considering getting a camera to film it so that I could freeze frame on the error message, when I remembered that OS X installs can be done on the command line. If I could start the installation from the command line, that ought to show me the error message.
I booted back into Tiger and opened Safari, and wrote down these commands from Apple’s command-line manual:
- Show available volume names: /usr/sbin/installer -pkg /System/Installations/Packages/OSInstall.mpkg -volinfo
- Install the OS: /usr/sbin/installer -pkg /System/Installations/Packages/OSInstall.mpkg -target /Volumes/drivename -verbose
Sure enough, it started the installation process… and then continued right on through where the error should have shown up. That wasn’t exactly what I wanted—I don’t like to force installs when there’s an error, I prefer to fix the error—but the installation went fine. Whatever error was being displayed in the window, this bypassed it entirely.
- Mac OS X Server Command Line Administration
- “This guide describes Mac OS X Server command-line tools and commands, including the syntax, purpose, and parameters, and provides examples of usage and output.”
More Mac OS X Server
- Adding PDO_MYSQL to Mac OS X Leopard Server
- There’s “a feature request with engineering to include pdo_mysql” in Mac OS X Server. Fortunately, adding it is only moderately complex.
- checkpw failed, trying legacy method
- Tiger server does have auth_module available, it just isn’t listed in the httpd.conf file.
- No distutils? Install Xcode
- If Distutils is not available on Mac OS X Leopard, install the Xcode developer tools. Also, the upgrade process I followed for upgrading from Mailman 2.1.9 to 2.1.12.