Let’s face it, since the advent of Dropbox, Box, Google Drive and the bazillion other cloud-based file synchronization platforms that have came into existence over the past decade, it’s almost a necessity. For the road warrior, using multiple devices, or even the traditional white-collar worker, having access to all of your files no matter what device you’re using is extremely convenient and adds an enormous productivity boost to our lives. One of my biggest concerns with all of the third-party services, however, is privacy and security. Allowing another entity to store my sensitive data, and trusting they will keep in secure, is pretty scary. Thankfully, there are many options to roll-your-own cloud file synchronization and it really doesn’t take much horsepower on the server side. With a low cost VPS (virtual private server), retired computer at home, or even a $25 RaspberryPi, you can easily build your own Dropbox clone that will put you in control of your own data. Today, I’ll walk you through setting up ownCloud 9.1 on Cannocial’s Ubuntu 16.04 LTS. I will be setting up my cloud on a virtual machine running on VMware ESXi, but the process is very similar no matter what hardware platform you choose. This step-by-step guide assumes you have a plain, unmodified, minimum installation of Ubuntu Server 16.04 LTS, with only SSH access. If you don’t have SSH running, or don’t want to enable it, console access will work just fine. So, lets get started!
Installing Prerequisites (Apache/MySQL/PHP)
Go ahead and login to your freshly installed Ubuntu 16.04 server. Be sure to login with a username that has sudoer privileges. This can be the username you selected during installation or specified when you provisioned your VPS. Let’s make sure everything is up-to-date before going any further. We will use Aptitude to do so.
# sudo apt-get update # sudo apt-get upgrade -y
Now we can jump in to the nitty gritty. There are a few standard prerequisites needed for ownCloud to run. Most people refer to this as the LAMP stack (short for Linux, Apache, MySQL, PHP).