[ Prev ] [ Index ] [ Next ]

Western Digital NAS

Created Sunday 23/5/2010

model: WDC 1TB My Book World Edition II ("Blue Rings")

refered to as "mbwe" in this text

- uses busybox
- see http://martin.hinner.info/mybook/

- upgrade firmware
- enable ssh - make permenant via /etc/inittab
- install ssh keys
- install "boa" (web server)b2
- configure /etc/boa
- Specify listen port to other than 80 to keep original wdc interface)
- specify doc root (e.g., DocumentRoot /var/www)
- create log dir (e.g., /var/log/boa)
- create init.d link to start (S80boa) and stop (K80boa)

- install ipkg (Itsy Package Management System)

ipkg is a like rpm (or dpkg) and is intended for embedded devices.

- login to mbwe as root
- execute this scriptlet:
bash # cat << EOF > /tmp/getoptware.sh
feed=http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/unstable
ipk_name=$(wget -qO- $feed/Packages | awk '/^Filename: ipkg-opt/ {print $2}')
wget $feed/$ipk_name
tar -xOvzf $ipk_name ./data.tar.gz | tar -C / -xzvf -
echo 'src/gz optware http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/unstable' >> /opt/etc/ipkg.conf
EOF
bash # chmod 755 /tmp/getoptware.sh
bash # /tmp/getoptware.sh
- bash # echo "/opt/lib" >>/etc/ld.so.conf
- bash # ldconfig
- Add "/opt/lib" to LD_LIBRARY_PATH. E.g., in /root/.bbashrc
bash # echo export LD_LIBRARY_PATH=/opt/lib >> .bashrc
- update the ipkg list with
bash # /opt/bin/ipkg update

- list packages which can be installed:

bash # ipkg list |grep core

- Install optware packages

- coreutils, samba, or whatever

(bash # ipkg install coreutils)

- Samba

- for client boxes to "browse" the mbwe disk, be sure that port 445 is open for tcp inbound and outbound:
bash # iptables -A INPUT -s 192.168.0.0/24 -p tcp --dport 445 -m state --state NEW -j ACCEPT
bash # iptables -A OUTPUT -s 192.168.0.0/24 -p tcp --dport 445 -m state --state NEW -j ACCEPT
- Could also simply mount the mbwe via ssh (sftp)

See also

http://en.wikipedia.org/wiki/Western_Digital_My_Book#World_Edition
http://martin.hinner.info/mybook/

Stuart Moorfoot © 23 May 2010 foo@bund.com.au


Backlinks: