Updating Software

One thing about testing tools – you have to do regular software updates and test the updated software. This is one of those days.

Testing MarsEdit post.

Rename the blog?

Rightfully (moving forward) I should rename this to OS X Things and remove the Mac.

Of course almost all of the posts really do refer to “Mac OS X Things”, so I should leave it alone.

There is a post about postfix getting stepped on.

There should be a post about the removal of /private/etc/apache2/users/* which sort of messed up my web serving since I actually included those files. Well, not me, the apache2 port in MacPorts caused them to be included.

I am back up and running pretty much completely in OS X (as opposed to Mac OS X) not server.


Fix for postfix in Mac OS X 10.8 Mountain Lion

After installing OS X 10.8 Mountain Lion, a few things in our web development environment stopped working (namely Apache with multiple vhosts, BIND/wildcard DNS, Phusion Passenger and the rmagick2 gem, and postfix). The reason being is that Apple overwrites all of the configuration files that those tools rely on (although the old ones are all backed up with an appended ~previous, so fixing is relatively straightforward). We rely on postfix for sending mail locally via smtp using PHP’s mail() (i.e. sendmail) or Rails’ ActionMailer.

Fix for postfix in Mac OS X 10.8 Mountain Lion.

I didn’t find the backup copy of the plist – mine were just, simply, blasted.

10.7: Enable the FTP server

Apple seemingly dropped the FTP Server support in Mac OX Lion. Only the GUI has been removed and the FTP Server can be activated. You can still enable it with the command line. To start it type the Terminal command:

sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist

To stop it:

sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist

via 10.7: Enable the FTP server – Mac OS X Hints.

Advanced readline settings for bash in Terminal – Mac OS X Hints

The bash shell used in the Terminal application can be tweaked a little for better interactive experience, by saving the following lines as .intputrc in your home directory:

via Advanced readline settings for bash in Terminal – Mac OS X Hints.

The behavior of ‘bash’ is changed by more files that .bash_profile. In particular, the ‘readline’ settings are found in .inputrc – bashed my head against the wall for a while on a system that didn’t ignore case on filename completion.



Send websites and docs to iBooks

With iTunes 9.2 and iOS 4, the iBooks 1.1 app for iPad, iPhone and iPod touch can store and view PDF files, together with EPUB files. If you want to quickly add a document or a web page to your Books collection in iTunes, all you need to do is to create an alias of iTunes and drag it to ~/Library/PDF Services. Now, when youre browsing the web or viewing documents and you decide that you want to read them later on a portable Apple device just hit Print, click the PDF button on the bottom left corner of the window and choose iTunes. iTunes will launch and receive the PDF. Next, sync your device and youre ready to go.

via Send websites and docs to iBooks – Mac OS X Hints.