WD My Book World Hacking
The WD My Book World 500G arrived today. It packs a 500GB HD, a 200Mhz ARM processor, 32MB of RAM and it runs Linux.
Kind of accidentally i bumped into this site which offers much information on how to hack your WD and turn it into a little handy appliance.
I'll try to describe my first adventures with it. For starters, let's try to get PHP, vim, Transmission and Clutch, a Web interface for transmission running.
First, enabling ssh access to the disk:
Martin provides full instructions here: http://martin.hinner.info/mybook/sshaccess.php
Just a little note, the user name is uppercase.
Second, Installing Optware:http://mybookworld.wikidot.com/optware
Third, now that Optware is installed, it's time for vim, for your file editing needs:
ipkg install vim
cp /opt/share/vim/vimrc_example.vim ~/.vimrc
Fourth, prepare it for PHP.
ipkg install php-fcgi
ldconfig
Configure lighttpd for php
cd /etc/lighttpd
cp lighttpd.conf lighttpd.conf.bak
chmod u+w lighttpd.conf
Apply this little patch
wget http://www.fragmentized.net/Stuff/blog_files/17032008/enable_php.patch
patch lighttpd.conf < enable_php.patch
/etc/init.d/lighttpd.sh restart
Test it:
vim /usr/www/lib/test.php
Add this line:
<?php phpinfo(); ?>
point browser to http://MyBook-IP/test.php
You should now see the php info page;
We now have PHP working, let's try to add Transmission for torrents:
Install Transmission and clutch (web interface)
ipkg install transmission
ipkg install clutch
Make clutch available from web
mkdir /usr/www/lib/custom/
ln -s /opt/share/www/lighttpd/clutch /usr/www/lib/custom/clutch
Apply little patch to clutch init script
cd /opt/etc/init.d
wget http://www.fragmentized.net/Stuff/blog_files/17032008/clutch_init.patch
patch S88clutch < clutch_init.patch
Edit Transmission config to fit your needs, /opt/etc/transmission.conf and set your paths.
Run it:
/opt/etc/init.d/S88clutch start
Point your browser to http://http://MyBook-IP/custom/clutch, and the web interface should come up.
This was enough to get vim, php, transmission and clutch running.
Comments
Balsagoth (not verified)
Tue, 18/03/2008 - 03:04
Permalink
Wow. Nice. Now you kill all
Wow. Nice. Now you kill all my doubts about my new external storage. Where you buy yours?
Ravage
Tue, 18/03/2008 - 11:41
Permalink
Got it here from Pixmania,
Got it here from Pixmania, they where offering the best price.
Have fun, glad you find it useful.
Anonymous (not verified)
Sun, 20/04/2008 - 16:29
Permalink
I get two errors when I try
I get two errors when I try /opt/etc/init.d/S88clutch start
they are
/opt/bin/transmission-daemon: can't load library 'libiconv.so.2'
and
cannot access `/home/tmp/.transmission/daemon/socket': No such file or directory
Any ideas ?
Anonymous (not verified)
Sun, 20/04/2008 - 16:46
Permalink
Looks like I solved it ipkg
Looks like I solved it
ipkg install libiconv
created directory /home/tmp/.transmission/daemon/socket
Anonymous (not verified)
Fri, 25/04/2008 - 13:26
Permalink
HI how did you create the
HI how did you create the directory (new to linux!)
/home/tmp/.transmission/daemon/socket
Its driving me mad all is there except i'm getting the daemon error !
thanks
Ravage
Sat, 26/04/2008 - 14:29
Permalink
mkdir -p
mkdir -p /home/tmp/.transmission/daemon/socket