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/
- 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:
- 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
Stuart Moorfoot © 23 May 2010 foo@bund.com.au