It has been a tradition that I wrote a post for my home NAS solution after each re-installation of wordpress. Since the old macbook was stolen in San Francisco, I bought a Zotac Mag as home server. Besides that, I bought some other equipments to build a home entertainment network:
The main purposes of this home NAS are:
- Entertainment ( Movies, TV episodes )
- Backup & Storage Service (Time Machine, Photos, Source Control and etc)
Therefore, the follows are my configuration.
Centralized Server: I installed Ubuntu 10.04 LTS (i386) on Zotac Mag to let it be the home server. Since we do not have PC(w/ windows) in this environment, I configured this ubuntu followed the link. Simply put, Netatalk and Avahi servers are what you want. The LaCie 1TB HD and 60GB HD are connected to Zotac Mag through USB 2.0 ports. The 1TB LaCie HD is formatted as HFS+ (hfsplus in ubuntu) to store personal files and data in case it will be accessed by a Mac directly for restoration or something. The 60GB portable HD is formatted as Ext4 to used as downloading pool and storing movies. Since this HD is very old, no serious data should be put onto it. In order to support streaming movies to WD Live media player, a samba service was configured to export a read-only volume of movie directory. My Zotac Mag mount the hard drive shared by AirPort extreme as well. Furthermore several cron jobs are placed to do some regular maintenance jobs, e.g, backing up all source repos, syncing personal data between local disk(LaCie) and remote disk(WD 1.5T behind AirPort Extreme), checking new TV episodes and etc. Finally a transmission daemon and a mldonkey server are configured as BT client and eMule client respectively.
AirPort Extreme. The WD 1.5T HD mounted behind AirPort Extreme is split 400 MB (HFS+) as wireless Time Machine partition for my wife and myself. The left space is used for storing personal data (photos, documents, videos and etc). In addition, a directory is syncing with Zotac Mac for duplicating very important data. Several NAT redirections are configured to Zotac Mag as well ( e.g, a customized ssh port, several rpc ports for buildbot, a customized http port for restricted access of some http service)
Media Player, A WD Live TV media player is set to connected with TV through HDMI cable and connected to AirPort extreme through 1Gb Ethernet. It delivers the contents from Zotac Mag samba volume to TV. Actually a Boxee is installed in Zotac Mag as well. However due to lack of time to optimize and install drivers for ION, Boxee is not fully functional right now.
The things left to do:
- A cronjob that automatically downloads chinese subtitles of movies through shooter.cn
- A new WD drive to build a soft RAID-1(md) with the above WD HD.
I just realized how many works I have done for this home NAS solution by writing all of them out. Amazing…