Everybody Staze...

Nobody leavz...

  • Home
  • About Me
    • LinkedIn
    • Lab
  • Contact
  • Links
  • Reviews
  • Sitemap
  • Weather
You are here: Home / 2010 / Archives for March 2010

Archives for March 2010

Mac Mini Server

2010/03/10 By staze

Mac Mini ServerIn late January, I was able to upgrade my server to a Mac Mini Server. This is a pretty sweet little box. 2 500GB HDs, 4GB of ram, Intel C2D 2.53ghz. No optical drive, but that’s fine with me, since you can use remote drive, or purchase one of the USB optical drives for the MacBook Air.

Initial setup was quite easy, once I found a copy of “Remote Install” to run on my PowerMac G5. This utility is basically “NetBoot” in an extremely simple interface. It allows the Mini Server to netboot the install DVD. I then changed the HDs to be in a RAID1, and installed 10.6. That took a bit, but other than that, it was quite painless.

bonnie++ reports look like:
/usr/local/sbin/bonnie++ -d / -s 8G -u root:wheel -qfb
server.example.com,8G,,,58807,12,27984,5,,,110101,8,212.3,0,16,12352,59,+++++,+++,
8137,47,543,5,+++++,+++,231,3

Which, isn’t bad at all for dual 5200rpm drives. The machine shipped with two Hitachi HTS545050B9SA02.

Upgrading from the previous server (a Powerbook G4, 1.67ghz, 2GB of RAM, and a single 80GB HD) to this new machine was, to put it simply, breathtaking. The average load on this new machine is consistently less than 0.05, yet on the old PB, it was often upwards of 0.50. So, by that regard, about 10x the performance (realistically, probably more like 6-8x as fast). =) Also, there is a noticeable improvement in performance of the Drobo. I’m pretty sure the FW800 port on the Powerbook is flakey. Added bonus is the 64-bit nature of the new machine… which is really quite nice (really the main time I’ve encountered it is playing with bigint’s in PHP). Also means I can upgrade the ram to 8GB when the prices come down on DDR3 SO-DIMMs.

Add to that the fact that I can now run 10.6, and am not suck with the PPC OS’s, it’s great.

The only thing Apple could have done better? Remove the Mini-DVI port and add a second gig-E port. If they did that, I could probably start using these things at work rather than Xserves. =) Especially if I had an iSCSI SAN.

The machine is very quite. I can only hear the HD’s access occasionally. The fan is near silent. The Mini really is one of the greatest computers Apple has ever designed/made. Other than the dumb single RAM slot the PPC mini’s had, they all have been great machines. I still have a 1st Generation Mac Mini running strong (1.25ghz G4, 1GB RAM, single 80GB HD, 10.5.8 client) at work (it runs Intermapper to monitor various devices around the building. Works great).

Only changes would be the second gig-E port, and it would be sweet if you could buy without the OS (if this was for work, I wouldn’t need even MORE copies of 10.6 (already have spares)). I’d give it a full 10, but I can’t think of anything that’s perfect. =)

[xrr rating=9/10]

If you have any questions, please feel free to leave a comment.

*Image lifted from Apple website.

Filed Under: Reviews Tagged With: 10.6, Apple, Mac Mini

Just in case anyone didn’t know…

2010/03/10 By staze

My favorite XKCD, probably ever.

Filed Under: Sys Admin Tagged With: xkcd

Fun with iCal Server

2010/03/10 By staze

We run an iCal Server at work, and the mandate has been handed down that everyone needs to be subscribed to a “Vacation Calendar” that a couple people in the building maintain (my boss, the head of Operations, and the Dean’s assistant). For the most part, this has been really easy. We just created a “Vacation” user, and subscribed people to it’s calendar on the server with iCal. However, we have a couple PC users in the building that use Outlook, and Outlook wants an ICS file to subscribe to… not a directory. It seems like iCal Server is supposed to (or at least version 1 did) give the client a combined ICS file if you just hit the directory of the user’s calendar without specifying anything else. This doesn’t appear to work though.

So, as a work around, I wrote up a very simple shell script that concatenates all the ics files for the vacation user into one ICS.

#!/bin/sh

#This users caldav directory. Something like:
#/Library/Calendar/calendars/__uids__/7E/1B/7E1B373E-8F22-469F-8BDF-5C3ECB996156/calendar
INPUT=""
TEMP="/tmp/temp.ics"
#Where you want the combined ics file to go. Should be a web hosted directory if you expect to have clients subscribe to it. Something like:
#OUTPUT="/Library/WebServer/Documents/vacation.ics"
OUTPUT=""
echo "BEGIN:VCALENDAR
PRODID:-//Vacation Merge//example.com//
VERSION:2.0
X-WR-CALNAME:Vacation Calendar" > $TEMP

cat $INPUT/*.ics | grep -v "BEGIN:VCALENDAR" | grep -v "END:VCALENDAR" >> $TEMP

echo "END:VCALENDAR" >> $TEMP

tr -d '\r' < $TEMP > $OUTPUT

The big points here are, while you can just do `cat *.ics > /some/place/merged.ics` the “BEGIN:VCALENDAR” and “END:VCALENDAR” are still in there, which end up at the start and stop of each of the events in the calendar. Calendar software will stop reading once it hits one of those “END:VCALENDAR”… so the `grep -v` just removes those, and we add an end at the very end, just as we added a begin at the start.

The last line is to add unix line endings… because for some reason, this script is producing DOS line endings. *shrugs* Probably just the beginning block that has the wrong line endings. Anyway, it works.

That pretty much does it. It’s very simple. I have it run with cron every hour.

Good luck.

Filed Under: Sys Admin Tagged With: .ics, iCal Server, merged, outlook, subscribe

Next Page »

Weather

Categories / Archives

  • Apple
  • Coding
  • Electronics
  • Energy
  • Home Ownership
  • Miscellany
  • Politics
  • Prius
  • Sys Admin
  • Travel
  • Uncategorized
  • Work
  • April 2026
  • August 2025
  • April 2025
  • January 2024
  • February 2021
  • July 2020
  • January 2020
  • April 2019
  • March 2018
  • February 2018
  • June 2017
  • February 2017

Copyright © 2026 · Staze On Genesis Framework · WordPress · Log in