Install The OS
As mentioned earlier, I used Ubuntu 6.06 desktop for the main operating system for my NAS. I'm not going to provide step-by-step instructions on how to install Ubuntu 6.06, but I will provide a few tips:
- Let Ubuntu format the RAID 5 partition, since it sees the MegaRAID card and drives as a simple hard drive. It takes Ubuntu an hour to format a 1.2 TB partition on the hardware configuration I've described.
- You also should be aware that Ubuntu 6.06 desktop does not have its SAMBA server installed in its default configuration. This means that the NAS won't be visible to Windows or other operating systems that support SMB / CIFS. So here's how to install SAMBA after you have Ubuntu 6.06 installed.
Step 1: Click on the "System" menu at the top of the screen, to the left of the globe icon.
Step 2: Select "Administration", which is second from the top.
Step 3: Click on "Shared Folders", which is about halfway down the menu.
Step 4: The "Shared Folders Settings" dialog will open up, and then a "Sharing services are not installed" dialog will pop up. Click on "Samba to share folders with Windows/Linux systems". Then, click "Apply" and Ubuntu will install the Samba server for you.
Step 5: Now click the "+Add" button on the "Shared folders settings" dialog.
Step 6: A "Share folder" dialog pops up. Type the name of the share you want to create, next to the "Name" field. Check "Allow browsing folder. Then, click on the "General Windows Sharing" button.
Step 7: A dialog named "Windows sharing settings" will open. In this window, set your domain/workgroup to whatever your workgroup is (the default is MSHOME). Then click OK.
Step 8: Open the terminal window and go to the home directory by typing cd /home. Then type:
chmod 0777 name
where name = your login name in Ubuntu. For example, my login name is bill so I typed:
chmod 0777 bill
Now You Have It, So Share It
I think the best way to define shares for a home network depends on two factors: the operating systems on your PCs, and how people really use the shares.
If you are a Windows person, you can define many shares and not suffer too much by doing so. Windows sets up a share and reattaches it by default every time you reboot the client machine. Mac OS X, however, does not automatically restore SAMBA shares. So, if you have OS X machines, you probably want to define fewer shares and then put sub-folders into these shares so you have less network drive attaching to do. If you are a both Windows and OS X person (as I am) fewer shares still wins, because the Mac's shortcomings still dictate the optimal system settings.
As far as how people use shares, a typical teenager or wife will give you at most one byte of in-the-brain memory regarding how your beautiful RAID 5 NAS works. If you keep your network shares simple enough, your family will use them. If you define your shares by a business-process or using complex logic, the shares will require more than one byte of memory to explain and your family will ignore them.
I have three teenaged boys and one wife in my house. When I first put a NAS box in, I had shares for accounting, downloads, pictures, kid1, kid2, kid3, wife, etc. What I've found over two years of using the NAS is that we use about three shares: "pictures", "everythingelse", and (update and open source) software downloads. So over the past two years, I've evolved to a "fewer shares that we really use" mentality, with zero security in setting up NAS shares.
My zero security approach has the downside of letting kids create folders within shares for projects, but it has worked well so far. The nightmare scenario here is having a teenager in a fit of rage erase everything in a share or two. Although RAID 5 is cool, it won't protect against that, so it is not sufficient as a stand-alone backup strategy...even if you don't have teenagers! I would recommend setting up a simple share structure; say, pictures, accounting and downloads. Then your NAS is ready to use (famous last words!)