This is a guide to install the latest Squeezeboxserver from original source onto Western Digital's My Book Live (WDMBL). Mainly, this information is copied from other sources, the information about private share access is original research.
Why would you?
If you would like to connect a Logitech Squeezebox device, e.g. Squeezebox Radio, to your WD Live, to play your stored media files.
Getting in with SSH
Access http://mybooklive/UI/ssh and enable SSH access. After that, access the box with User: root, pass welc0me.
Change default TCP port of Twonky
/etc/init.d/twonky stop
Edit Twonky config file:
vi /CacheVolume/twonkymedia/twonkymedia-server.ini
Change TCP port of Twonky to e.g. 8000:
httpport=8000
Start Twonky:
/etc/init.d/twonky start
If the port remains unchanged, it is probably set through the init script. Stop twonky and open it with
vi /etc/init.d/twonky
and change the line
TWONKY_PORT=8000
and then start twonky again.
Install the Squeezebox Server
cd /DataVolume/shares/Public
aptitude update
## check here for the latest version: http://downloads.slimdevices.com/
wget http://downloads.slimdevices.com/SqueezeboxServer_v7.6.1/squeezeboxserver_7.6.1_all.deb
dpkg -i squeezeboxserver_7.6.1_all.deb
This adds a new user to the system, squeezeboxserver. This user is not able to access private shares.
Accessing private shares
If you use private shares on your WD Live which should be streamed by the squeezebox service, it is not sufficient to rely on standard UNIX file permissions. Instead, WD Live uses a peculiar security system called Trustees.
What you need to do is add the new user to the trustees configuration and reload the trustee cache in kernel memory.
In /etc/trustees.conf, edit the line with your share to include the trustee object info "squeezeboxserver:RBE" (I had two users, player and writer before)
Change:
[/dev/sda4]/shares/media:player:RBE:writer:RWBEX:*:DU
to:
[/dev/sda4]/shares/media:player:RBE:writer:RWBEX:squeezeboxserver:RBE:*:DU
This allows the squeezeboxserver user to access the files read-only.
Afterwards, reload the configuration and restart the service
/usr/local/bin/settrustees
/etc/init.d/squeezeboxserver stop
/etc/init.d/squeezeboxserver start
Access the web interface of squeezeboxserver on http://mybooklive:9000/ and scan your music collection.
Accessing the collection from Squeezebox Radio
To finally play your music files, select own music and your collection name in Settings. Note, this changes a lot on the device, menus look different etc as now everything goes through your WD Live instead of the mysqueezbox.com service. To change back, select Settings, Network, mysqueezbox.
Links
Mentioned devices
http://www.wdc.com/en/products/products.aspx?id=280
http://www.logitech.com/en-gb/speakers-audio/wireless-music-systems/devices/5847
Other sources
http://forums.slimdevices.com/showthread.php?t=84735&highlight=mybook
http://wiki.slimdevices.com/index.php/Main_Page
http://www.linuxsecurity.com/resource_files/host_security/trustees-quickstart.html
http://mockmoon-cybernetics.ch/computer/wdh1nc10000/trustees.html