Install Nextcloud on Synology NAS

Similar documents
Mission Guide: Google Apps

BACKUP APP V7 QUICK START GUIDE FOR SYNOLOGY NAS

CSCI 201 Lab 1 Environment Setup

Installing Dolphin on Your PC

Synology Diskstation User Guide Based On Dsm 4.2

Bitnami Dolibarr for Huawei Enterprise Cloud

Installing MediaWiki using VirtualBox

Setting up the Seagate D4 NAS with Hard Disk Sentinel Pro. By Gary Ryan. Adapted from:

CIS 76 Ethical Hacking Building an open source Pentest Sandbox, carrying out a Remote Code Execution exploit, and Remediating the RCE vulnerability.

Online Backup Manager v7 Quick Start Guide for Synology NAS

Bitnami ProcessMaker Community Edition for Huawei Enterprise Cloud

Amazon Web Services Hands On S3 January, 2012

Intro to Linux. this will open up a new terminal window for you is super convenient on the computers in the lab

Ahsay Online Backup Manager v7 Quick Start Guide for Synology NAS

Connect using Putty to a Linux Server

Bitnami Mantis for Huawei Enterprise Cloud

How To Start Mysql Use Linux Command Line Client In Xampp

INTRODUCTION TO CLOUD STORAGE

Key File Generation. November 14, NATIONAL STUDENT CLEARINGHOUSE 2300 Dulles Station Blvd., Suite 220, Herndon, VA 20171

CUSTOMER CONTROL PANEL... 2 DASHBOARD... 3 HOSTING &

Table of Contents. Introduction 3

Archivists Toolkit Internal Database

An Introduction to Box.com

Bitnami Open Atrium for Huawei Enterprise Cloud

Tutorial on Getting Started. Section 1 Getting started All users read this section 2

This guide assumes that you are setting up a masternode for the first time. You will need:

Bitnami MEAN for Huawei Enterprise Cloud

We want to install putty, an ssh client on the laptops. In the web browser goto:

Your Mission: Connect to a remote Linux target(s) disk using F-Response Consultant Edition.

User Guide. Voic Manager. Version 14

SIMICART USER GUIDE SERIES. SimiCart Install SimiConnector

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Introduction to Linux for BlueBEAR. January

Anvil: HCC's Cloud. June Workshop Series - June 26th

Select "Folder from the list that appears in the pop-up screen in the bottom right corner.

Configuring a Palo Alto Firewall in AWS

Kollaborate Server. Installation Guide

Amazon Web Services Hands on EC2 December, 2012

Zadara Enterprise Storage in

Bitnami TestLink for Huawei Enterprise Cloud

Configuring GNS3 for CCNA Security Exam (for Windows) Software Requirements to Run GNS3

K-RATE INSTALLATION MANUAL

Bitnami Coppermine for Huawei Enterprise Cloud

About Backup and Restore, on page 1 Supported Backup and Restore Procedures, on page 3

Web browsers - Firefox

How to Create a NetBeans PHP Project

Installing and Upgrading Cisco Network Registrar Virtual Appliance

CS 200. User IDs, Passwords, Permissions & Groups. User IDs, Passwords, Permissions & Groups. CS 200 Spring 2017

Deploy Oracle Spatial and Graph Map Visualization Component to Oracle Cloud

Mysql Tutorial Create Database Username Password Through Phpmyadmin

SMRT-Portal Exercises. J Fass UCD Genome Center Bioinformatics Core Thursday April 16, 2015

Bitnami Re:dash for Huawei Enterprise Cloud

Nextcloud 13: How to Get Started and Why You Should

USER MANUAL. Star Track Shipping TABLE OF CONTENTS. Version: 2.0.0

USER GUIDE StarTrack Shipping (Magento 2) Compatibility:

Immersion Day. Getting Started with Linux on Amazon EC2

Once file and folders are added to your Module Content area you will need to link to them using the Item tool.

Immersion Day. Getting Started with Linux on Amazon EC2

Introduction to Lab Practicals (Lab Intro 3) Access Control, Synchronisation and Remote Access

Linking OneDrive Files to Local Microsoft Office Installations Interactive Table of Contents

Customizing DAZ Studio

USING DRUPAL. Hampshire College Website Editors Guide

Infinity Management Guide

Troubleshooting Guide for Migrating WordPress Installations

Adding Content. 4. The following page will display (see image to the right): 5. Enter the title of the text page in the Name* field (required).

Bitnami Pimcore for Huawei Enterprise Cloud

Bitnami ez Publish for Huawei Enterprise Cloud

Introducing Thrive - The Ultimate In WordPress Blog Design & Growth

Moving Materials from Blackboard to Moodle

Soundburst has been a music provider for Jazzercise since Our site is tailored just for Jazzercise instructors. We keep two years of full

Lab 5: Dreamweaver CS5, Uploading your Web site

USER MANUAL. Language Translator TABLE OF CONTENTS. Version: 1.0.4

Bitnami Piwik for Huawei Enterprise Cloud

