I will share my experience with you to install ENTWARE.
Entware, allows you to enable SSH on your WDMCH (WD my cloud home) and open the doors to other software.
Warning : your warranty is void when doing this
be careful i use google translation.
This adds spaces to the command line.
I correct them when I realize it.
replace the following addresses:
10.10.11.156 by the ip address of your WD my cloud home
10.10.10.254 by the IP address of your DNS server (box or other)
admsysfile02 by the name you have assigned to your WD my cloude home
To begin, you need a linux distribution, I used ubuntu 16.04 DESKTOP.
Then take the disc out of its box.
There are 4 screws behind the 2 gray rubber that are glued to the back of the box.
Once the disk out of the box, connect it in sata on the pc ubuntu.
Turn on Ubuntu.
Volumes mounted automatically.
Enable ANDROID debug mode to use ADB :
On disk that contains the /system partition: /dev/block/sataa19/system
Edit the file: build.prop
(change before ro.debuggable = 0)
on disk /dev/block/sataa18/wd_config
delete the file: disable_adb
add an empty file named: enable_root
Turn off ubuntu
Unplug the ubuntu disk and put the disk back in its box.
Connect it to the network and find the internal ip of the wdmch, eg 192.168.0.5
On a windows pc, Download the zip adb.zip and unzip it at the root c:
Connect to your drive:
adb connect 192.168.0.5 adb root adb shell
/system/bin/mount -o rw,remount / mkdir /opt /system/bin/mount -o ro,remount / mkdir /data/entware.arm mount -o bind /data/entware.arm /opt
/system/bin/mount -o rw,remount /system ./sbin/busybox --install /system/bin/mount -o ro,remount /system
wget -O - http://bin.entware.net/armv7sf-k3.2/installer/alternative.sh | sh
Install the ssh server
unset LD_LIBRARY_PATH unset LD_PRELOAD /opt/bin/opkg install dropbear /opt/sbin/dropbear -p 22 -a
Change the default password 12345:
Changing password for root
passwd: password for root changed by root
cd /opt/etc/ ln -s /system/etc/resolv.conf resolv.conf
test the ssh connection with putty
opkg install nano
Part 2 25/10/2018
Install an NFS server with ENTWARE
After several days trying to run the NFS server on the WDMCH, I finally got the results right.
My feedback on the subject.
create the file /opt/etc/services:
include the following lines in the file opt/etc/services
spaces must be replaced by pressing TAB x 2
sunrpc 111 /tcp portmapper # RPC 4.0 portmapper
sunrpc 111 /udp portmapper
create the symbolic link:
/system/bin/ mount -o rw, remount /system ln -s /opt/etc/services /system/etc/services
install the NFS server (rpcbind dependency):
opkg install unfs3
modify the file /opt/etc/exports :
insert the following line and comment on the line:
# / mnt (ro,all_squash,insecure)
/data/wd/diskVolume0/samba/share 10.10.10.0/255.255.254.0(rw,no_root_squash, insecure,sync)
the line /data/wd/diskVolume0/samba/share 10.10.10.0/255.255.254.0(rw,no_root_squash,insecure,sync)
Is to modify with the ip addresses that you want to allow:
Example: my network is 192.168.0.1/24 so I write
Modify the S56unfsd file as follows so that all users can access the repository
add -s to ARGS = “”
ARGS = “- s”
Return the file system read-only:
/system/bin/mount -o ro, remount /system
restart rpcbind then unfsd from /opt/etc/init.d
/opt/etc/init.d/S19rpcbind restart /opt/etc/init.d/S56unfsd restart
you can now test the mount point from another station.
command example from a linux station (the ip address and the mount point on your client workstation are to be modified):
sudo mount -t nfs 10.10.11.156:/data/wd/diskVolume0/samba/share /home/sysadmin/admsysfile02
Part 3 04/11/2018
Install an SFTP server with ENTWARE
opkg install openssh-sftp-server