Tutorial - Using WD My Book NAS

This is for the "white light" version of the Western Digital My Book World Edition NAS.

There are two different web servers that can be installed on the WD My Book Workd NAS. They are Apache, and Lighttpd. Lighttpd is easy to install, but is limited to files less than 2GB in size. Apache is more difficult to install, but will play any size file. If you will be playing files larger that 2GB, then you should install Apache.

NOTE: Following this procedure could void your warranty, and cause your WD NAS to not function properly. Roksbox developer(s) are not responsible for any damages to your WD NAS as a result of this procedure. Use at your own risk.

 

Apache Installation


If you have already installed Lighttpd, uninstall it using the Optware FeaturePacks Manager.

Download and install WinSCP from http://winscp.net/eng/download.php (click Installation package).
Start WinSCP and enter the following information on the WinSCP Login window:

Host name: your WD My Book address
Port number: 22
User name: root
Password: welc0me (the 0 is a zero)

Leave everything else as the defaults, and click Login.

If you get a message about the host key not being found, click Yes to continue.

When WinSCP starts, it will show your local C: drive on the left, and your web server root on the right.

Press Ctrl+P to open a terminal session. Use the same password as above to login.

Follow the directions at http://mybookworld.wikidot.com/optware to install the Optware software package repositories. Follow the instructions under New "White light" MyBook.

Do each step through "Update local feed lists". To install Apache, enter the command: /opt/bin/ipkg install apache.

After the Apache install is finished, exit the terminal window by typing exit.

On the WinSCP window, do the following:

Double click the yellow up arrow folder.
Double click opt.
Double click etc.
Double click apache2.
Double click httpd.conf.
Scroll down until you see the line that says DocumentRoot "/opt/share/www" and change it to DocumentRoot "/shares/www".
A few lines down, inside the <Directory /> and </Directory> labels, change AllowOverride None to AllowOverride All.
A few lines further down, change <Directory "/opt/share/www"> to <Directory "/shares/www">.
Click the save icon (diskette) to save your changes, then exit the window.
Back on the WinSCP screen, click Session, then click Disconnect.
On the WinSCP Login window, click the Close button to exit WinSCP.
Restart your My Book NAS for the new setting to take effect.

After your My Book NAS has restarted, log into the WD Network Storage Manager from a web browser and create a new share.

Go to Folder Shares -> Add to create the share.

Call it www, and optionally give it a description.

To map the newly created share, on Windows, click the Start button.
In the Search programs and files box, type \\mybookworld, and press Enter. You should see the shares available on your My Book NAS.
Right click on the www share, and select Map network drive.
Select a drive letter such as Z:
Make sure Reconnect at logon is checked.
Click Finish.

You should now have your chosen drive letter (Z:) mapped to the www share on your My Book NAS. This is the root directory of your web server, and is where your media files should go.

If you are using a media root folder, your media root folder should be at Z:\Media, and the rest of your media files and folders would be below your Media folder.

In Roksbox, change the Web Address to your new web address with the port included (probably 8000). ex. http://192.168.1.100:8000

Also complete the rest of the roksbox setup to define your media folders.

 

Lighttpd Installation


Follow the directions at http://highlevelbits.free.fr/ to set up Lighttpd web server on your My Book NAS.

Download and install WinSCP from http://winscp.net/eng/download.php (click Installation package).
Start WinSCP and enter the following information on the WinSCP Login window:

Host name: your WD My Book address
Port number: 22
User name: root
Password: welc0me (the 0 is a zero)

Leave everything else as the defaults, and click Login.

If you get a message about the host key not being found, click Yes to continue.

When WinSCP starts, it will show your local C: drive on the left, and your web server root on the right. Using the window on the right, do the following:

Double click the yellow up arrow folder.
Double click opt.
Double click etc.
Double click lighttpd.
Double click lighttpd.conf.
Scroll down until you see the line that says dir-listing.activate and make it say dir-listing.activate = "enable"
Changing the value for server.event-handler seems to fix the problem of Lighttpd crashing silently on some types of file access by Roksbox. To do so, scroll down until you see the line that starts with # server.event-handler = "freebsd-kqueue" and remove the first #, then change the line to read server.event-handler = "poll"
Click the save icon (diskette) to save your changes, then exit the window.
Back on the WinSCP screen, click Session, then click Disconnect.
On the WinSCP Login window, click the Close button to exit WinSCP.
Restart your My Book NAS for the new setting to take effect.

On Windows, click the Start button.
In the Search programs and files box, type \\mybookworld, and press Enter. You should see the shares available on your My Book NAS.
Right click on the Public share, and select Map network drive.
Select a drive letter such as Z:
Make sure Reconnect at logon is checked.
Click Finish.
You should now have your chosen drive letter (Z:) mapped to the Public share on your My Book NAS.

You should also have Z:\WWW\WWW-pub. This is the root directory of your web server, and is where your media files should go.

If you are using a media root folder, your media root folder should be at Z:\WWW\WWW-pub\Media, and the rest of your media files and folders would be below your Media folder.

In Roksbox, change the Web Address to your new web address with the port included (probably 8080). ex. http://192.168.1.100:8080

Also complete the rest of the roksbox setup to define your media folders.

 

Back | Next