Western Digital MyBook World is an external network disk (possible terabytes and RAID).
Good thing about it is: It runs linux, so it can be “customized” heavily. By default it runs Samba, Custom Web Admin tool, and some mionet garbage (to share files over net)
Let the device be connected and has its IP.
Hint: assign it some short hostname (eg. ‘hd’) to the ip in /etc/hosts
Buildit Webapp access
http://hd/ (basic auth)
- do basic configuration
- I prefer to use static IP
SSH access
Use Martin Hinner “patch”
Hints: After the hack change the root pwd to non-empty. Add public key /root/.ssh/authorized_keys. Turn off mionet processes /etc/init.d/mionet.sh. Nobody needs them.
Samba
- Windows: don’t install anything, you can map it as network drive
- Ubuntu: auto detection - Network Servers
mounting (on Ubuntu):
- install smbclient
- (check available paths: net share -I <mybook_ip> (pwd from web gui))
- sudo mount //hd/public /home/user/mnt/storage -o username=XXX,password=YYY,dmask=777,fmask=777
More UNIX ways:
- create your own USER
- create a directory in /shares/internal
e.g. /shares/internal/user, chown root:www-data chmod 770
HTTP Server
The box already runs lighthttpd. The following lets you access the content via Web.
1. ln -s /shares/internal/PUBLIC /usr/www/lib/
2. in /etc/lighttpd/lighttpd.conf add
dir-listing.activate = "enable"
3. /etc/init.d/lighttpd.sh restart
Usage:
http://hd/user/
(can do the same for PUBLIC)
SCP
Of course you can transfer files using scp.
SSHFS
You can mount the disk as filesystem using sshfs.
sudo sshfs user@hd:/shared/internal/user hd/ -o allow_other
Hint: Cannot chmod target file in MC? Turn off “preserve attributes” in the copy dialog.
NFS
Follow mybookworld nfs-server howto.
I did not try myself.
rsync
a) rsync works using ssh transport (slow transfer)
b) Install rsync server (recommended, can go upto 5MB/s)
1. /etc/services < – rsync 873/tcp
2. /etc/inetd.conf < rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon
3. kill -HUP /usr/sbin/inetd
4. configure /etc/rsyncd.conf and add your modules, eg:
motd file /etc/rsync-motd
log file = /var/log/rsyncd.log
[user]
comment = "My private"
path = /shared/internal/user
read only = no
uid = user
gid = www-data
list = yes
Usage:
rsync hd:: - list all listable modules
rsync -av .mozilla-thunderbird hd::user - example of mails backup
Link hubs:
http://kyyhkynen.net/stuff/mybook
http://martin.hinner.info/mybook/
Search
Latest
- XPather 1.4 on Firefox 3
- Easy cron scheduling in Ruby.
- Rhotoalbum - a ruby photo album generator
- Acquisition of LumberJaczk Technologies
- JSSh for Firefox on Linux (because Firewatir loves it)
- Subversion: move, migrate, split
- Installation of Subversion on Ubuntu, with Apache, SSL, and BasicAuth.
- XPather 1.3 on Firefox 2.0
- New Version of XPather 1.1
- On-top-of-Web Applications’ Address: lumberjaczk.org

