Cheat sheet: Install a Windows network share server (SMB/CIFS) on Ubuntu server 14.04

Install samba

Configure sharings. Save your samba configuration:

Put the folowing into a new /etc/samba/smb.conf file

and modify - workgroup - server string - interface (put the IP of your NAS here if you want to restrict the samba listing interface) - the name of your sharings ([MOVIES], ...) and the path

Cheat sheet: Installing Owncloud on Ubuntu server 14.04

OwnCloud provides ready-to-deploy packages for popular Linux distributions such as Debian, Ubuntu, Fedora, RedHat Enterprise Linux, CentOS and openSUSE. Refer to http://software.opensuse.org/download/package?project=isv:ownCloud:community&package=owncloud to get the right repo info. Below the quick install for Ubuntu server 14.04. Install the Owncloud repository for Ubuntu 14.04 on your system:

Add the repository key to apt

Then just update