Freezone S'inscrire

FAQ FAQ Rechercher Rechercher Liste des Membres Liste des Membres Groupes d'utilisateurs Groupes d'utilisateurs S'enregistrer S'enregistrer
(Delta) VM: recherche de retours d'expérience avec NextCloud
 

Poster un nouveau sujet    Répondre au sujet
   Univers Freebox Index du Forum -> Freebox / Freebox OS / Les App. (Freebox Connect, Freebox Files...)



 Auteur   Message 
azer56fr
(Auteur du topic)

Hobbit de L'Univers


Inscrit le: 28 Oct 2017
Messages: 8
 
13 points

azer56fr
(Auteur du topic), Posté le: Lun 02 Aoû 2021, 1:43    Sujet du message: (Delta) VM: recherche de retours d'expérience avec NextCloud (Delta) VM: recherche de retours d'expérience avec NextCloud 162742 149654
Répondre en citant

Bonjour à tous,

Je suis à la recherche de retours d'expériences concernant l'installation de NextCloud sur une VM Freebox Delta afin d'accéder à ses fichiers et collaborer sur ceux-ci, et en savoir plus sur la configuration utilisée.

Il y aurait-il des personnes concernées ici ? Question

Merci d'avance pour vos retours Wink

A bientôt
Azer56

*** Modération *** Titre édité *** Modération ***

Curtis Newton
 
Revenir en haut Voir le profil de l'utilisateur Envoyer un message privé
Acetone803
Disciple de L'Univers


Inscrit le: 22 Déc 2019
Messages: 160
 
238 points

Acetone803, Posté le: Sam 30 Juil 2022, 19:05    Sujet du message: 214002 194218 Répondre en citant

Ca fait pas mal de temps que j'utilise, ca marche pas mal au quotidien. J'ai juste changé la barrette par une 4Gb.

Dans la config de la VM je met le max: 3 Gbits/s et 2 processeurs. Ça me permet de me faire mon Cloud du PC et du Smartphone.
 
Revenir en haut Voir le profil de l'utilisateur Envoyer un message privé
Acetone803
Disciple de L'Univers


Inscrit le: 22 Déc 2019
Messages: 160
 
238 points

Acetone803, Posté le: Sam 30 Juil 2022, 19:41    Sujet du message: 214002 194218 Répondre en citant

NEXTCLOUD Debian VM 10. Prerequisites:

• A Server running Debian 10.
• A valid domain name pointed with your Server IP. in this tutorial, we will use nextcloud.example.com domain.
• A root password is configured on your Server.
Citation:
nano /etc/hosts

Add 127.0.0.1 DebianVM

Install Apache, MariaDB and PHP
NextCloud runs on the webserver, written in PHP and uses MariaDB To Store their data. So you will need To install Apache, MariaDB, PHP and other required packages on your system. You can install all of them by running the following command:
Citation:
apt-get install apache2 libapache2-mod-php mariadb-Server php-xml php-cli php-cgi php-mysql php-mbstring php-gd php-curl php-zip wget unzip unattended-upgrades apt-listchanges -y

dpkg-reconfigure -plow unattended-upgrades

Once all the packages are installed, open the php.ini file and tweak some recommended settings:
nano /etc/php/7.4/apache2/php.ini

Change the following settings:
Citation:
memory_limit = 512M
upload_max_filesize = 500M
post_max_size = 500M
max_execution_time = 300
date.timezone = Europe/Paris

Save and close the file when you are finished. Then, start the Apache and MariaDB service and enable them To start after system reboot with the following command:
Citation:
systemctl start apache2
systemctl start mariadb
systemctl enable apache2
systemctl enable mariadb

Once you are done, you can proceed To the next step.

Configure Database for NextCloud

Next, you will need To create a database and database user for NextCloud. To do so, log in To MariaDB shell with the following command:
mysql -u root -p