Setting up VPS on Ovh public cloud and installing lamp server on Ubuntu instance

INSTALLING RACHEL ON SYNOLOGY GIAKONDA IT

Using RANCID. Contents. 1 Introduction Goals Notes Install rancid Add alias Configure rancid...

Installation of Baïkal server on Synology NAS running DSM v5 and configuring clients to use it.

Web Hosting. Important features to consider

ViMP 2.0. Installation Guide. Verfasser: ViMP GmbH

Zinstall FullBack User Guide. Thank you for purchasing Zinstall FullBack. If you have any questions, issues or problems, please contact us:

Technical Intro Part 1

EASYLAMP REDHAT V1.0 DOCUMENT OWNER: OUDHUIS, JONATHAN INGRAM MICRO CLOUD EUROPE

RETROPIE INSTALLATION GUIDE

Unit: Making a move (using FTP)

From using an External Harddrive, to a Google Cloud Drive; there is no one way to backup data.

EXTENSION FOR MAGENTO 2. (Updated May 23 rd 2017) INSTALLATION GUIDE

Load Balancing VMware Workspace Portal/Identity Manager

Critical Analysis and last hour guide for RHCSA/RHCE Enterprise 7

DogeCash Masternode Setup Guide Version 1.2 (Ubuntu 16.04)

Online Backup Client User Manual

MAGENTO 2 INSTALL EXTENSION MANUALLY

XCloner. Official User Manual. Copyright 2010 JoomlaPlug.com All rights reserved.

Workshop on Genomics 2018

Note, you must have Java installed on your computer in order to use Exactly. Download Java here: Installing Exactly

Bitnami Tiny Tiny RSS for Huawei Enterprise Cloud

Bitnami Phabricator for Huawei Enterprise Cloud

1 Installation (briefly)

Flexible Engine. Startup Guide

Launching secure-by-default SLES on Amazon EC2 instances with Amazon Virtual Private Cloud (VPC)

LOCAL WALLET (COLD WALLET):

Transcription:

Install Nextcloud on Synology NAS Categories : Uncategorised Date : 23rd February 2017 1 / 16

Guide to Install Nextcloud on Synology NAS 25 Sep 2016» Tutorial Disclaimer: If on the rare occasion you do corrupt your computer/nas or any data on it do keep in mind it is not my fault. I didn t force you to implement any commands. As a result I am not liable for any damages that may occur. From Dropbox to Google Drive there are TONS of different cloud based backup/sync platforms out there. But do you trust all those 3rd parties with your personal private data just out there? Now, let s get down and dirty on installing a fresh version of Nextcloud on our Synology server! At the time of this writing the following is the versions of hardware/software/firmware I ll be using in this tutorial. Synology 12 Bay DS2415+ Synology DSM 6.0.2-8451 Update 1 ( 2016/09/01 ) Nextcloud 10.0.0 PHP 5.6 Creating the Nextcloud Volume This first step is creating the Nextcloud volume within the Synology Storage Manager. Go to Storage Manager > Volume > Create 2 / 16

Depending on how you setup your RAID configuration your prefrences may differ. In my case I ll be setting mine up in the following format. Choose a mode : Custom Choose a action: Multiple Vomlumes on RAID Create or select a Disk Group: Disk Group 1 ( Choose whatever disk group your want your Nextcloud server on ) Select a file system : Btrfs Allocate volume capacity : 500 ( Enter the amount of storage you will want to assign for Nextcloud ) Edit description : Nextcloud ( Name the volume ) Confirm settings : Apply After that is completed you should now see your volume available within the Storage Manager Installing Web Station Now with our newly created Nextcloud volume let s go ahead and install the Web Station application and create a virtual host within the volume. 3 / 16

Click on your Package Center and on the left hand column select the Utilities category. Scroll down just a bit and you find the Web Station application. Now click Install and select the following options. Select a destination volume to install the package : Volume 3 ( Please select the Nextcloud volume you created in previous step. ) Confirm settings : Apply Note: Some users had issues where Web Station share folder did not install in the proper defined volume location. To change this/verify go to Control Panel > Shared Folder. From there select the web folder that Web Station automatically creates and click Edit. From there you can now assign that folder to the proper volume. Now that the Web Station application has been installed on your Nextcloud volume lets browse over to the volumes folder. Open up File Station and on the left hand side you should see a folder called web. Inside that folder create a new folder called nextcloud as so. 4 / 16

Now that we have the application installed, and folder created let s now take a look at the PHP settings within the Web Station application. Go to Web Station > PHP Settings and check Customize PHP open_basedir and add the following to the end. ( Be sure to add your proper volume number! ) :/dev/urandom:/volume3/nextcloud Installing Nextcloud In the browser of your choice head on over to https://nextcloud.com/install/. You will need to download the Nextcloud server image 5 / 16

Once you have extracted the zip folder place all content withing the nextcloud archive within your /web/nextcloudfolder on the synology. You can transfer your files via FTP/Web/Explorer/etc. 6 / 16

