Four months ago, I decided to build a home mini PC. Its main purpose is to act as NAS server, but it should also support additional light services too.
Home mini PC requirements:
- ARM board (low power consumption and very good performance)
- SATA 3.5″ hard disk(much more stable than 2.5″)
- GNU/Linux (as always)
Home mini PC services:
- NAS server (1st level requirement)
- Light server-side music player (2nd level requirement)
- Light BitTorrent client (2nd level requirement)
- No need for X window (not a requirement)
- Apache HTTP server (3rd level requirement)
- Light wiki server (3rd level requirement)
- Light database (3rd level requirement)
Candidates:
- Raspberry Pi: Unbelievable community support and hundreds of applied examples, but has limited RAM and mainly does not support SATA.
- BeagleBone Black: Stable and much more Open Hardware than Raspberry Pi, but much less features (CPU, RAM, …)
- Cubietruck (aka Cubieboard 3): Much more features than all the above, but with much smaller community. Specifications summary here.
As you understand, my requirements are not very light for a small board :)
So, I decided to use Cubietruck (CT), which is the strongest board, but getting the risk of small community (as I am not a hardware or Linux expert).
I received my Cubietruck a few weeks ago!!!
Final hardware:
- Cubietruck
- Cubieboard HDD Addon (to support SATA 3.5″, which needs external power input 12V)
- Power Adaptor 5V 3A (for CT)
- Power Adaptor 12V 4A (for HDD addon)
- Western Digital Red 3TB
- SD Card 16 GB
ATTENION: You have to use different power adapters to power Cubietruck and HDD Addon. Output USB connection of HDD Addon (which work as power adapters) cannot supply enough Amperes to your Cubietruck, when are needed. Extra details here.
Final Software:
- Debian Wheezy CT v1.9
dd from=/tmp/ct/CTDebian_1.9_vga.raw to=/dev/<your_sd_device> - NFS (preferred over SAMBA as is lighter and easier to configure)
apt-get install nfs-kernel-server nfs-common - Music Player Daemon
apt-get install mpd - Transmission Torrent client
Final view…
Details…
In next blog post, I will try to write about Debian and any extra hints I found.
If you need extra details please leave a comment to answer (or to include this info in next post).
UPDATE (20/12/2014)
I just did a fast read/write test on SATA disk of CT via NFS (requested via comment).
The network topology is as follows:
laptop_wireless --- simple_router --- CT_wired
Copy file (256MB) from laptop to CT:
$> time dd if=/dev/zero of=/mynfs/store/test_dd_128k_2048 bs=128k count=2048
2048+0 records in
2048+0 records out
268435456 bytes (268 MB) copied, 128.897 s, 2.1 MB/s
real 2m10.458s
user 0m0.000s
sys 0m0.188s
Copy this file (256MB) back to laptop:
$> time cp /mynfs/store/test_dd_128k_2048 /tmp/fff
real 1m45.158s
user 0m0.008s
sys 0m0.384s
There are two important factors that affect performance of the above test:
a) If laptop was connected via wire instead of wireless the speed will be much faster.
b) CT was running other things concurrently and was not idle.
Regards,
Adrianos Dadis.
—
Real Democracy requires Free Software
Tagged: cubietruck, embedded, home, Linux
![](http://pixel.wp.com/b.gif?host=sourcevirtues.com&blog=14023200&post=827&subd=sourcevirtues&ref=&feed=1)