Western Digital released yesterday a firmware update for the MyBook World Edition I and II network drives, to version 01.02.10 so I was forced to re-apply all the basic hacks that I previously had performed with the help of the people at the MyBook World forum, so I decided to publish them for people to see here, too.
1. Install OptWare package(s)
It’s essential for the end-user to install the OptWare package(s) as it will install necessary tools for editing files, namely
nano, a convenient and powerful terminal editor.
So according to the instructions here, after enabling
ssh access on the drive, we login as root (default password: welc0me) and run the following 2 commands:
wget http://mybookworld.wikidot.com/local--files/optware/setup-whitelight.sh sh setup-whitelight.sh
This should install the latest OptWare without any problems at all. There will be a confirmation that the process was performed successfully. If an error occurs (perhaps downloading the script) we are advised to run the commands that are inside this shell script, each at a time. For more information, please read carefully the instructions as they are posted in the forum.
We will then run at the prompt
ipkg update to check if the OptWare package works, that will allow us to further install
nano (the editor) and
md5deep (that I personally use to check the integrity of my saved or transferred files):
/opt/bin/ipkg update /opt/bin/ipkg install nano /opt/bin/ipkg install md5deep
At any time, if we run
ipkg upgrade we will update all the installed applications/programs to a newer version, if it exists.
2. Allow editing of default shares (Public/Download)
According to this post, if we wish to hide the Public and Download shares on your network (e.g. from WDTV Live front-end) the best solution is to enable the editing of these ‘reserved’ shares. By default, the system has them disabled from the network drive’s GUI.
We thus login to the server via
ssh and edit the necessary file with
nano /proto/SxM_webui/admin/inc/wixBase.class at the line that says:
$this->reserved_share = array('Public', 'Download');
Next, we comment it out and add the following line below:
// $this->reserved_share = array('Public', 'Download');
$this->reserved_share = array('');
Now we can disable these shares in the GUI (Advanced Mode > Storage > Folder Shares) by unchecking the CIFS / FTP / NFS / AFP protocols.
3. Natively disable Twonky media server
I wanted to disable the Twonky media server because in my opinion it is using RAM and CPU resources, and I wanted to have the server run as light as possible. Since Western Digital do not allow this to happen via their GUI, according to this post the idea is to remove the executable POSIX permissions from a specific script:
chmod 644 /etc/init.d/S97twonkyserver
Obviously, to revert the permissions back to normal, we need to perform the opposite:
chmod 755 /etc/init.d/S97twonkyserver
reboot (always necessary) the script will obviously not be executed, therefore clicking on the Twonky media server settings in the drive’s GUI will take us to a webpage that doesn’t run. This is to be expected, since the server is not running, which means that the hack was performed successfully.