For some reason I’m having a difficult time remembering how to switch virtual terminals when running Ubuntu under VirtualBox on Mac OS X (probably due to how infrequently I need to run this). The shortcut key sequence is:

fn + option + F2

Note on some MacBook Pro’s fn + command (host key) + F2 also works

I needed to add new MIME types to Plesk running IIS 6 in order to allow download of Microsoft Office 2007 & 2010 files saved with the new office extensions (.docx, .xlsx, and .pptx). IIS 6 restricts the files it will serve by default, which is a good thing in my opinion, requiring administrators to explicitly configure support for additional MIME types.

Adding new extensions and their respective MIME types is pretty straightforward in IIS as you can verify from Microsoft here:

  1. Open IIS
  2. Right click “Web Sites” and select “Properties” to modify the global behavior (to modify a specific website right click the website instead)
  3. Select “HTTP Headers”
  4. Select “Mime Types”
  5. Enter the extension you wish to add and the appropriate mime type
  6. Repeat as needed for each extension
  7. Click “OK” to save your work and close all the dialogs

The tricky part is knowing the correct MIME type to use for each file extension. I had to search the Internet to find a list of MIME types I could trust and use. I chose to trust Microsoft and used the Office 2007 MIME type information here. Here are the MIME types I used:

  1. Microsoft Word (.docx): application/vnd.openxmlformats-officedocument.wordprocessingml.document
  2. Microsoft Excel (.xlsx): application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  3. Microsoft PowerPoint (.pptx): application/vnd.openxmlformats-officedocument.presentationml.presentation

Don’t forget to restart IIS or at least the World Wide Web Publishing service.