Next Cloud Installation procedure

Bureaua

Explorer
Joined
Nov 28, 2020
Messages
75
Can anyone point me to a good an easy to follow procedure to install Next Cloud on my TrueNAS server version 12.0

Thank You
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
From the Jail and Plugins section of Resources (see the masthead):

https://www.truenas.com/community/resources/scripted-installation-of-nextcloud-19-in-iocage-jail.90/ and

https://www.truenas.com/community/r...in-an-iocage-jail-with-hardened-security.143/

The first is a script - I know you earlier said that you did not want a script in order to learn - there's nothing stopping you looking directly at the script on Github to see all the commands and learn about the whole "by example".

The second steps you through the process with you making the command entries and configuration selections.

I suggest you read the comments sections also for both as you will there find fixes and workarounds, also the mistakes made and many remedies for them. I know I had to find a couple of answers there when I successfully installed @danb35's script version. It also taught me something about certificates in the process.

I sense you may be becoming frustrated - getting up the learning curve with this stuff is a hard slog. If you evidence trying by providing clear input on what you have tried, where you are stuck, the details of any error messages, you'll usually find help here. I know you've already some experience of it.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Feeling a bit ill the last couple of days, but can definitely continue to give you a hand over the weekend. You might want to read the documentation on the Github repository to begin with.

Kind regards,
Patrick
 

Bureaua

Explorer
Joined
Nov 28, 2020
Messages
75
From the Jail and Plugins section of Resources (see the masthead):

https://www.truenas.com/community/resources/scripted-installation-of-nextcloud-19-in-iocage-jail.90/ and

https://www.truenas.com/community/r...in-an-iocage-jail-with-hardened-security.143/

The first is a script - I know you earlier said that you did not want a script in order to learn - there's nothing stopping you looking directly at the script on Github to see all the commands and learn about the whole "by example".

The second steps you through the process with you making the command entries and configuration selections.

I suggest you read the comments sections also for both as you will there find fixes and workarounds, also the mistakes made and many remedies for them. I know I had to find a couple of answers there when I successfully installed @danb35's script version. It also taught me something about certificates in the process.

I sense you may be becoming frustrated - getting up the learning curve with this stuff is a hard slog. If you evidence trying by providing clear input on what you have tried, where you are stuck, the details of any error messages, you'll usually find help here. I know you've already some experience of it.
Thank You for your advice. It is appreciated. Yes Im getting very frustrated as nothing works as it is supposed to work. for example. Im trying to install ssh on my jail to access it from my Mac Terminal, with the following command. ssh root@<Jail-IP>. Prior to that here is what I have done

Create a new jail call mycloud on static IP-as DHCP is not working on my server??
Command
iocage console mycloud - OK
sysrc sshd_enable=yes - OK
passwd - created a password -OK
service sshd start -OK

then I edited the ssh/sshd_config to enable PermitRootLogin yes and saved

Then from my Mac terminal
ssh root@192.168.0.154 - work ok

ssh-copy-id root@192.168.0.198 (Jail static IP)

root@NASServer[~]# ssh-copy-id root@192.168.0.198
Could not open a connection to your authentication agent.
no keys found.

I have been at it for 8 hours??


root@NASServer[~]#
 

Bureaua

Explorer
Joined
Nov 28, 2020
Messages
75
Feeling a bit ill the last couple of days, but can definitely continue to give you a hand over the weekend. You might want to read the documentation on the Github repository to begin with.

Kind regards,
Patrick
Patrick--Great--I appreciate your help
NO COVID I hope?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
root@NASServer[~]# ssh-copy-id root@192.168.0.198
Could not open a connection to your authentication agent.
no keys found.
You need to do the copy-id from your Mac terminal, not logged in to the TrueNAS. :wink:

And no, just a common cold. Nose, throat, but no loss of taste, difficulty breathing or anything, so most probably ... cold.
 

Bureaua

