I've been using Vim for about 2 years now, mostly because I can't figure out how to exit it

MyBook World Edition (Blue Rings) - My Set Up - Part 1

Last winter holidays I've got a MyBook World Edition Blue Rings, 2TB. Yes, I know - it's not the latest kid in town. After many hours (which turned into days), trials and errors, and after doing a lot of reading - I've managed to set it up (read:hack it) the way I want it. I have enjoyed setting this up and still enjoy digging it. So I decided to write about and share what I know so far.

A few things are worth mentioning before proceeding:

  • my device had no data stored
  • the default username (new or after a complete reset) is "admin", with password "123456";
  • MyBook World Edition it's running Linux on an ARM processor with 32MB of RAM. That means that you will not be able to install memory intensive applications (to put it nicely) - like MySql driven websites or other fancy stuff;
  • this info is not meant to be a full coverage, it's meant to serve as a guidance -there are bits of information that I am not covering;
  • if you brick your device and the sky falls - I will not take responsibility, proceed at your own risk

Here we go; MyBook World Edition Blue Rings comes out of the box with Mionet installed and ready to be used. Mionet helps you share the contents of your MyBook over the net - plus a few other things. I've looked at it - it's not bad (others say it's bad..), but honestly the reason I chose to remove it it's because I did not want a to depend of a "middle man" to access my NAS.

First things first: enable SSH

There is more than just one way to enable SSH, but I followed Martin Hinner's guide to do that - and it worked. The process it's simple and straightforward:

  • using the web interface of MyBook, create a new user
  • next step - enter the following link in your browser's address bar, replacing "IP-OF-YOUR-MY-BOOK" with your actual IP address on the local machine: http://IP-OF-YOUR-MY-BOOK/auth/
  • next page will inform you that you have an "update" available - proceed clicking on the "Download and Install" button.
  • one thing to notice here is that there's no indication of the progress of the installation process (it took about 8-10 minutes in my case) - and sometimes you'll get "update failed". This is tricky, because in most cases, the install actually went fine.
  • to test, go ahead and try to log in as the user you've just created - using SSH (I am using Putty).
  • if all is fine and you have logged in - switch to root by typing su-, with no password
Install Optware (to access precompiled packages)

Optware is a package management system, that gives you access to a great amount of precompiled software packages for the MyBook World device. So you'll want that. Let's start;

  • login using Putty and become root (su -)
  • run these 2 lines:
  • than the next 5, again one by one:
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' >> /opt/etc/ipkg.conf
  • create
echo "/opt/lib" >>/etc/
  • run:
  • not required, but sometimes you also need to add a line to the /root/.bashrc file (use vim for now - I know it's painful, but we'll get to install a easier editor in the next step; to open the file for editing use: vi /root/.bash.rc - and add the line below):
export LD_LIBRARY_PATH=/opt/lib

To refresh the list of available applications, run:

/opt/bin/ipkg update

... and and to have a look at the list:

/opt/bin/ipkg list
Install the Nano editor. That's an easy one:
/opt/bin/ipkg install nano
  • Then:
Disable Mionet

If you are not using the Mionet service, you can safely disable it. In order to do that, you'll need to edit /etc/init.d/ (this time with Nano, yupee!)

sudo /opt/bin/nano /etc/init.d/
  • Look for the 2 following lines and comment them out (that is add # at the beginning) like this:
    # $SCRIPTS_PATH/ start
    # $SCRIPTS_PATH/ stop
  • Then run:
chown -R www-data:www-data foldername
  • where "foldername" is any folder that was created previously using Mionet (PUBLIC, etc. Failing to do so might cause you to lose access to those folders).

We'll stop here for now - but in the next part, I'll go through the installation of the vsftpd FTP server, LightHttpd web server, run some light scripts (like your own ToDo list) - and how to use the free DynDns to have your MyBook World serve web pages and FTP access over the Internet.

Talk soon, hope you had fun reading and hacking away.

Credit and reference: