Skip to content

Instantly share code, notes, and snippets.

@msdocs
Last active February 23, 2017 14:27
Show Gist options
  • Save msdocs/3f661962e8729e4a5477bf984439d2fd to your computer and use it in GitHub Desktop.
Save msdocs/3f661962e8729e4a5477bf984439d2fd to your computer and use it in GitHub Desktop.

Raspberry Pi Tutorial 2

Build a {Cloud} Workshop

Environment Setup

SSH

Last time we covered what Secure Shell was a nice secure way for you to connect to a remote computer

ssh pi-username@ip-address 

Setup NextCloud

Install LAMP

LAMP: Linux Apache MySQL PHP

This is your basic configuration for most Self Hosted Applications

sudo apt install apache2 php5 php5-gd php5-sqlite php5-curl php5-common php5-intl php-pear php-apc php-xml-parser libapache2-mod-php5 curl libcurl3 libcurl3-dev sqlite -y

Installing NextCloud

cd /var/www/
sudo wget https://download.nextcloud.com/server/releases/nextcloud-10.0.1.zip
sudo unzip nextcloud-*.zip
sudo rm nextcloud-*.zip

Configure Ownership

In Linux ownership is very important it decides what users have access to in our case www-data is the account in charge of apache and controls the web based directories

So we will change the ownership of the nextCloud directory

# chown user: user group /path/to/direcotry 

sudo chown -R www-data:www-data /var/www/nextcloud 

Go to http://ipaddress/nextcloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment