Showing posts with label myCloud. Show all posts
Showing posts with label myCloud. Show all posts

Wednesday, September 3, 2014

myCloud - configure ssh access for non-root users

From a post in a forum:

- Enable ssh:
http://<mybooklive>/UI/ssh


- Create shares, users, set passwords and permissions via dashboard

- Allow Users to SSH:
edit file /etc/ssh/sshd_config
Change "AllowUsers" line by adding user names such as:
AllowUsers root user1 user2


- Optional: Set users home dir: edit file /etc/passwd
The following will set home dir to "Public"
Change from "/shares:/bin/sh" to "/shares/Public:/bin/sh"


- Restart ssh deamon or reboot:
/etc/init.d/ssh restart


Test ssh for your users within the home network. If all works, then proceed to:
- Set your router to forward port TCP 22
- Set DDNS on your router

Saturday, May 24, 2014

Adding NFS entry to myCloud

Mounting an nfs volume on my Ubuntu VM (where I am running ownCloud) to access data on myCloud:

mkdir  /shared

mount yourMyCloudIP:/nfs /shared

emacs etc/fstab

add these lines at the end of fstab file:

#Entry for MyCloud NFS
yourMyCloudIP:/nfs /shared nfs default 0 0

save and exit editor.

Friday, May 16, 2014

Installing packages on myCloud

I really like my new WD myCloud and all that it can do.  But I really don't like the fact that emacs was not included on the base Debian OS.

So, the question is, how to install a new package on Debian.  Here is an example of getting emacs installed on the myCloud.  

First connect with ssh as root.

> apt-get update 
> apt-get install emacs

The first command updates the list of packages the system knows about.  The list is defined by the list of source in the file /etc/apt/sources.list.