Saturday, December 5, 2009

MyBook World Edition II Optware Install

I have a 1TB MyBook World Edition II NAS. It's a decent drive for the money, if a bit slow (actually, a lot slow). Like an competent dev, I use source control, and specifically Subversion since it's integrated into Xcode. But in order to access the repository from any machine in the house, I need to keep a machine running. Previously this has meant the hackintosh. The desktop hackintosh is a decent machine, but super noisy, and I'm not a fan of keeping it running if I don't have to.

Enter the previously mentioned MyBook. It runs Linux, Mercurial is Python, I should be able to get the two playing nice. The first step is getting Optware on the thing so I can pull down the packages, and that's where I spent way too much time this morning. My MyBook is the LED white light edition. This apparently means something, as I was unsuccessful in getting a working installation following the instructions found in various places on the web. Post-install, it was "ipkg: not found". No amount of environment or chmod fiddling seemed to help. Then I tripped across the instructions at the bottom of this page.

I figured I had hosed my setup at this point, so I reset the version number and downloaded the latest firmware again. I then downloaded and executed the following (from the bottom of that page):
wget -O prep_whitelight http://wd.mirmana.com/prep_whitelight
sh prep_whitelight


The script takes a long time to run, but it is doing a lot to make sure things are working, and (from my reading) will bail out if things go wrong to avoid screwing up the MyBook. That got got Optware working, so now I can install Python:
/opt/bin/ipkg list | grep python
/opt/bin/ipkg install python25

No comments:

Post a Comment