Last week our humble home server decided it wouldn’t boot any more, and as I had been postponing the migration to a new home server for too long (around six months I think), it was the moment to really do it. We had been warned several times already: it wouldn’t turn on sometimes. Other times it was just fine. But it all smelt like a power supply unit failure.
So I set out on the task of replacing it with my mac mini (the one I pulled apart back in 2007), since it’s quieter, smaller and will probably use less energy as well.
I installed Ubuntu onto it. It was pain free and done in 20 minutes (including partitioning and formatting). I then enabled the remote desktop service (aka VNC), disconnected the display and keyboard and connected them back to my main machine. Then I continued configuring things and copying data from the previous server using an external enclosure for the hard disks, and it looked pretty much fine…
… until I tried to reboot the mini. It just stayed there, dead. Not responding to pings, not showing in the router, just dead. I wondered if that could be a problem with the firewire disk preventing ubuntu from completing the boot, but it sounded strange to me. I connected again a display and keyboard, rebooted and it worked again, which led me to believe that the mini wouldn’t boot without an attached display (i.e. headless).
Some more sources confirmed my suspicion, and this one had a solution which would trick the mini into believing there is a monitor connected. It involved paying a visit to maplin for buying a male VGA connector and soldering a resistor between pins 2 and 7, which I didn’t really feel like doing since it was 1 AM and even worse, it was cold outside!
I began searching in all our “boxes with cables and connectors” to see if I could find something useful and suddenly the salvation appeared before my eyes:
The mac mini’s DVI to VGA adapter!
But the articles and tutorials out there said to use a 75Ω resistor, and the lowest one I had handy was a 220Ω resistor. VGA voltage levels are 0.7V, and the way this hack works is that the computer will assume there’s a monitor connected if there’s some sort of connection between pins 2 and 7, which correspond to green video and green ground respectively. The worst that could happen was that it didn’t detect anything because the resistor ate too much of the 0.7V. So I decided to try this:
I shut down the mini, connected the strange device in place of the display, and turned it on again. After the characteristic mac TAAAAAA chord, I spent some seconds spent with my fingers crossed, and tried to connect via VNC to the mini from another machine. Guess what… it worked!
Afterwards, I covered the resistor with a piece of cellotape to prevent it from making any false contact, should any metallic stuff fall in that area (which shouldn’t happen anyway, but you never know).
And if this looks hacky, just look at the solution of these guys – they directly bridge the DVI pins with the resistor!
Finally, let me tell you this didn’t happen when booting the mini with Mac OS X. It looks like an evil strategy to keep people using Mac OS X – but I couldn’t trust Mac OS X with my home server. Not with its annoying obsession of updating iTunes and Quicktime every other week (approximately), amongst other fine features of Apple’s operating system.