Provide your root password when asked then create a database and user with the following command:
MariaDB [(none)]> CREATE DATABASE nextclouddb;
MariaDB [(none)]> CREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'password';
(le 'password' c'est le mot de passe )

Next, grant all the privileges To the nextclouddb with the following command:
MariaDB [(none)]> GRANT ALL ON nextclouddb.* To 'nextclouduser'@'localhost';

Next, flush the privileges and exit from the MariaDB shell with the following command:
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;

Once you are done, you can proceed To the next step.

Download NextCloud

First, visit the NextCloud Download page and Download the latest version of the NextCloud on your system. At the time of writing this article, the latest version of NextCloud is 17.0.1. You can Download it with the following command:

wget https://Download.nextcloud.com/Server/releases/nextcloud-24.0.1.zip

Once the Download is completed, unzip the downloaded file with the following command:
unzip nextcloud-24.0.1.zip

Next, move the extracted directory To the Apache Web root directory:
mv nextcloud /var/www/html/

Next, give proper permissions To the nextcloud directory with the following command:
chown -R www-data:www-data /var/www/html/nextcloud/
chmod -R 755 /var/www/html/nextcloud/

Once you are finished, you can proceed To the next step.

Configure Apache for NextCloud

Next, you will need To create an Apache virtual host configuration file To serve NextCloud. You can create it with the following command:

nano /etc/apache2/sites-available/nextcloud.conf

Add the following lines:
<VirtualHost>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/nextcloud/
ServerName nextcloud.example.com

Alias /nextcloud "/var/www/html/nextcloud/"

<Directory>
Options +FollowSymlinks
AllowOverride All
Require all granted
<IfModule>
Dav off
</IfModule>
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Save and close the file when you are finished. Then, enable the Apache virtual host file and other required modules using the following commands:
a2ensite nextcloud.conf
a2enmod rewrite
a2enmod headers
a2enmod env
a2enmod dir
a2enmod mime

Finally, restart the Apache service To apply the new configuration:
systemctl restart apache2 

Secure NextCloud with Let's Encrypt Free SSL

NextCloud is now installed and configured. Next, it is recommended To secure it with Let's Encrypt Free SSL. To do so, first install the Certbot client with the following command:
apt-get install python3-certbot-apache -y

Once installed, you can run the following command To install Let's Encrypt Certificate for your domain nextcloud.example.com.
certbot --apache -d nextcloud.example.com

During the installation, you will be asked To provide your email address and accept the term of service as shown below:
Saving debug log To /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and security notices) (Enter 'c' To
cancel): admin@example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.PDF. You must
agree in order To register with the ACME Server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing To share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like To send you email about our work
encrypting the Web, EFF news, campaigns, and ways To support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for nextcloud.example.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning UP challenges
Created an SSL vhost at /etc/apache2/sites-available/nextcloud-le-SSL.conf
Deploying Certificate To VirtualHost /etc/apache2/sites-available/nextcloud-le-SSL.conf
Enabling available site: /etc/apache2/sites-available/nextcloud-le-SSL.conf

Please choose whether or not To redirect HTTP trafic To HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes To the webserver configuration.
2: Redirect - Make all requests redirect To secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your Web Server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' To cancel): 2

Next, type 2 and hit Enter To Download and install a Free SSL certificate for your domain. Once the installation has been completed successfully. You should get the following output:
Enabled Apache rewrite module
Redirecting vhost in /etc/apache2/sites-enabled/nextcloud.conf To SSL vhost in /etc/apache2/sites-available/
nextcloud-le-SSL.conf

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://nextcloud.example.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=nextcloud.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/Live/example.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/Live/example.com/privkey.pem
Your cert will expire on 2019-10-22. To obtain a new or tweaked
version of this certificate in the future, simply run certbot again
with the "certonly" option. To non-interactively renew *all* of
your certificates, run "certbot renew"
- Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
- If you like Certbot, please consider supporting our work by:
Donating To ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating To EFF: https://eff.org/donate-le

Once you are finished, you can proceed To the next step.

Access NextCloud Web Interface

Your NextCloud is now configured and secured with Let's Encrypt SSL. Next, open your Web browser and type the URL https://nextcloud.example.com. You will be redirected To the following page:



Now, provide your admin username and password, Data folder, Correct database credentials and click on the Finish setup button. You will be redirected To the NextCloud dashboard in the following page:

La config Android (j'ai un peu galéré):



Edit: je ne sais plus sur quel site j'ai trouvé ce tuto, il n'est pas de moi. Il manque la mise à jour auto des paquets et le renouvellement automatique du certificat lets encrypt

*** Modération *** Mise en page éditée *** Modération ***

Curtis Newton
 
Revenir en haut Voir le profil de l'utilisateur Envoyer un message privé

Poster un nouveau sujet     Répondre au sujet

Univers Freebox Index du Forum -> Freebox / Freebox OS / Les App. (Freebox Connect, Freebox Files...)
Page 1 sur 1
Toutes les heures sont au format GMT + 2 Heures
 

 
Sauter vers:  
Vous ne pouvez pas poster de nouveaux sujets dans ce forum
Vous ne pouvez pas répondre aux sujets dans ce forum
Vous ne pouvez pas éditer vos messages dans ce forum
Vous ne pouvez pas supprimer vos messages dans ce forum
Vous ne pouvez pas voter dans les sondages de ce forum





CoolVista Thème phpbb
- Site adapté par Vincent Barrier
 © 2005 - 2009 Univers Freebox