{"id":609,"date":"2021-03-31T20:29:09","date_gmt":"2021-03-31T18:29:09","guid":{"rendered":"https:\/\/apfelcast.com\/?p=609"},"modified":"2021-03-31T20:29:09","modified_gmt":"2021-03-31T18:29:09","slug":"raspberry-pi-4-nextcloud-installieren-schritt-fuer-schritt-anleitung","status":"publish","type":"post","link":"https:\/\/it-ion.de\/index.php\/2021\/03\/31\/raspberry-pi-4-nextcloud-installieren-schritt-fuer-schritt-anleitung\/","title":{"rendered":"Raspberry Pi 4 &#8211; Nextcloud Installieren! Schritt f\u00fcr Schritt Anleitung"},"content":{"rendered":"\n<div class=\"brlbs-cmpnt-container brlbs-cmpnt-content-blocker brlbs-cmpnt-with-individual-styles\" data-borlabs-cookie-content-blocker-id=\"default\" data-borlabs-cookie-content=\"PGlmcmFtZSB0aXRsZT0iWW91VHViZSB2aWRlbyBwbGF5ZXIiIHNyYz0iaHR0cHM6Ly93d3cueW91dHViZS5jb20vZW1iZWQvQmRWUFUtSFpHSGsiIHdpZHRoPSI1NjAiIGhlaWdodD0iMzE1IiBmcmFtZWJvcmRlcj0iMCIgYWxsb3dmdWxsc2NyZWVuPSJhbGxvd2Z1bGxzY3JlZW4iPjwvaWZyYW1lPg==\">\n<div class=\"brlbs-cmpnt-cb-preset-a\">\n<p class=\"brlbs-cmpnt-cb-description\">Sie sehen gerade einen Platzhalterinhalt von <strong>Standard<\/strong>. Um auf den eigentlichen Inhalt zuzugreifen, klicken Sie auf die Schaltfl\u00e4che unten. Bitte beachten Sie, dass dabei Daten an Drittanbieter weitergegeben werden.<\/p>\n<div class=\"brlbs-cmpnt-cb-buttons\"> <a class=\"brlbs-cmpnt-cb-btn\" href=\"#\" data-borlabs-cookie-unblock role=\"button\">Inhalt entsperren<\/a> <a class=\"brlbs-cmpnt-cb-btn\" href=\"#\" data-borlabs-cookie-accept-service role=\"button\" style=\"display: none\">Erforderlichen Service akzeptieren und Inhalte entsperren<\/a> <\/div>\n<p> <a class=\"brlbs-cmpnt-cb-provider-toggle\" href=\"#\" data-borlabs-cookie-show-provider-information role=\"button\">Mehr Informationen<\/a> <\/div>\n<\/div>\n<p>In diesem Video erf\u00e4hrst du, wie du ganz einfach, Schritt f\u00fcr Schritt Nextcloud auf deinem Raspberry Pi installieren kannst, eine USB 3.0 Festplatte als Datenspeicher verwenden kannst und wie du deine Cloud \u00fcber das Internet erreichbar machen kannst.<\/p>\n<p>DynDNS auf dem Raspberry Pi einrichten: https:\/\/youtu.be\/AhrXxHwbss8<\/p>\n<p>F\u00fcr das Tutorial verwendete Teile:<br \/>\nRaspberry Pi 4: <a href=\"https:\/\/amzn.to\/32KqZFe\">https:\/\/amzn.to\/32KqZFe<\/a><br \/>\nMictoSD Karte: <a href=\"https:\/\/amzn.to\/2JUPNlz\">https:\/\/amzn.to\/2JUPNlz<\/a><br \/>\nUSB-C Netzteil: <a href=\"https:\/\/amzn.to\/2JRuMbm\">https:\/\/amzn.to\/2JRuMbm<\/a><br \/>\nMicroUSB zu USB-C Adapter: <a href=\"https:\/\/amzn.to\/30Sbp8L\">https:\/\/amzn.to\/30Sbp8L<\/a><br \/>\nUSB 3.0 Festplatte: <a href=\"https:\/\/amzn.to\/2Y4KHbd\">https:\/\/amzn.to\/2Y4KHbd<\/a><br \/>\nRaspberry Pi 4 Case:<a href=\"https:\/\/amzn.to\/2JUGDoX\"> https:\/\/amzn.to\/2JUGDoX<\/a><br \/>\nGigabit Lan Kabel: <a href=\"https:\/\/amzn.to\/2XT1Olg\">https:\/\/amzn.to\/2XT1Olg<\/a><br \/>\nFritz!Box 6490 Cable: <a href=\"https:\/\/amzn.to\/2OjW7rY\">https:\/\/amzn.to\/2OjW7rY<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div id=\"93964-1\"><script src=\"\/\/ads.themoneytizer.com\/s\/gen.js?type=1\"><\/script><script src=\"\/\/ads.themoneytizer.com\/s\/requestform.js?siteId=93964&#038;formatId=1\"><\/script><\/div>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#### Install Nextcloud on Raspberry Pi 4B+ using Snap ####\n\n# install snap\nsudo apt update\nsudo apt install snapd\n\nsudo reboot\n\nsudo snap install nextcloud\n\n##mount external USB drive\n\n# get drive path\nls -l \/dev\/sd*\n\n# format hard drive \nsudo mkfs.ext4 \/dev\/sda1\n\n# create mount point\nsudo mkdir \/media\/HDD1\n\n# mount it\nsudo mount \/dev\/sda1 \/media\/HDD1\n\n## mount it on start up\n\n# get UUID\nsudo blkid \/dev\/sda1\n\n# create new fstab entry\nsudo nano -Bw \/etc\/fstab\n\nUUID= \/media\/HDD1\/ ext4 defaults 0\n\n# change nextcloud data directory\nsudo nano \/var\/snap\/nextcloud\/current\/nextcloud\/config\/autoconfig.php\nedit 'directory' =&gt;\n\n# restart PHP service\nsudo snap restart nextcloud.php-fpm\n\n=&gt; surf to Pi's IP Adress in Browser and create admin account\n\n#disable preload files\nsudo nano \/etc\/ld.so.preload\n\nchange \/usr\/lib\/arm-linux-gnueabihf\/libarmmem.so\nto #\/usr\/lib\/arm-linux-gnueabihf\/libarmmem.so\n\n## open ports 80 and 443 in router and configure DynDNS\n\n# show trusted domains\n\/snap\/bin\/nextcloud.occ config:system:get trusted_domains\n\n# add trusted domain\nsudo \/snap\/bin\/nextcloud.occ config:system:set trusted_domains 2 --value=cloud.domain.com\n\n# restart apache seerver\nsudo snap restart nextcloud.apache\n\n# create ssl-certificate\nsudo \/snap\/bin\/nextcloud.enable-https lets-encrypt\n\n### good to know ###\n\n# install updates\nsudo snap refresh nextcloud\n\n# enter config.php\nsudo nano \/var\/snap\/nextcloud\/current\/nextcloud\/config\/config.php\n\n# enter php.ini<\/pre>\n<p>&nbsp;<\/p>\n<h3>apfelcast Support<\/h3>\n<p>Du ben\u00f6tigst Unterst\u00fctzung bei deinem Projekt oder hast Fragen zur Umsetzung?<br \/>\n<strong>Dann melde ich gern bei uns!<\/strong><\/p>\n<p>[button link=&#8220;https:\/\/apfelcast.com\/kontakt&#8220; type=&#8220;big&#8220; class=&#8220; custom-button&#8220;] Kontaktieren[\/button]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sie sehen gerade einen Platzhalterinhalt von Standard. Um auf den eigentlichen Inhalt zuzugreifen, klicken Sie&#8230;<\/p>\n","protected":false},"author":1,"featured_media":610,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-609","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein"],"taxonomy_info":{"category":[{"value":1,"label":"Allgemein"}]},"featured_image_src_large":["https:\/\/it-ion.de\/wp-content\/uploads\/2021\/03\/maxresdefault-2-1024x576.jpg",1024,576,true],"author_info":{"display_name":"Daniel Klozb\u00fccher","author_link":"https:\/\/it-ion.de\/index.php\/author\/wp-master\/"},"comment_info":0,"category_info":[{"term_id":1,"name":"Allgemein","slug":"allgemein","term_group":0,"term_taxonomy_id":1,"taxonomy":"category","description":"","parent":0,"count":89,"filter":"raw","cat_ID":1,"category_count":89,"category_description":"","cat_name":"Allgemein","category_nicename":"allgemein","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts\/609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/comments?post=609"}],"version-history":[{"count":0,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/posts\/609\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/media\/610"}],"wp:attachment":[{"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/media?parent=609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/categories?post=609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it-ion.de\/index.php\/wp-json\/wp\/v2\/tags?post=609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}