Explorer
Joined
Nov 28, 2020
Messages
75
Feeling a bit ill the last couple of days, but can definitely continue to give you a hand over the weekend. You might want to read the documentation on the Github repository to begin with.

Kind regards,
Patrick
I messed up going on my own. I had to reload the whole server.

Now Can't install SSH on my jail
 

Bureaua

Explorer
Joined
Nov 28, 2020
Messages
75
You need to do the copy-id from your Mac terminal, not logged in to the TrueNAS. :wink:

And no, just a common cold. Nose, throat, but no loss of taste, difficulty breathing or anything, so most probably ... cold.
HE IS WHAT IM GETTING FROM MY MAC TERMINAL WITH THE SSH-COPY-ID

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
ALAINs-MacBook-Pro-2:~ alainbureau$ ssh-copy-id root@192.168.0.198
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/Users/alainbureau/.ssh/id_rsa.pub"
The authenticity of host '192.168.0.198 (192.168.0.198)' can't be established.
ECDSA key fingerprint is SHA256:/teg0CZrioXt52yRuj5xpb+VKf14f39QM2vx3SOvr6Q.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
 

Bureaua

Explorer
Joined
Nov 28, 2020
Messages
75
From the Jail and Plugins section of Resources (see the masthead):

https://www.truenas.com/community/resources/scripted-installation-of-nextcloud-19-in-iocage-jail.90/ and

https://www.truenas.com/community/r...in-an-iocage-jail-with-hardened-security.143/

The first is a script - I know you earlier said that you did not want a script in order to learn - there's nothing stopping you looking directly at the script on Github to see all the commands and learn about the whole "by example".

The second steps you through the process with you making the command entries and configuration selections.

I suggest you read the comments sections also for both as you will there find fixes and workarounds, also the mistakes made and many remedies for them. I know I had to find a couple of answers there when I successfully installed @danb35's script version. It also taught me something about certificates in the process.

I sense you may be becoming frustrated - getting up the learning curve with this stuff is a hard slog. If you evidence trying by providing clear input on what you have tried, where you are stuck, the details of any error messages, you'll usually find help here. I know you've already some experience of it.
Thank you for that. I will first reed the whole thing. Thanks
 

Bureaua

Explorer
Joined
Nov 28, 2020
Messages
75
Feeling a bit ill the last couple of days, but can definitely continue to give you a hand over the weekend. You might want to read the documentation on the Github repository to begin with.

Kind regards,
Patrick

Patrick,
Im getting ready to run danb35 script.
  1. The script indicates it will create an iocage Jail for nextcloud. Therefore, should I delete the one I have created?
  1. Im currently doing some research to find out if caddy will be able to get a TSL certificate from Let’s Encrypt for the my Public Domain I purchased from EasyDNS and where it is hosted.
  1. I set up the Datasets as indicated with 4 sub-datasets on a different storage pool than where the iocage is located
  1. The installation procedure indicates to download the script to a convenient directory on my server. Where should that be and how do you create a new directory on a dataset?
  1. Then it indicates to change to the new iocage nextcloud directory?
    1. This is not yet created as the script has not been run?
    2. What is the command to change directory and or create a new directory
6. Then it indicates to create a Config file. I know how to use nano now and how to install it but what is the command to create a new file?

This is probably very basic for you, but I'm new to this stuff and I want to learn.

Thank you very me for helping me.
 

HannesM

Dabbler
Joined
Jul 4, 2017
Messages
24
Bureaua,
Sounds your NextCloud ist running :confused: actualy i'm writing an documentation (how-to) install
- NextCloud 19.0.3 (20 is not in the FreeBSD pkg space right now)
- MariaDB Web Admin (based on phpmyadmin 5.0)
and optional
- Webmin
everything is installed in the TrueNAS Jail 12-2-p2 on my Host.

But the documentation is not in english right now :oops:

Regards and don't forget to backup the NextCloud stuff to have a recovery point, if the Jail / PHP /MariaDB is broken.

Regards
Hannes
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

ddaenen1

Patron
Joined
Nov 25, 2019
Messages
318

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Top