We will also need to create a nextcloud folder outside of the web folder ( this will be used for the data ). Head over to Control Panel > Shared Folder and create a new folder called nextcloud 7 / 16

Setting Folder Permissions Once both of those folders have been created and nextcloud files have been placed into your /web/nextclouddirectory on your Synology we now need to change permissions. We will now need to SSH into the Synology server. First off ensure SSH is enabled on the Synology server by going to Control Panel > Terminal & SNMP and make sure Enable SSH service is checked. Once we have made sure of SSH being enabled we now can SSH into the box. If using Windows you can download PuTTY, or use windows bash. Linux already comes with ssh installed so no need to worry. 8 / 16

Once inside escalate your privilages to root using sudo su from there change into your directory, create the bash script, change permissions to run script, then execute. Here is the bash script I used to change the permissions. ( Remember to change the volume number or directory name to whatever you made yours! ) #!/bin/bash chown -R http:http /volume3/web/nextcloud/ chown -R http:http /volume3/web/nextcloud/apps/ chown -R http:http /volume3/web/nextcloud/config/ chown -R http:http /volume3/web/nextcloud/themes/ chown -R http:http /volume3/nextcloud/ chown http:http /volume3/web/nextcloud/.htaccess find /volume3/web/nextcloud/ -type f -print0 xargs -0 chmod 777 find /volume3/web/nextcloud/ -type d -print0 xargs -0 chmod 777 find /volume3/nextcloud/ -type d -print0 xargs -0 chmod 777 chmod 777 /volume3/web/nextcloud/.htaccess Don t flip out just yet I know what your thinking 777!!! We change this later on. Virtual host & Database Setup Head back on over to Web Station and under Virtual Host tab click create a new host, and setup as the following. ( Be sure to use your document root ) 9 / 16

Now that we have the Virual host setup we now lastly need a database to store our lovely bits. Open up Package Center and under Utilities tab scroll until you find MariaDB and Install. Once install has finished open up MariaDB from your main menu and change the default password ( blank ) and volume location if needed. 10 / 16

Setting up Nextcloud Point your browser to your Nextcloud server virtual host https://your.synology.ip.address/nextcloud and now you should see a Nextcloud setup page! 11 / 16

Now enter in your details accordingly 12 / 16

Security Hardening The first bash script we created weakened the security on the Nextcloud making folder and files readable, writable, and executable to EVERYONE. Let s make a few tweaks now to change those permissions back. 13 / 16

Always refer to the documentation to setup your cloud server https://docs.nextcloud.com/server/9/admin_manual/installation/installation_wizard.html#setting-strongdirectory-permissions Below is a bash script I ll use to configure my directory permissions. Please setup your Synology permissions to your likings. #!/bin/bash mkdir -p /volume3/web/nextcloud/assets find /volume3/web/nextcloud -type f -print0 xargs -0 chmod 0640 find /volume3/nextcloud -type f -print0 xargs -0 chmod 0640 find /volume3/web/nextcloud -type d -print0 xargs -0 chmod 0750 find /volume3/nextcloud -type d -print0 xargs -0 chmod 0750 chown -R root:http /volume3/web/nextcloud chown -R http:http /volume3/web/nextcloud/apps/ chown -R http:http /volume3/web/nextcloud/assets/ chown -R http:http /volume3/web/nextcloud/config/ chown -R http:http /volume3/web/nextcloud/data/ chown -R http:http /volume3/web/nextcloud/themes/ chown -R http:http /volume3/web/nextcloud/updater/ chmod +x /volume3/web/nextcloud/occ chown root:http /volume3/web/nextcloud/.htaccess chown root:http /volume3/nextcloud/.htaccess chown http:http /volume3/web/nextcloud/.user.ini NOTE: The above script sets strong permissions that will prevent upgrading your Nextcloud server. When you need to upgrade your Nextcloud server use the following command below, then after upgrade is successful re-run the abovescript to re-harden. Also, the last line in the above script is changing ownership so you are able to change your Max upload file limit within the browser. If you do not want this simply delete it from the script. chown -R http:http /volume3/web/nextcloud Encryption is always an important feature to have especially if it s private data you may have on your own cloud server. On the top right hand corner of your Nextcloud page click the down arrow and click Admin. On the left hand side you should see a tab called Encryption once on the page checkmark the Enable server-side encryption and click Enable encryption. You will come up with a message saying No encryption module loaded. Add the encryption module by going to your Apps page. 14 / 16

On the left hand side click Not enabled and scroll until you find Defualt encryption module and enable. Now head back to Admin > Encryption and make sure the Default encryption module button is filled. You will now get a pop up saying Encryption app is enabled but Just sign out and sign back in and head on over back to the encryption page and make sure everything looks fine! And BAM we are finally done setting up our Nextcloud server on our Synology! Enjoy your cloud server remember to check for updates when they release! Hope everything was smooth and thank you for reading! 15 / 16

Powered by TCPDF (www.tcpdf.org) Notes 2 From 16 / 16