StuRa:Server/Nextcloud: Unterschied zwischen den Versionen
(→NixOS) |
|||
(11 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 16: | Zeile 16: | ||
===== [[TurnKey]] 15 Installation Durchführung ===== | ===== [[TurnKey]] 15 Installation Durchführung ===== | ||
====== [[TurnKey]] 15 Installation Antivirus scanner ====== | |||
Für die standardmäßige [[#Konfiguration Antivirus scanner]] erwartet [[{{PAGENAME}}]] die Datei <code>clamscan</code> (an der Stelle <code>/usr/bin/clamscan</code>) als Programm für den <code>Mode</code> <code>ClamAV Executable</code>. Die Datei gibt es aber nicht, da ClamAV nicht installiert ist. | |||
Installieren vom Paket <code>clamav</code> | |||
: <code>apt install -y clamav</code> | |||
Anzeigen des Ablageortes eines Kommandos | |||
: <code>which clamav</code> | |||
<pre> | |||
/usr/bin/clamscan | |||
</pre> | |||
---- | |||
"Es heißt immer", dass darüber hinaus der Dienst für ClamAV noch installiert und laufen soll. :-/ | |||
Installieren vom Paket <code>clamav-daemon</code> | |||
: <code>apt install -y clamav-daemon</code> | |||
Starten vom Dienst <code>clamav-daemon</code> | |||
: <code>systemctl start clamav-daemon.service</code> | |||
Anzeigen vom Stand vom Dienst <code>clamav-daemon</code> | |||
: <code>systemctl status clamav-daemon.service</code> | |||
Scheint nicht zu funktionieren! | |||
standardmäßiges Ausschalten vom Dienst <code>clamav-daemon</code> | |||
: <code>systemctl disable clamav-daemon.service</code> | |||
===== [[TurnKey]] 15 Installation Nachbereitung ===== | ===== [[TurnKey]] 15 Installation Nachbereitung ===== | ||
Zeile 1.105: | Zeile 1.134: | ||
Fix broken values of calendar objects | Fix broken values of calendar objects | ||
Done | Done | ||
--> | |||
0/0 [----->----------------------] 0% | 0/0 [----->----------------------] 0% | ||
<!-- | |||
Updated <dav> to 1.15.0 | Updated <dav> to 1.15.0 | ||
Updating <files_sharing> ... | Updating <files_sharing> ... | ||
Zeile 1.452: | Zeile 1.483: | ||
</pre> | </pre> | ||
---- | |||
* 2020-12-09 | |||
* (Proxmox CT) snapshot | |||
: <code>apt update && apt -y upgrade</code> | |||
https:///index.php/settings/admin/overview# | |||
<pre></pre> | |||
<pre> | |||
Version | |||
Nextcloud 19.0.4 | |||
A new version is available: Nextcloud 19.0.5 | |||
All apps have an update for this version available | |||
Apps with available updates | |||
Open updater Download now | |||
Update channel: Stable | |||
</pre> | |||
<pre></pre> | |||
''Open updater'' | |||
https:///updater/ | |||
<pre></pre> | |||
<pre> | |||
Initializing | |||
Current version is 19.0.4. | |||
Update to Nextcloud 19.0.5 available. (channel: "stable") | |||
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-19.0.5.zip | |||
Open changelog ↗ | |||
Check for expected files | |||
Check for write permissions | |||
Create backup | |||
Downloading | |||
Verifying integrity | |||
Extracting | |||
Enable maintenance mode | |||
Replace entry points | |||
Delete old files | |||
Move new files in place | |||
Keep maintenance mode active? | |||
Done | |||
</pre> | |||
<pre></pre> | |||
''Start update'' | |||
<pre> | |||
Initializing | |||
Current version is 19.0.4. | |||
Update to Nextcloud 19.0.5 available. (channel: "stable") | |||
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-19.0.5.zip | |||
Open changelog ↗ | |||
Check for expected files | |||
Check for write permissions | |||
Create backup | |||
Downloading | |||
Verifying integrity | |||
Extracting | |||
Enable maintenance mode | |||
Replace entry points | |||
Delete old files | |||
Move new files in place | |||
Keep maintenance mode active? | |||
</pre> | |||
''No (for usage of the web based updater)'' | |||
<pre> | |||
: | Initializing | ||
Current version is 19.0.4. | |||
Update to Nextcloud 19.0.5 available. (channel: "stable") | |||
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-19.0.5.zip | |||
Open changelog ↗ | |||
Check for expected files | |||
Check for write permissions | |||
Create backup | |||
Downloading | |||
Verifying integrity | |||
Extracting | |||
Enable maintenance mode | |||
Replace entry points | |||
Delete old files | |||
Move new files in place | |||
Keep maintenance mode active? | |||
Maintenance mode will get disabled. | |||
Done | |||
</pre> | |||
''Go back to your Nextcloud instance to finish the update'' | |||
https:// | https:/// | ||
<pre> | |||
Nextcloud will be updated to version 19.0.5 | |||
Please make sure that the database, the config folder and the data folder have been backed up before proceeding. | |||
To avoid timeouts with larger installations, you can instead run the following command from your installation directory: | |||
./occ upgrade | |||
</pre> | |||
''Start update'' | |||
<pre> | |||
Nextcloud | |||
Update to 19.0.5 | |||
* https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/ | The update was successful. Redirecting you to Nextcloud in 0 seconds. | ||
Detailed logs | |||
</pre> | |||
<!-- | |||
<pre> | |||
Preparing update | |||
Set log level to debug | |||
Turned on maintenance mode | |||
Repair step: Repair MySQL collation | |||
Repair info: All tables already have the correct collation -> nothing to do | |||
Repair step: Repair SQLite autoincrement | |||
Repair step: Copy data from accounts table when migrating from ownCloud | |||
Repair step: Drop account terms table when migrating from ownCloud | |||
Updating database schema | |||
Updated database | |||
Checking for update of app "accessibility" in appstore | |||
Checked for update of app "accessibility" in appstore | |||
Checking for update of app "activity" in appstore | |||
Checked for update of app "activity" in appstore | |||
Checking for update of app "appointments" in appstore | |||
Update app "appointments" from appstore | |||
Repair step: Update hook for Appointments app | |||
Repair info: appointments UpdateHook finished | |||
Checked for update of app "appointments" in appstore | |||
Checking for update of app "calendar" in appstore | |||
Checked for update of app "calendar" in appstore | |||
Checking for update of app "cloud_federation_api" in appstore | |||
Checked for update of app "cloud_federation_api" in appstore | |||
Checking for update of app "comments" in appstore | |||
Checked for update of app "comments" in appstore | |||
Checking for update of app "contacts" in appstore | |||
Update app "contacts" from appstore | |||
Checked for update of app "contacts" in appstore | |||
Checking for update of app "contactsinteraction" in appstore | |||
Checked for update of app "contactsinteraction" in appstore | |||
Checking for update of app "cospend" in appstore | |||
Checked for update of app "cospend" in appstore | |||
Checking for update of app "dav" in appstore | |||
Checked for update of app "dav" in appstore | |||
Checking for update of app "deck" in appstore | |||
Update app "deck" from appstore | |||
Repair step: Delete orphaned ACL rules | |||
Checked for update of app "deck" in appstore | |||
Checking for update of app "documentserver_community" in appstore | |||
Checked for update of app "documentserver_community" in appstore | |||
Checking for update of app "drop_account" in appstore | |||
Checked for update of app "drop_account" in appstore | |||
Checking for update of app "event_update_notification" in appstore | |||
Checked for update of app "event_update_notification" in appstore | |||
Checking for update of app "external" in appstore | |||
Checked for update of app "external" in appstore | |||
Checking for update of app "federatedfilesharing" in appstore | |||
Checked for update of app "federatedfilesharing" in appstore | |||
Checking for update of app "federation" in appstore | |||
Checked for update of app "federation" in appstore | |||
Checking for update of app "files" in appstore | |||
Checked for update of app "files" in appstore | |||
Checking for update of app "files_antivirus" in appstore | |||
Checked for update of app "files_antivirus" in appstore | |||
Checking for update of app "files_pdfviewer" in appstore | |||
Checked for update of app "files_pdfviewer" in appstore | |||
Checking for update of app "files_rightclick" in appstore | |||
Checked for update of app "files_rightclick" in appstore | |||
Checking for update of app "files_sharing" in appstore | |||
Checked for update of app "files_sharing" in appstore | |||
Checking for update of app "files_texteditor" in appstore | |||
Checked for update of app "files_texteditor" in appstore | |||
Checking for update of app "files_trashbin" in appstore | |||
Checked for update of app "files_trashbin" in appstore | |||
Checking for update of app "files_versions" in appstore | |||
Checked for update of app "files_versions" in appstore | |||
Checking for update of app "files_videoplayer" in appstore | |||
Checked for update of app "files_videoplayer" in appstore | |||
Checking for update of app "firstrunwizard" in appstore | |||
Checked for update of app "firstrunwizard" in appstore | |||
Checking for update of app "forms" in appstore | |||
Checked for update of app "forms" in appstore | |||
Checking for update of app "impersonate" in appstore | |||
Checked for update of app "impersonate" in appstore | |||
Checking for update of app "logreader" in appstore | |||
Checked for update of app "logreader" in appstore | |||
Checking for update of app "lookup_server_connector" in appstore | |||
Checked for update of app "lookup_server_connector" in appstore | |||
Checking for update of app "news" in appstore | |||
Checked for update of app "news" in appstore | |||
Checking for update of app "nextcloud_announcements" in appstore | |||
Checked for update of app "nextcloud_announcements" in appstore | |||
Checking for update of app "notifications" in appstore | |||
Checked for update of app "notifications" in appstore | |||
Checking for update of app "oauth2" in appstore | |||
Checked for update of app "oauth2" in appstore | |||
Checking for update of app "ownpad" in appstore | |||
Checked for update of app "ownpad" in appstore | |||
Checking for update of app "password_policy" in appstore | |||
Checked for update of app "password_policy" in appstore | |||
Checking for update of app "photos" in appstore | |||
Checked for update of app "photos" in appstore | |||
Checking for update of app "polls" in appstore | |||
Update app "polls" from appstore | |||
Checked for update of app "polls" in appstore | |||
Checking for update of app "privacy" in appstore | |||
Checked for update of app "privacy" in appstore | |||
Checking for update of app "provisioning_api" in appstore | |||
Checked for update of app "provisioning_api" in appstore | |||
Checking for update of app "recommendations" in appstore | |||
Checked for update of app "recommendations" in appstore | |||
Checking for update of app "serverinfo" in appstore | |||
Checked for update of app "serverinfo" in appstore | |||
Checking for update of app "settings" in appstore | |||
Checked for update of app "settings" in appstore | |||
Checking for update of app "sharebymail" in appstore | |||
Checked for update of app "sharebymail" in appstore | |||
Checking for update of app "spreed" in appstore | |||
Update app "spreed" from appstore | |||
Repair step: Fix the namespace in database tables | |||
Repair step: Create help command | |||
Repair step: Invalidate access cache for projects conversation provider | |||
Repair info: Invalidation not required | |||
Checked for update of app "spreed" in appstore | |||
Checking for update of app "support" in appstore | |||
Checked for update of app "support" in appstore | |||
Checking for update of app "survey_client" in appstore | |||
Checked for update of app "survey_client" in appstore | |||
Checking for update of app "systemtags" in appstore | |||
Checked for update of app "systemtags" in appstore | |||
Checking for update of app "tasks" in appstore | |||
Update app "tasks" from appstore | |||
Checked for update of app "tasks" in appstore | |||
Checking for update of app "text" in appstore | |||
Checked for update of app "text" in appstore | |||
Checking for update of app "theming" in appstore | |||
Checked for update of app "theming" in appstore | |||
Checking for update of app "twofactor_backupcodes" in appstore | |||
Checked for update of app "twofactor_backupcodes" in appstore | |||
Checking for update of app "updatenotification" in appstore | |||
Checked for update of app "updatenotification" in appstore | |||
Checking for update of app "viewer" in appstore | |||
Checked for update of app "viewer" in appstore | |||
Checking for update of app "weather" in appstore | |||
Update app "weather" from appstore | |||
Checked for update of app "weather" in appstore | |||
Checking for update of app "workflowengine" in appstore | |||
Checked for update of app "workflowengine" in appstore | |||
Repair step: Repair MySQL collation | |||
Repair info: All tables already have the correct collation -> nothing to do | |||
Repair step: Repair mime types | |||
Repair step: Clean tags and favorites | |||
Repair info: 0 tags of deleted users have been removed. | |||
Repair info: 0 tags for delete files have been removed. | |||
Repair info: 0 tag entries for deleted tags have been removed. | |||
Repair info: 0 tags with no entries have been removed. | |||
Repair step: Repair invalid shares | |||
Repair step: Move .step file of updater to backup location | |||
Repair info: .step file exists | |||
Repair info: .step-previous-update removed | |||
Repair info: .step file moved to .step-previous-update | |||
Repair step: Fix potential broken mount points | |||
Repair info: No mounts updated | |||
Repair step: Add log rotate job | |||
Repair step: Clear frontend caches | |||
Repair info: Image cache cleared | |||
Repair info: SCSS cache cleared | |||
Repair info: JS cache cleared | |||
Repair step: Clear every generated avatar on major updates | |||
Repair step: Add preview background cleanup job | |||
Repair step: Queue a one-time job to cleanup old backups of the updater | |||
Repair step: Cleanup invalid photocache files for carddav | |||
Repair step: Add background job to cleanup login flow v2 tokens | |||
Repair step: Remove potentially over exposing share links | |||
Repair info: No need to remove link shares. | |||
Repair step: Clear access cache of projects | |||
Repair step: Reset generated avatar flag | |||
Starting code integrity check | |||
Finished code integrity check | |||
Turned off maintenance mode | |||
Reset log level | |||
</pre> | |||
!--> | |||
https:///index.php/settings/admin/overview | |||
<pre> | |||
Security & setup warnings | |||
It's important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information. | |||
There are some warnings regarding your setup. | |||
</pre> | |||
<pre></pre> | |||
<pre> | |||
Some columns in the database are missing a conversion to big int. Due to the fact that changing column types on big tables could take some time they were not changed automatically. By running 'occ db:convert-filecache-bigint' those pending changes could be applied manually. This operation needs to be made while the instance is offline. For further details read the documentation page about this. | |||
filecache_extended.fileid | |||
</pre> | |||
<pre></pre> | |||
: <code>su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:convert-filecache-bigint'</code> | |||
<pre> | |||
Following columns will be updated: | |||
* filecache_extended.fileid | |||
This can take up to hours, depending on the number of files in your instance! | |||
Continue with the conversion (y/n)? [n] y | |||
</pre> | |||
https:///index.php/settings/admin/overview | |||
<pre> | |||
Security & setup warnings | |||
It's important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information. | |||
There are some errors regarding your setup. | |||
Last background job execution ran 1 hour ago. Something seems wrong. Check the background job settings | |||
</pre> | |||
<pre></pre> | |||
https:///index.php/settings/admin#backgroundjobs | |||
<pre> | |||
Background jobs | |||
Some jobs didn’t execute since 5 months ago. Please consider switching to system cron. | |||
For optimal performance it's important to configure background jobs correctly. For bigger instances 'Cron' is the recommended setting. Please see the documentation for more information. | |||
Pick background job setting | |||
Execute one task with each page loaded | |||
cron.php is registered at a webcron service to call cron.php every 5 minutes over HTTP. | |||
Use system cron service to call the cron.php file every 5 minutes. The cron.php needs to be executed by the system user "www-data". | |||
</pre> | |||
<pre> | |||
[O] AJAX | |||
[ ] Webcron | |||
[ ] Cron | |||
</pre> | |||
<pre> | |||
[ ] AJAX | |||
[ ] Webcron | |||
[O] Cron | |||
</pre> | |||
https:///index.php/settings/admin/overview | |||
<pre></pre> | |||
<!-- | |||
<pre> | |||
</pre> | |||
!--> | |||
==== [[TurnKey]] 15 Konfiguration ==== | |||
[[#Konfiguration]] | |||
: <code>less /var/www/nextcloud/config/config.php</code> | |||
: <code>less /var/www/nextcloud/config/config.sample.php</code> | |||
==== [[TurnKey]] 15 Erweiterungen ==== | |||
===== [[TurnKey]] 15 Erweiterung OnlyOffice ===== | |||
works for me ootb (Nextcloud 18.0.4) | |||
== [[FreeBSD]] == | |||
== [[NixOS]] == | |||
; Rahmenbedingungen: | |||
:; Container: PVE (Version 7) | |||
:; Version NixOS: 21.11 (stable) | |||
:; Netzwerk: eingerichtet | |||
::* (leider nur IPv4 only) | |||
::* Eintrag für DNS für ''test.nextcloud.nix.stura-dresden.de'' | |||
; erst einmal nur notwendigste für Nextcloud einrichten: | |||
Das bedeutet bei NixOS | |||
:* die Verwendung vom Dienst web server mit der Anwendung nginx | |||
:* die Verwendung vom Dienst database mit der Anwendung SQLite | |||
. | |||
Erstellen einer Datei (an beliebigen Ort und mit beliebigen Namen) für ein beliebiges Passwort | |||
: <code>$EDITOR /tmp/nixos_configuration.nix_services.nextcloud.adminpassFile</code> | |||
<pre> | |||
password4nextcloud | |||
</pre> | |||
: <code>$EDITOR /etc/nixos/configuration.nix</code> | |||
<pre> | |||
{ config, pkgs, ... }: | |||
{ | |||
imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ]; | |||
</pre> | |||
<pre></pre> | |||
<pre> | |||
networking.firewall.allowedTCPPorts = [ 80 ]; | |||
services.nextcloud.enable = true; | |||
## services.nginx.enable = true; | |||
services.nextcloud.hostName = "test.nextcloud.nix.stura-dresden.de"; | |||
## services.nextcloud.config.dbtype = "sqlite"; | |||
## services.nextcloud.config.adminuser = "root"; | |||
services.nextcloud.config.adminpassFile = "/tmp/nixos_configuration.nix_services.nextcloud.adminpassFile"; | |||
</pre> | |||
<pre></pre> | |||
<pre> | |||
} | |||
</pre> | |||
; Verschlüsslung für http dazu hinzufügen: | |||
: <code>$EDITOR /etc/nixos/configuration.nix</code> | |||
<pre> | |||
{ config, pkgs, ... }: | |||
{ | |||
imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ]; | |||
</pre> | |||
<pre></pre> | |||
<pre> | |||
# networking.firewall.allowedTCPPorts = [ 80 ]; | |||
networking.firewall.allowedTCPPorts = [ 80 443 ]; | |||
services.nginx.virtualHosts."test.nextcloud.nix.stura-dresden.de".enableACME = true; | |||
security.acme.email = "cert@stura.htw-dresden.de"; | |||
security.acme.acceptTerms = true; | |||
services.nginx.virtualHosts."test.nextcloud.nix.stura-dresden.de".forceSSL = true; | |||
services.nextcloud.https = true; | |||
</pre> | |||
<pre></pre> | |||
<pre> | |||
} | |||
</pre> | |||
; Umstellung beim Dienst database zur Anwendung PostgreSQL: | |||
: <code>$EDITOR /etc/nixos/configuration.nix</code> | |||
<pre> | |||
{ config, pkgs, ... }: | |||
{ | |||
imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ]; | |||
</pre> | |||
<pre></pre> | |||
<pre> | |||
services.postgresql.enable = true; | |||
services.postgresql.ensureDatabases = [ "database4nextcloud" ]; | |||
services.postgresql.ensureUsers = [ | |||
{ | |||
name = "nextcloud"; | |||
ensurePermissions."DATABASE database4nextcloud" = "ALL PRIVILEGES"; | |||
} | |||
]; | |||
systemd.services."nextcloud-setup".requires = ["postgresql.service"]; | |||
systemd.services."nextcloud-setup".after = ["postgresql.service"]; | |||
services.nextcloud.config.dbtype = "pgsql"; | |||
services.nextcloud.config.dbname = "database4nextcloud"; | |||
services.nextcloud.config.dbhost = "/run/postgresql"; | |||
services.nextcloud.config.dbuser = "database4nextcloud"; | |||
</pre> | |||
<pre></pre> | |||
<pre> | |||
} | |||
</pre> | |||
; Festlegen einer (vom Standard, nämlich einer Version vor der neusten Version) bestimmten Version der Anwendung Nextcloud: | |||
: <code>$EDITOR /etc/nixos/configuration.nix</code> | |||
<pre> | |||
{ config, pkgs, ... }: | |||
{ | |||
imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ]; | |||
</pre> | |||
<pre></pre> | |||
<pre> | |||
services.nextcloud.package = pkgs.nextcloud23; | |||
</pre> | |||
<pre></pre> | |||
<pre> | |||
} | |||
</pre> | |||
:; Siehe auch: https://pro.stura.htw-dresden.de/issues/1160 | |||
==== Hinweise zu [[NixOS]] ==== | |||
; Benutzen vom Befehl ''occ'': | |||
: <s><code>php occ</code></s> | |||
: <code>which nextcloud-occ</code> | |||
<pre> | |||
/run/current-system/sw/bin/nextcloud-occ | |||
</pre> | |||
: <code>ls -l $(which nextcloud-occ)</code> | |||
: <code>nextcloud-occ</code> | |||
: <code>nextcloud-occ -h</code> | |||
: <code>nextcloud-occ status</code> | |||
<pre> | |||
- installed: true | |||
- version: 23.0.0.10 | |||
- versionstring: 23.0.0 | |||
</pre> | |||
<pre></pre> | |||
; brutales schnelles Löschen von Daten von Anwendungen (, etwa bei Fehlermeldungen bei der Installation): | |||
: <code>systemctl stop nginx.service && systemctl stop phpfpm-nextcloud.service && rm -rf /var/lib/nextcloud/</code> | |||
: <code>systemctl stop postgresql.service && rm -rf /var/lib/postgresql/</code> | |||
; anschauen von verwendeten (und wohl anpassbaren) Dateien für die Konfiguration der Anwendung Nextcloud: | |||
: <code>less /var/lib/nextcloud/config/override.config.php</code> | |||
: <code>less /var/lib/nextcloud/config/config.php</code> | |||
== Aktualisierung == | |||
=== Durchführung Aktualisierung === | |||
: <code>su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'</code> | |||
=== Fehler durch die Aktualisierung === | |||
---- | |||
https://nextcloud.stura.htw-dresden.de/index.php/settings/admin/overview | |||
: Abschnitt ''Security & setup warnings'' | |||
---- | |||
https://nextcloud.stura.htw-dresden.de/index.php/settings/admin/logging | |||
: Anzeige Level ''Fatal'' | |||
: Anzeige Level ''Error'' | |||
== Konfiguration == | |||
* https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/ | |||
* https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html | * https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html | ||
=== Konfiguration Antivirus scanner === | |||
* https:///index.php/settings/apps/installed/files_antivirus | |||
* https:///index.php/settings/admin/security | |||
* https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/antivirus_configuration.html | |||
* https://github.com/nextcloud/files_antivirus | |||
Früher war das Untersuchen auf Viren nur eine Erweiterung. https://apps.nextcloud.com/apps/files_antivirus | |||
[[{{PAGENAME}}]] nutzt [[wikipedia:de:ClamAV]]. Standardmäßig ist ClamAV aber oft gar nicht installiert. | |||
== Erweiterungen == | |||
== Apps == | |||
== Siehe auch == | == Siehe auch == |
Aktuelle Version vom 23. März 2022, 05:07 Uhr
TurnKey[Bearbeiten]
TurnKey 16[Bearbeiten]
https://releases.turnkeylinux.org/turnkey-nextcloud/16.0-buster-amd64/
TurnKey 16 Installation[Bearbeiten]
TurnKey 15[Bearbeiten]
TurnKey 15 Installation[Bearbeiten]
https://releases.turnkeylinux.org/turnkey-nextcloud/15.2-stretch-amd64/
TurnKey 15 Installation Vorbereitung[Bearbeiten]
TurnKey 15 Installation Durchführung[Bearbeiten]
TurnKey 15 Installation Antivirus scanner[Bearbeiten]
Für die standardmäßige #Konfiguration Antivirus scanner erwartet Server/Nextcloud die Datei clamscan
(an der Stelle /usr/bin/clamscan
) als Programm für den Mode
ClamAV Executable
. Die Datei gibt es aber nicht, da ClamAV nicht installiert ist.
Installieren vom Paket clamav
apt install -y clamav
Anzeigen des Ablageortes eines Kommandos
which clamav
/usr/bin/clamscan
"Es heißt immer", dass darüber hinaus der Dienst für ClamAV noch installiert und laufen soll. :-/
Installieren vom Paket clamav-daemon
apt install -y clamav-daemon
Starten vom Dienst clamav-daemon
systemctl start clamav-daemon.service
Anzeigen vom Stand vom Dienst clamav-daemon
systemctl status clamav-daemon.service
Scheint nicht zu funktionieren!
standardmäßiges Ausschalten vom Dienst clamav-daemon
systemctl disable clamav-daemon.service
TurnKey 15 Installation Nachbereitung[Bearbeiten]
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'
Nextcloud is already latest version
https://nextcloud.stura.htw-dresden.de/updater/
Initializing Current version is 16.0.1. Update to Nextcloud 16.0.10 available. (channel: "stable") Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-16.0.10.zip Open changelog ↗ Check for expected files
Check for write permissions The following places can not be written to: /var/www/nextcloud/updater/../console.php /var/www/nextcloud/updater/../occ /var/www/nextcloud/updater/../robots.txt /var/www/nextcloud/updater/../remote.php /var/www/nextcloud/updater/../version.php /var/www/nextcloud/updater/../status.php /var/www/nextcloud/updater/../.user.ini /var/www/nextcloud/updater/../.htaccess /var/www/nextcloud/updater/../index.php /var/www/nextcloud/updater/../public.php /var/www/nextcloud/updater/../COPYING /var/www/nextcloud/updater/../index.html /var/www/nextcloud/updater/../AUTHORS /var/www/nextcloud/updater/../cron.php
ls -al /var/www/nextcloud
total 164 drwxr-sr-x 15 root root 4096 Jun 7 2019 . drwxr-xr-x 4 root root 4096 May 4 05:13 .. -rw-r--r-- 1 root root 2478 Jun 7 2019 .htaccess -rw-r--r-- 1 root root 101 May 15 2019 .user.ini drwxr-sr-x 32 root root 4096 May 15 2019 3rdparty -rw-r--r-- 1 root root 12063 May 15 2019 AUTHORS -rw-r--r-- 1 root root 34520 May 15 2019 COPYING drwxr-sr-x 42 www-data www-data 4096 May 15 2019 apps drwxr-sr-x 2 www-data www-data 4096 May 4 05:12 config -rw-r--r-- 1 root root 3805 May 15 2019 console.php drwxr-sr-x 23 root root 4096 May 15 2019 core -rw-r--r-- 1 root root 4986 May 15 2019 cron.php drwxrwx--- 6 www-data www-data 4096 May 4 05:59 data -rw-r--r-- 1 root root 156 May 15 2019 index.html -rw-r--r-- 1 root root 3172 May 15 2019 index.php drwxr-sr-x 6 root root 4096 May 15 2019 lib -rw-r--r-- 1 root root 283 May 15 2019 occ drwxr-sr-x 2 root root 4096 May 15 2019 ocm-provider drwxr-sr-x 2 root root 4096 May 15 2019 ocs drwxr-sr-x 2 root root 4096 May 15 2019 ocs-provider -rw-r--r-- 1 root root 2951 May 15 2019 public.php -rw-r--r-- 1 root root 5139 May 15 2019 remote.php drwxr-sr-x 4 root root 4096 May 15 2019 resources -rw-r--r-- 1 root root 26 May 15 2019 robots.txt drwxr-sr-x 12 root root 4096 May 15 2019 settings -rw-r--r-- 1 root root 2232 May 15 2019 status.php drwxr-sr-x 3 root root 4096 May 15 2019 themes drwxr-sr-x 2 root root 4096 May 15 2019 updater -rw-r--r-- 1 root root 362 May 15 2019 version.php
ls -al /var/www/nextcloud/updater/
total 660 drwxr-sr-x 2 root root 4096 May 15 2019 . drwxr-sr-x 15 root root 4096 Jun 7 2019 .. -rw-r--r-- 1 root root 63216 May 15 2019 index.php -rw-r--r-- 1 root root 599747 May 15 2019 updater.phar
chown -R www-data:www-data /var/www/nextcloud
TurnKey Aktualisierung[Bearbeiten]
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:convert-filecache-bigint'
Following columns will be updated: * mounts.storage_id * mounts.root_id * mounts.mount_id This can take up to hours, depending on the number of files in your instance!
Continue with the conversion (y/n)? [n] y
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:convert-filecache-bigint'
All tables already up to date!
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'
Nextcloud or one of the apps require upgrade - only a limited number of commands are available You may use your browser or the occ upgrade command to do the upgrade Set log level to debug Updating database schema Updated database Checking for update of app accessibility in appstore Checked for update of app "accessibility" in appstore Checking for update of app activity in appstore Checked for update of app "activity" in appstore Checking for update of app cloud_federation_api in appstore Checked for update of app "cloud_federation_api" in appstore Checking for update of app comments in appstore Checked for update of app "comments" in appstore Checking for update of app dav in appstore Checked for update of app "dav" in appstore Checking for update of app federatedfilesharing in appstore Checked for update of app "federatedfilesharing" in appstore Checking for update of app federation in appstore Checked for update of app "federation" in appstore Checking for update of app files in appstore Checked for update of app "files" in appstore Checking for update of app files_pdfviewer in appstore Checked for update of app "files_pdfviewer" in appstore Checking for update of app files_rightclick in appstore Checked for update of app "files_rightclick" in appstore Checking for update of app files_sharing in appstore Checked for update of app "files_sharing" in appstore Checking for update of app files_texteditor in appstore Checked for update of app "files_texteditor" in appstore Checking for update of app files_trashbin in appstore Checked for update of app "files_trashbin" in appstore Checking for update of app files_versions in appstore Checked for update of app "files_versions" in appstore Checking for update of app files_videoplayer in appstore Checked for update of app "files_videoplayer" in appstore Checking for update of app firstrunwizard in appstore Checked for update of app "firstrunwizard" in appstore Checking for update of app logreader in appstore Checked for update of app "logreader" in appstore Checking for update of app lookup_server_connector in appstore Checked for update of app "lookup_server_connector" in appstore Checking for update of app metadata in appstore Checked for update of app "metadata" in appstore Checking for update of app nextbackup in appstore Checked for update of app "nextbackup" in appstore Checking for update of app nextcloud_announcements in appstore Checked for update of app "nextcloud_announcements" in appstore Checking for update of app notifications in appstore Checked for update of app "notifications" in appstore Checking for update of app oauth2 in appstore Checked for update of app "oauth2" in appstore Checking for update of app password_policy in appstore Checked for update of app "password_policy" in appstore Checking for update of app privacy in appstore Checked for update of app "privacy" in appstore Checking for update of app provisioning_api in appstore Checked for update of app "provisioning_api" in appstore Checking for update of app recommendations in appstore Checked for update of app "recommendations" in appstore Checking for update of app richdocuments in appstore Checked for update of app "richdocuments" in appstore Checking for update of app serverinfo in appstore Checked for update of app "serverinfo" in appstore Checking for update of app settings in appstore Checked for update of app "settings" in appstore Checking for update of app sharebymail in appstore Checked for update of app "sharebymail" in appstore Checking for update of app support in appstore Checked for update of app "support" in appstore Checking for update of app survey_client in appstore Checked for update of app "survey_client" in appstore Checking for update of app systemtags in appstore Checked for update of app "systemtags" in appstore Checking for update of app text in appstore Checked for update of app "text" in appstore Checking for update of app theming in appstore Checked for update of app "theming" in appstore Checking for update of app twofactor_backupcodes in appstore Checked for update of app "twofactor_backupcodes" in appstore Checking for update of app updatenotification in appstore Checked for update of app "updatenotification" in appstore Checking for update of app viewer in appstore Checked for update of app "viewer" in appstore Checking for update of app workflowengine in appstore Checked for update of app "workflowengine" in appstore Starting code integrity check... Finished code integrity check Update successful Maintenance mode is kept active Reset log level
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ maintenance:mode --off'
Maintenance mode disabled
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ maintenance:mode --off'
Maintenance mode already disabled
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:add-missing-indices'
Check indices of the share table. Check indices of the filecache table. Check indices of the twofactor_providers table. Check indices of the login_flow_v2 table. Check indices of the whats_new table. Check indices of the cards table. Check indices of the cards_properties table. Check indices of the calendarobjects_props table. Adding calendarobject_calid_index index to the calendarobjects_props table, this can take some time... calendarobjects_props table updated successfully. Check indices of the schedulingobjects table. Adding schedulobj_principuri_index index to the schedulingobjects table, this can take some time... schedulingobjects table updated successfully.
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ --version'
Nextcloud 18.0.4
Updater Initializing Current version is 18.0.4. Update to Nextcloud 18.0.7 available. (channel: "stable") Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-18.0.7.zip Open changelog ↗ Check for expected files Check for write permissions Create backup Downloading Verifying integrity Extracting Enable maintenance mode Replace entry points Delete old files Move new files in place Keep maintenance mode active? Maintenance mode will get disabled. Done Go back to your Nextcloud instance to finish the update
Nextcloud Update to 18.0.7
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ --version'
Nextcloud 18.0.7
https:///index.php/settings/admin/overview#
Version Nextcloud 18.0.7 A new version is available: Nextcloud 18.0.10 All apps have an update for this version available Apps with available updates Open updater Download now Update channel: Stable
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'
Nextcloud is already latest version
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ --version'
Nextcloud 18.0.7
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ update:check'
Nextcloud 18.0.10 is available. Get more information on how to update at https://docs.nextcloud.com/server/18/admin_manual/maintenance/upgrade.html. Update for appointments to version 1.7.7 is available. Update for calendar to version 2.0.4 is available. Update for contacts to version 3.4.0 is available. Update for deck to version 1.1.0 is available. Update for documentserver_community to version 0.1.8 is available. Update for files_antivirus to version 3.0.0 is available. Update for files_texteditor to version 2.14.0 is available. Update for forms to version 2.0.4 is available. Update for news to version 14.2.2 is available. Update for ownpad to version 0.6.15 is available. Update for polls to version 1.5.4 is available. Update for spreed to version 8.0.11 is available. 13 updates available
Aktualisierung per GUI
Initializing Current version is 18.0.7. Update to Nextcloud 18.0.10 available. (channel: "stable") Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-18.0.10.zip Open changelog ↗ Check for expected files Check for write permissions Create backup Downloading Verifying integrity Extracting Enable maintenance mode Replace entry points Delete old files Move new files in place Keep maintenance mode active? Done
Start update
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'
0/0 [----->----------------------] 0%
Security & setup warnings It's important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information. There are some warnings regarding your setup. You are currently running PHP 7.2.32-1+0~20200710.46+debian9~1.gbp625eb5. Upgrade your PHP version to take advantage of performance and security updates provided by the PHP Group as soon as your distribution supports it. Nextcloud 20 is the last release supporting PHP 7.2. Nextcloud 21 requires at least PHP 7.3. The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running "occ db:add-missing-indices" those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster. Missing index "properties_path_index" in table "oc_properties". The database is missing some optional columns. Due to the fact that adding columns on big tables could take some time they were not added automatically when they can be optional. By running "occ db:add-missing-columns" those missing columns could be added manually while the instance keeps running. Once the columns are added some features might improve responsiveness or usability. Missing optional column "reference_id" in table "oc_comments". This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them. bcmath Please double check the installation guides ↗, and check for any errors or warnings in the log. Check the security of your Nextcloud over our security scan ↗.
apt update && apt -y upgrade
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:add-missing-indices'
Check indices of the share table. Check indices of the filecache table. Check indices of the twofactor_providers table. Check indices of the login_flow_v2 table. Check indices of the whats_new table. Check indices of the cards table. Check indices of the cards_properties table. Check indices of the calendarobjects_props table. Check indices of the schedulingobjects table. Check indices of the oc_properties table. Adding properties_path_index index to the oc_properties table, this can take some time... oc_properties table updated successfully.
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:add-missing-columns'
Check columns of the comments table. Adding additional reference_id column to the comments table, this can take some time... Comments table updated successfully.
apt -y install php7.2-bcmath
reboot
apt list --manual-installed | grep php
libapache2-mod-php7.2/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php-igbinary/unknown,now 3.1.5+2.0.8-1+0~20200917.17+debian9~1.gbp75a732 amd64 [installed] php-imagick/unknown,now 3.4.4-4+0~20200804.15+debian9~1.gbp2925ae amd64 [installed] php-pear/unknown,now 1:1.10.9+submodules+notgz-1+0~20191119.13+debian9~1.gbp296d25 all [installed] php-redis/unknown,now 5.3.1+4.3.0-1+0~20200708.25+debian9~1.gbp800f71 amd64 [installed] php7.2-bcmath/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-cli/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-curl/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-gd/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-gmp/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-imap/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-intl/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-json/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-ldap/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-mbstring/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-mysql/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-xml/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] php7.2-zip/unknown,now 7.2.33-1+0~20201008.48+debian9~1.gbpcb3068 amd64 [installed] webmin-phpini/stretch,now 1.881-turnkey+0 all [installed]
php -m
[PHP Modules] bcmath calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext gmp hash iconv igbinary imagick imap intl json ldap libxml mbstring mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql Phar posix readline redis Reflection session shmop SimpleXML sockets sodium SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache
apt install php7.3-cli
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: php7.3-cli : Depends: libpcre2-8-0 (>= 10.32) but 10.22-3 is to be installed E: Unable to correct problems, you have held broken packages.
apt show -a pcre2-utils
Package: pcre2-utils Version: 10.34-7+0~20191219.5+debian9~1.gbp555bb9 Priority: optional Section: utils Source: pcre2 Maintainer: Matthew Vernon <matthew@debian.org> Installed-Size: 280 kB Depends: libc6 (>= 2.14), libpcre2-16-0 (>= 10.34), libpcre2-32-0 (>= 10.34), libpcre2-8-0 (>= 10.34), libpcre2-posix2 (>= 10.34) Homepage: https://pcre.org/ Download-Size: 149 kB APT-Sources: https://packages.sury.org/php stretch/main amd64 Packages Description: New Perl Compatible Regular Expression Library - utilities This is PCRE2, the new implementation of PCRE, a library of functions to support regular expressions whose syntax and semantics are as close as possible to those of the Perl 5 language. New projects should use this library in preference to the older library, confusingly called pcre3 in Debian. . This package contains the utilities pcre2grep (like grep with PCRE) and pcre2test (a test program for the library, but also useful for experimenting with regular expressions). Both programs are also useful examples of programming with libpcre2. Package: pcre2-utils Version: 10.22-3 Priority: optional Section: utils Source: pcre2 Maintainer: Matthew Vernon <matthew@debian.org> Installed-Size: 228 kB Depends: libc6 (>= 2.14), libpcre2-16-0, libpcre2-32-0, libpcre2-8-0, libpcre2-posix0 Download-Size: 111 kB APT-Sources: http://deb.debian.org/debian stretch/main amd64 Packages Description: New Perl Compatible Regular Expression Library - utilities This is PCRE2, the new implementation of PCRE, a library of functions to support regular expressions whose syntax and semantics are as close as possible to those of the Perl 5 language. New projects should use this library in preference to the older library, confusingly called pcre3 in Debian. . This package contains the utilities pcre2grep (like grep with PCRE) and pcre2test (a test program for the library, but also useful for experimenting with regular expressions). Both programs are also useful examples of programming with libpcre2.
- 2020-12-09
- (Proxmox CT) snapshot
apt update && apt -y upgrade
https:///index.php/settings/admin/overview#
Version Nextcloud 19.0.4 A new version is available: Nextcloud 19.0.5 All apps have an update for this version available Apps with available updates Open updater Download now Update channel: Stable
Open updater
Initializing Current version is 19.0.4. Update to Nextcloud 19.0.5 available. (channel: "stable") Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-19.0.5.zip Open changelog ↗ Check for expected files Check for write permissions Create backup Downloading Verifying integrity Extracting Enable maintenance mode Replace entry points Delete old files Move new files in place Keep maintenance mode active? Done
Start update
Initializing Current version is 19.0.4. Update to Nextcloud 19.0.5 available. (channel: "stable") Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-19.0.5.zip Open changelog ↗ Check for expected files Check for write permissions Create backup Downloading Verifying integrity Extracting Enable maintenance mode Replace entry points Delete old files Move new files in place Keep maintenance mode active?
No (for usage of the web based updater)
Initializing Current version is 19.0.4. Update to Nextcloud 19.0.5 available. (channel: "stable") Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-19.0.5.zip Open changelog ↗ Check for expected files Check for write permissions Create backup Downloading Verifying integrity Extracting Enable maintenance mode Replace entry points Delete old files Move new files in place Keep maintenance mode active? Maintenance mode will get disabled. Done
Go back to your Nextcloud instance to finish the update
Nextcloud will be updated to version 19.0.5 Please make sure that the database, the config folder and the data folder have been backed up before proceeding. To avoid timeouts with larger installations, you can instead run the following command from your installation directory: ./occ upgrade
Start update
Nextcloud Update to 19.0.5 The update was successful. Redirecting you to Nextcloud in 0 seconds. Detailed logs
https:///index.php/settings/admin/overview
Security & setup warnings It's important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information. There are some warnings regarding your setup.
Some columns in the database are missing a conversion to big int. Due to the fact that changing column types on big tables could take some time they were not changed automatically. By running 'occ db:convert-filecache-bigint' those pending changes could be applied manually. This operation needs to be made while the instance is offline. For further details read the documentation page about this. filecache_extended.fileid
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ db:convert-filecache-bigint'
Following columns will be updated: * filecache_extended.fileid This can take up to hours, depending on the number of files in your instance! Continue with the conversion (y/n)? [n] y
https:///index.php/settings/admin/overview
Security & setup warnings It's important for the security and performance of your instance that everything is configured correctly. To help you with that we are doing some automatic checks. Please see the linked documentation for more information. There are some errors regarding your setup. Last background job execution ran 1 hour ago. Something seems wrong. Check the background job settings
https:///index.php/settings/admin#backgroundjobs
Background jobs Some jobs didn’t execute since 5 months ago. Please consider switching to system cron. For optimal performance it's important to configure background jobs correctly. For bigger instances 'Cron' is the recommended setting. Please see the documentation for more information. Pick background job setting Execute one task with each page loaded cron.php is registered at a webcron service to call cron.php every 5 minutes over HTTP. Use system cron service to call the cron.php file every 5 minutes. The cron.php needs to be executed by the system user "www-data".
[O] AJAX [ ] Webcron [ ] Cron
[ ] AJAX [ ] Webcron [O] Cron
https:///index.php/settings/admin/overview
TurnKey 15 Konfiguration[Bearbeiten]
less /var/www/nextcloud/config/config.php
less /var/www/nextcloud/config/config.sample.php
TurnKey 15 Erweiterungen[Bearbeiten]
TurnKey 15 Erweiterung OnlyOffice[Bearbeiten]
works for me ootb (Nextcloud 18.0.4)
FreeBSD[Bearbeiten]
NixOS[Bearbeiten]
- Rahmenbedingungen
-
- Container
- PVE (Version 7)
- Version NixOS
- 21.11 (stable)
- Netzwerk
- eingerichtet
- (leider nur IPv4 only)
- Eintrag für DNS für test.nextcloud.nix.stura-dresden.de
- erst einmal nur notwendigste für Nextcloud einrichten
Das bedeutet bei NixOS
- die Verwendung vom Dienst web server mit der Anwendung nginx
- die Verwendung vom Dienst database mit der Anwendung SQLite
.
Erstellen einer Datei (an beliebigen Ort und mit beliebigen Namen) für ein beliebiges Passwort
$EDITOR /tmp/nixos_configuration.nix_services.nextcloud.adminpassFile
password4nextcloud
$EDITOR /etc/nixos/configuration.nix
{ config, pkgs, ... }: { imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ];
networking.firewall.allowedTCPPorts = [ 80 ]; services.nextcloud.enable = true; ## services.nginx.enable = true; services.nextcloud.hostName = "test.nextcloud.nix.stura-dresden.de"; ## services.nextcloud.config.dbtype = "sqlite"; ## services.nextcloud.config.adminuser = "root"; services.nextcloud.config.adminpassFile = "/tmp/nixos_configuration.nix_services.nextcloud.adminpassFile";
}
- Verschlüsslung für http dazu hinzufügen
$EDITOR /etc/nixos/configuration.nix
{ config, pkgs, ... }: { imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ];
# networking.firewall.allowedTCPPorts = [ 80 ]; networking.firewall.allowedTCPPorts = [ 80 443 ]; services.nginx.virtualHosts."test.nextcloud.nix.stura-dresden.de".enableACME = true; security.acme.email = "cert@stura.htw-dresden.de"; security.acme.acceptTerms = true; services.nginx.virtualHosts."test.nextcloud.nix.stura-dresden.de".forceSSL = true; services.nextcloud.https = true;
}
- Umstellung beim Dienst database zur Anwendung PostgreSQL
$EDITOR /etc/nixos/configuration.nix
{ config, pkgs, ... }: { imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ];
services.postgresql.enable = true; services.postgresql.ensureDatabases = [ "database4nextcloud" ]; services.postgresql.ensureUsers = [ { name = "nextcloud"; ensurePermissions."DATABASE database4nextcloud" = "ALL PRIVILEGES"; } ]; systemd.services."nextcloud-setup".requires = ["postgresql.service"]; systemd.services."nextcloud-setup".after = ["postgresql.service"]; services.nextcloud.config.dbtype = "pgsql"; services.nextcloud.config.dbname = "database4nextcloud"; services.nextcloud.config.dbhost = "/run/postgresql"; services.nextcloud.config.dbuser = "database4nextcloud";
}
- Festlegen einer (vom Standard, nämlich einer Version vor der neusten Version) bestimmten Version der Anwendung Nextcloud
$EDITOR /etc/nixos/configuration.nix
{ config, pkgs, ... }: { imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ];
services.nextcloud.package = pkgs.nextcloud23;
}
- Siehe auch
- https://pro.stura.htw-dresden.de/issues/1160
Hinweise zu NixOS[Bearbeiten]
- Benutzen vom Befehl occ
php occ
which nextcloud-occ
/run/current-system/sw/bin/nextcloud-occ
ls -l $(which nextcloud-occ)
nextcloud-occ
nextcloud-occ -h
nextcloud-occ status
- installed: true - version: 23.0.0.10 - versionstring: 23.0.0
- brutales schnelles Löschen von Daten von Anwendungen (, etwa bei Fehlermeldungen bei der Installation)
systemctl stop nginx.service && systemctl stop phpfpm-nextcloud.service && rm -rf /var/lib/nextcloud/
systemctl stop postgresql.service && rm -rf /var/lib/postgresql/
- anschauen von verwendeten (und wohl anpassbaren) Dateien für die Konfiguration der Anwendung Nextcloud
less /var/lib/nextcloud/config/override.config.php
less /var/lib/nextcloud/config/config.php
Aktualisierung[Bearbeiten]
Durchführung Aktualisierung[Bearbeiten]
su - -s /bin/bash www-data -c 'php /var/www/nextcloud/occ upgrade'
Fehler durch die Aktualisierung[Bearbeiten]
https://nextcloud.stura.htw-dresden.de/index.php/settings/admin/overview
- Abschnitt Security & setup warnings
https://nextcloud.stura.htw-dresden.de/index.php/settings/admin/logging
- Anzeige Level Fatal
- Anzeige Level Error
Konfiguration[Bearbeiten]
- https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/
- https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html
Konfiguration Antivirus scanner[Bearbeiten]
- https:///index.php/settings/apps/installed/files_antivirus
- https:///index.php/settings/admin/security
- https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/antivirus_configuration.html
- https://github.com/nextcloud/files_antivirus
Früher war das Untersuchen auf Viren nur eine Erweiterung. https://apps.nextcloud.com/apps/files_antivirus
Server/Nextcloud nutzt wikipedia:de:ClamAV. Standardmäßig ist ClamAV aber oft gar nicht installiert.