• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
Page 1 of 16
Configuring Linux on MyBook World Edition
Document Purpose
The purpose of this document is to guide the reader through the configuration of Linux ontheir Western Digital MyBook World Edition. After completing this guide the reader willhave turned their MyBook NAS into a low-power, Linux-based web-server and fileserver.
Requirements
The following requirements are prerequisites for using this installation guide.1.
 
Western Digital MyBook World Edition2.
 
A second networked computer with an SSH client and web-browser 
Table of Contents
COFIGURIG LIUX O MYBOOK WORLD EDITIO 1
 
D
OCUMET
P
URPOSE
1
 
EQUIREMETS
1
 
T
ABLE OF
C
OTETS
1
 
ISTALLIG THE BASE SYSTEM 2
 
E
ABLIG
SSH
O YOUR 
M
Y
B
OOK 
2
 
C
OFIGURIG THE
ETWORK 
3
 
I
STALL
O
PT
W
ARE
4
 
I
STALL
S
AMBA
5
 
D
ISABLIG
M
IO
ET 6
 
ISTALLIG THE WEB SERVER 7
 
A
CTIVE A
S
IMPLE
W
EB
S
ERVER O
P
ORT
8080 7
 
A
CTIVE A
S
ECURE
W
EB
S
ERVER O
P
ORT
443 8
 
I
STALLIG
PHP
 
S
UPPORT
10
 
P
UBLISHIG
M
Y
B
OOK 
C
OTET O THE
I
TERET
11
 
APPEDIX A COFIGURATIO FILES 12
 
 
Configuring Linux on your MyBook World Edition www.daviddn.comPage 2 of 16
Installing the base System
Enabling SSH on your MyBook
1.
 
Determine the IP address of your MyBook. The MyBook initially connects to your network via DHCP so you can check your DHCP clients on your router.2.
 
Access the MyBook Web Interface via the URL http://
mybook_ip
/3.
 
During the next steps you will be prompted for the administrator’s username and password. By default these are
admin
/
123456 
 4.
 
Create new share users via the Web Interface. Click on
 File Sharing 
and then select
User Management 
. Add user accounts for 
david 
and
niamh
.5.
 
Update the firmware on the device using the URL below. In fact, this doesn’t attemptto update the firmware it is merely a way of injecting code into the MyBook to allowthe SSH daemon to start running so that we can connect via SSH. If the firmware isnot available from this third-party site when you need to install it then use the filecalled
latestfw.sh
, which is included within the System Files collection of this project.
http://
mybook 
/auth/firmware_upgrade.pl?fwserver=martin.hinner.info/mybook/firmware.php
6.
 
A message saying
new firmware is available
will be displayed. Click on the button todownload and install the new firmware. It will tell you that the installation processwill take up to 30 minutes, but because we are not really installing a new firmware(we are only enabling SSH) the process will in fact only take a couple of minutes.7.
 
You will not receive any message saying when the update has completed so you willneed to wait a couple of minutes and then try SSH to see if it works. When it isavailable you should log in as one of the user accounts that you created before (
david 
 in my case) and then type the following to get the root shell (no password is required).
login as:daviddavid@192.168.2.200's password:[
enter password 
][david@MyBookWorld ~]$su –[root@MyBookWorld ~]#
8.
 
In order to make SSHD permanent (so that you don’t lose it after a reboot):
vi /etc/inittab
Enter the following at the end of the file:
# Make SSH Permanent::sysinit:/usr/sbin/sshd
9.
 
Reboot your MyBook and check that it works
 
Configuring Linux on your MyBook World Edition www.daviddn.comPage 3 of 16
Configuring the Network
1.
 
SSH back into your MyBook to perform the following steps to set a static IP address2.
 
Configure the network settings file
vi /var/oxsemi/network-settings
Ensure the file looks like this, where 192.168.2.200 is the IP address to assign:
network_mode=statichostname=MyBookWorldworkgroup=workgroupstatic_ip=192.168.2.200static_msk=24static_gw=192.168.2.1static_dns1=192.168.2.1static_dns2=static_dns3=static_ntp=north-america.pool.ntp.orgrevert_to_dhcp=no
3.
 
Configure the hosts settings file
vi /etc/hosts
Ensure the file looks like this:
127.0.0.1 localhost192.168.2.200 MyBookWorld
4.
 
Configure the name-server resolution settings file
vi /etc/resolv.conf
Ensure the file looks like this:
nameserver 192.168.2.1
5. Reboot your MyBook. Your IP address should now be changed to 192.168.2.200
reboot
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...