NextCloud on LAMP on Stretch on Synology DS918+: Difference between revisions

From munkjensen.net/wiki
No edit summary
mNo edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Using VMM ==
# Download a bootable installation image (iso type) for the *nix flavour of your liking - i favor [https://www.debian.org/distrib/index.en.html Debian].
# Download a bootable installation image (iso type) for the *nix flavour of your liking - i favor [https://www.debian.org/distrib/index.en.html Debian].
## ''Save it on your [https://www.synology.com/en-uk/products/series/plus DS plus series Synology NAS] I got a DS918+ with 16GB RAM <sup>:-P</sup>''
## ''Save it on your [https://www.synology.com/en-uk/products/series/plus DS plus series Synology NAS] I got a DS918+ with 16GB RAM <sup>:-P</sup>''
Line 4: Line 7:
## ''Minimum 1 CPU <sup>;-)</sup> 1 Gb RAM and As much storage as you would like your NextCloud Server to be able to share to the future NextCloud users.''
## ''Minimum 1 CPU <sup>;-)</sup> 1 Gb RAM and As much storage as you would like your NextCloud Server to be able to share to the future NextCloud users.''
# Make the new virtual machine boot on the ISO you downloaded in step 1.
# Make the new virtual machine boot on the ISO you downloaded in step 1.
# Install the *nix distro, WITHOUT any fancy GUI Desktop - cli is how we rock.
# Turn the VM on, and connect to it using the apropriate connect button.
# Follow the "[https://docs.nextcloud.com/server/13/admin_manual/installation/source_installation.html#example-installation-on-ubuntu-16-04-lts-server Example installation on Ubuntu 16.04 LTS server] '''BUT DO NOT''' install using 'Snap image.
# Install the *nix distro, EXCLUDING any and all fancy GUI Desktop - SSH is how we rock, so install that if is not done by default.
# Follow the "[https://docs.nextcloud.com/server/13/admin_manual/installation/source_installation.html#example-installation-on-ubuntu-16-04-lts-server Example installation on Ubuntu 16.04 LTS server]" '''BUT DO NOT''' install using 'Snap image.
## You will not always be prompted to enter a root password... live with it.
## '''BEFORE''' you do this ''"Now download the archive of the latest Nextcloud version:"''
## Install the database, by executing the 'Database commands' below as root:
## Now continue doing ''"Now download the archive of the latest Nextcloud version:"'' in the "[https://docs.nextcloud.com/server/13/admin_manual/installation/source_installation.html#example-installation-on-ubuntu-16-04-lts-server Example installation on Ubuntu 16.04 LTS server]".
# Win...


* To install the database, execute these commands as root:
 
<blockquote><pre>mysql -uroot -p</pre>
==== Database commands ====
 
<blockquote><pre>mysql -u root -p</pre>


Then a mysql> or MariaDB [root]> prompt will appear. Now enter the following lines and confirm them with the enter key:
Then a mysql> or MariaDB [root]> prompt will appear. Now enter the following lines and confirm them with the enter key:
Line 19: Line 30:


<pre>quit</pre></blockquote>
<pre>quit</pre></blockquote>
[[Category:Debian]]
[[Category:DS918+]]
[[Category:Synology]]
[[Category:NextCloud]]

Latest revision as of 13:26, 16 September 2019

Using VMM

  1. Download a bootable installation image (iso type) for the *nix flavour of your liking - i favor Debian.
    1. Save it on your DS plus series Synology NAS I got a DS918+ with 16GB RAM :-P
  2. Create a Virtual Machine in the Virtual Machine Manager on your DS plus series Synology NAS
    1. Minimum 1 CPU ;-) 1 Gb RAM and As much storage as you would like your NextCloud Server to be able to share to the future NextCloud users.
  3. Make the new virtual machine boot on the ISO you downloaded in step 1.
  4. Turn the VM on, and connect to it using the apropriate connect button.
  5. Install the *nix distro, EXCLUDING any and all fancy GUI Desktop - SSH is how we rock, so install that if is not done by default.
  6. Follow the "Example installation on Ubuntu 16.04 LTS server" BUT DO NOT install using 'Snap image.
    1. You will not always be prompted to enter a root password... live with it.
    2. BEFORE you do this "Now download the archive of the latest Nextcloud version:"
    3. Install the database, by executing the 'Database commands' below as root:
    4. Now continue doing "Now download the archive of the latest Nextcloud version:" in the "Example installation on Ubuntu 16.04 LTS server".
  7. Win...


Database commands

mysql -u root -p

Then a mysql> or MariaDB [root]> prompt will appear. Now enter the following lines and confirm them with the enter key:

CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost' IDENTIFIED BY 'password';

Quit the mysql> or MariaDB [root]> prompt by entering:

quit