{"id":9817,"date":"2018-03-25T14:32:28","date_gmt":"2018-03-25T12:32:28","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=9817"},"modified":"2018-08-17T17:30:37","modified_gmt":"2018-08-17T15:30:37","slug":"eine-eigene-nextcloud-release-13-installation-auf-dem-raspberry-pi-macht-dropbox-ueberfluessig","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=9817","title":{"rendered":"Eine eigene Nextcloud Release 13 Installation auf dem Raspberry Pi macht Dropbox \u00fcberfl\u00fcssig!"},"content":{"rendered":"<p>Eine eigene <a href=\"https:\/\/de.wikipedia.org\/wiki\/Nextcloud\" rel=\"noopener\" target=\"_blank\">Nextcloud<\/a> Release 13 Installation auf dem Raspberry Pi macht Dropbox \u00fcberfl\u00fcssig! Und man kann sensible private Daten auf dem eigenen Server abspeichern. Nextcloud ist unter einer freien AGPLv3 Lizenz zu erhalten. Um erste Eindr\u00fccke zu erhalten, kann es mal eben auf einem Raspberry Pi (Zero W) installiert werden. <\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Zeitumstellung-ziehen.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Zeitumstellung-ziehen.png\" alt=\"\" width=\"2732\" height=\"2048\" class=\"aligncenter size-full wp-image-9808\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Zeitumstellung-ziehen.png 2732w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Zeitumstellung-ziehen-300x225.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Zeitumstellung-ziehen-768x576.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Zeitumstellung-ziehen-1024x768.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Das geht in <strong>unter einer Stunde<\/strong>. Also dann mal die Konsole auf und einen Apache2 mit Nextcloud 13 installieren:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Nextcloud.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Nextcloud.png\" alt=\"\" width=\"4230\" height=\"3102\" class=\"aligncenter size-full wp-image-9825\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Nextcloud.png 4230w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Nextcloud-300x220.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Nextcloud-768x563.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Nextcloud-1024x751.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><br \/>\n<!--more--><\/p>\n<pre class=\"lang:default decode:true \" >\r\nsudo apt-get update\r\nsudo apt-get upgrade\r\nsudo apt-get install apache2 php7.0 php7.0-gd sqlite php7.0-sqlite php7.0-curl php-mbstring php-dom php-zip php-xmlwriter\r\nsudo service apache2 restart \r\n# nun ist es wichtig in das Apache Verzeichnis zu wechseln\r\ncd \/var\/www\/html\r\n# die Nextcloud Software holen und entpacken\r\ncurl https:\/\/download.nextcloud.com\/server\/releases\/nextcloud-13.0.1.tar.bz2 | sudo tar -jxv\r\ncd \/var\/www\/html\/nextcloud\r\n\r\n# Verzeichnis erstellen und Rechte setzen\r\nsudo mkdir -p \/var\/www\/html\/nextcloud\/data\r\nsudo chown www-data:www-data \/var\/www\/html\/nextcloud\/data\r\nsudo chmod 750 \/var\/www\/html\/nextcloud\/data\r\nsudo chown www-data:www-data config apps\r\nsudo service apache2 restart\r\n\r\n# Schon ist die Nextcloud \u00fcber einen Web-Browser erreichbar.\r\nhttps:\/\/[IP-ADRESSE-PI]\/nextcloud\r\n<\/pre>\n<p>Hier nun den Admin-User und das Passwort eingeben:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.42.34.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.42.34.png\" alt=\"\" width=\"1081\" height=\"1029\" class=\"aligncenter size-full wp-image-9818\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.42.34.png 1081w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.42.34-300x286.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.42.34-768x731.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.42.34-1024x975.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Username: Thomas-Wenzlaff<br \/>\nPasswort: DAS-PASSWORT<\/p>\n<p>Nach 5 Minuten erscheint  der erste Dialog, es l\u00e4uft!<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.10.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.10.png\" alt=\"\" width=\"1710\" height=\"1047\" class=\"aligncenter size-full wp-image-9819\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.10.png 1710w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.10-300x184.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.10-768x470.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.10-1024x627.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Oben rechts erst einmal das Fenster schlie\u00dfen.<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.32.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.32.png\" alt=\"\" width=\"1723\" height=\"1046\" class=\"aligncenter size-full wp-image-9820\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.32.png 1723w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.32-300x182.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.32-768x466.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/03\/Bildschirmfoto-2018-03-25-um-11.49.32-1024x622.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Ok, jetzt ist alle da und es kann die eigene Cloud bewundert werden.<\/p>\n<p><strong>Optional<\/strong>: Nun machen wir es noch etwas sichererer, zuerst das Datenverzeichnis aus dem Apache Verzeichnis in ein eigenes Verzeichnis verschieben<\/p>\n<pre class=\"lang:default decode:true \" >\r\nsudo mkdir -p \/var\/nextcloud\r\nsudo mv -v \/var\/www\/html\/nextcloud\/data \/var\/nextcloud\/data\r\ncd \/var\/www\/html\/nextcloud\/config\r\n# Backup der config.php anlegen\r\nsudo cp -p config.php config.php.bk\r\n# im Editor bearbeiten\r\nsudo vi config.php\r\n# \u00e4ndern von\r\n# 'datadirectory' =&amp;gt; '\/var\/www\/html\/nextcloud\/data', \r\n#  nach 'datadirectory' =&amp;gt; '\/var\/nextcloud\/data',\r\n<\/pre>\n<p>Nun machen wir einen Browser refresh und alles ist beim Alten <\/p>\n<p><strong>Optional<\/strong>: Das PHP upload Limit von 2 Mb anheben<br \/>\nzuerst eine Sicherheitskopie anlegen<\/p>\n<pre class=\"lang:default decode:true \" >\r\n\r\nsudo \/etc\/php\/7.0\/apache2\/php.ini \/etc\/php\/7.0\/apache2\/php.ini.orginal\r\n# \u00f6ffnen und die folgenden Zeilen ersetzen auf 1024 Setzen\r\n# post_max_size = 1024M\r\n# upload_max_filesize = 1024M\r\n\r\nsudo vi \/etc\/php\/7.0\/apache2\/php.ini\r\n# Restart des Servers\r\nsudo service apache2 restart\r\n<\/pre>\n<p><strong>Optional<\/strong>: Nun das \u00fcberschreiben der <strong>.htaccess<\/strong> erlauben<\/p>\n<pre class=\"lang:default decode:true \" >\r\nsudo vi \/etc\/apache2\/apache2.conf\r\n#und dort\r\n# &amp;lt;Directory \/var\/www\/&amp;gt;        \r\n#        Options Indexes FollowSymLinks\r\n#        AllowOverride None\r\n#        Require all granted\r\n# &amp;lt;\/Directory&amp;gt;\r\n\r\n#dort die Zeile zu\r\n\r\nAllowOverride All\r\n\r\n# \u00e4ndern und restart\r\nsudo service apache2 restart\r\n<\/pre>\n<p>Testen k\u00f6nnen wir das wenn wir auf das Einstellungsmen\u00fc gehen, und eine \u00c4nderung speichern, das sollte ohne Fehler laufen.<\/p>\n<p>Dann noch die SSL Settings anpassen, dass kommt ein ander mal, da die Stunde um ist \u2026<\/p>\n<p>Welche Plugins verwendest du f\u00fcr die Nextcloud? Gern als Kommentar &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eine eigene Nextcloud Release 13 Installation auf dem Raspberry Pi macht Dropbox \u00fcberfl\u00fcssig! Und man kann sensible private Daten auf dem eigenen Server abspeichern. Nextcloud ist unter einer freien AGPLv3 Lizenz zu erhalten. Um erste Eindr\u00fccke zu erhalten, kann es mal eben auf einem Raspberry Pi (Zero W) installiert werden. Das geht in unter einer &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=9817\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eEine eigene Nextcloud Release 13 Installation auf dem Raspberry Pi macht Dropbox \u00fcberfl\u00fcssig!\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[220,1023,2752,7],"tags":[2236,414,421,3193,3194,3196,3192,3195],"class_list":["post-9817","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-raspberry-pi","category-raspberry-pi-zero-w","category-tools","tag-apache2","tag-cloud","tag-dropbox","tag-dropbox-ersetzen","tag-eigene-cloud","tag-next-cloud","tag-nextcloud","tag-wolke"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/9817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9817"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/9817\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9817"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}