{"id":1110,"date":"2024-02-28T15:29:25","date_gmt":"2024-02-28T14:29:25","guid":{"rendered":"https:\/\/contecon.de\/picapportwiki\/?page_id=1110"},"modified":"2024-05-24T13:42:57","modified_gmt":"2024-05-24T11:42:57","slug":"installation-of-picapport-on-a-raspberry-pi-4-or-higher","status":"publish","type":"page","link":"https:\/\/contecon.de\/picapportwiki\/installation-of-picapport-on-a-raspberry-pi-4-or-higher\/","title":{"rendered":"Installation of PicApport on a Raspberry Pi 4 or higher"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1110\" class=\"elementor elementor-1110\">\n\t\t\t\t<div class=\"elementor-element elementor-element-382bdc7 e-flex e-con-boxed e-con e-parent\" data-id=\"382bdc7\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7fc5d91 elementor-widget elementor-widget-heading\" data-id=\"7fc5d91\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.19.0 - 07-02-2024 *\/\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/style><h2 class=\"elementor-heading-title elementor-size-default\">Installation of PicApport on a Raspberry Pi 4 or higher<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-032e093 elementor-widget elementor-widget-text-editor\" data-id=\"032e093\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.19.0 - 07-02-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<p>In order to be able to use PicApport for larger photo stocks with several 10,000 photos, we recommend a Raspberry Pi 4 with at least 4 Gigabyte main memory.<\/p><p>Of course PicApport also runs on older RasPi&#8217;s (see.\u00a0<a href=\"https:\/\/contecon.de\/picapportwiki\/installation-of-picapport-on-a-raspberry-pi-3\/\">Installation of PicApport on a Raspberry Pi 3<\/a>) but it&#8217;s really fun with a Raspberry Pi 4.<\/p><p>Even with over 100,000 photos, the performance and user experience of PicApport on a RasPi4 is more than sufficient.<\/p><p class=\"auto-cursor-target\">This manual describes how to install\u00a0<strong>PicApport<\/strong>\u00a08.1 or higher on a\u00a0<strong>Raspberry Pi<\/strong>\u00a0version 4 or higher.<\/p><h3 id=\"InstallationofPicApportonaRaspberryPi4orhigher-Equipment\" class=\"auto-cursor-target\">Equipment<\/h3><p class=\"auto-cursor-target\">We have created the following description for PicApport 8.x on a Raspberry Pi 4 with the following features and tested it over a longer period of time:<\/p><div class=\"table-wrap\"><table class=\"relative-table wrapped confluenceTable\"><colgroup> <col \/> <col \/><\/colgroup><tbody><tr><th class=\"confluenceTh\">Number of photos<\/th><td class=\"confluenceTd\">more than 102.000<\/td><\/tr><tr><th class=\"confluenceTh\">CPU<\/th><td class=\"confluenceTd\">Raspberry Pi 4<\/td><\/tr><tr><th class=\"confluenceTh\">memory<\/th><td class=\"confluenceTd\">4 GB<\/td><\/tr><tr><th class=\"confluenceTh\" colspan=\"1\">SD card<\/th><td class=\"confluenceTd\" colspan=\"1\">256 GB (as fast as possible)<\/td><\/tr><tr><th class=\"confluenceTh\" colspan=\"1\">operating system version<\/th><td class=\"confluenceTd\" colspan=\"1\">Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU\/Linux<br \/>or newer<\/td><\/tr><tr><th class=\"confluenceTh\" colspan=\"1\">Java Version<\/th><td class=\"confluenceTd\" colspan=\"1\"><p>openjdk version &#8222;11.0.3&#8220; 2019-04-16<br \/>or newer<\/p><\/td><\/tr><\/tbody><\/table><\/div><h3 id=\"InstallationofPicApportonaRaspberryPi4orhigher-Environment(ifinstalledwith.deb)\" class=\"auto-cursor-target\">Environment (if installed with .deb)<\/h3><div class=\"table-wrap\"><table class=\"relative-table wrapped confluenceTable\"><colgroup> <col \/> <col \/><\/colgroup><tbody><tr><th class=\"confluenceTh\">Path to .picapport<\/th><td class=\"confluenceTd\"><em><strong>\/opt\/picapport\/.picapport<\/strong><\/em><br \/>More details see:\u00a0<a href=\"https:\/\/contecon.de\/picapportwiki\/the-directory-structure-of-the-picapport-server\/\">The directory structure of the PicApport Server<\/a><\/td><\/tr><tr><th class=\"confluenceTh\">Path to photos<\/th><td class=\"confluenceTd\"><em><strong>\/srv\/photos<\/strong><\/em><\/td><\/tr><tr><th class=\"confluenceTh\" colspan=\"1\">Required permission for PicApport Server process (Deamon)<\/th><td class=\"confluenceTd\" colspan=\"1\">root permission<\/td><\/tr><\/tbody><\/table><\/div><div class=\"confluence-information-macro confluence-information-macro-information conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"info\"><p class=\"title\">On our own behalf<\/p><div class=\"confluence-information-macro-body\"><p>The Contecon team has invested a lot of time and ambition into the development of PicApport as an operating system independent photo server. We are sure that there are better ways to install PicApport on Raspbian or Linux. We would be very happy about suggestions or ideas to create a better .deb package.<\/p><\/div><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1c5ac24 elementor-widget elementor-widget-heading\" data-id=\"1c5ac24\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Installation<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-66f858f elementor-widget elementor-widget-text-editor\" data-id=\"66f858f\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3 id=\"InstallationofPicApportonaRaspberryPi4orhigher-RaspberryPiInstallation\">Raspberry Pi Installation<\/h3><p>For beginners we recommend Raspbian as operating system for a quick success. Of course other distributions are also supported, depending on the performance of your Raspberry you should choose a simple system.<\/p><ol><li>Installation of the operating system (if not already done)<ol><li>see:\u00a0<a class=\"external-link\" href=\"https:\/\/www.raspberrypi.org\/documentation\/installation\/installing-images\/\" rel=\"nofollow\">https:\/\/www.raspberrypi.org\/documentation\/installation\/installing-images\/<\/a><\/li><li>We recommend the following builds to do this on\u00a0<a class=\"external-link\" href=\"https:\/\/www.raspberrypi.org\/downloads\/raspbian\/\" rel=\"nofollow\">https:\/\/www.raspberrypi.org\/downloads\/raspbian\/<\/a><br \/>because it contains a Java Runtime.<ul><li><strong><em>Raspbian [Buildname] with desktop and recommended software<\/em><\/strong><\/li><li>or\u00a0<em><strong>Raspbian\u00a0[Buildname] with desktop<br \/><\/strong><\/em><\/li><\/ul><\/li><\/ol><\/li><li>Login to the Raspberry PI\u00a0(See also:\u00a0<a class=\"external-link\" href=\"https:\/\/www.raspberrypi.org\/help\/quick-start-guide\/\" rel=\"nofollow\">https:\/\/www.raspberrypi.org\/help\/quick-start-guide\/<\/a>)<ol><li>Open an SSH client such as putty<\/li><li>Connect to the IP address of the Raspberry PI (normally the router should know it).<\/li><li>Login with user\u00a0<em><strong>pi<\/strong>\u00a0<\/em>and password\u00a0<em><strong>raspberry<\/strong><\/em><\/li><li>Afterwards the Raspberry PI setup can be executed with\u00a0<strong><em>sudo raspi-config<\/em><\/strong>\u00a0(see:\u00a0<a class=\"external-link\" href=\"https:\/\/www.raspberrypi.org\/documentation\/configuration\/raspi-config.md\" rel=\"nofollow\">https:\/\/www.raspberrypi.org\/documentation\/configuration\/raspi-config.md<\/a>)<\/li><\/ol><\/li><\/ol><h3 id=\"InstallationofPicApportonaRaspberryPi4orhigher-PicApportInstallationper.deb-Paket\">PicApport Installation via .deb-Package<\/h3><ol><li>Preparation<ol><li>If Java is not yet installed, please install an Open-JDK version 11 or higher.<\/li><li>Install\u00a0<em><strong>Screen<\/strong>\u00a0<\/em>with the command\u00a0<em><strong>sudo apt-get install screen<\/strong><\/em><\/li><\/ol><\/li><li>Download the PicApport package.<ol><li>Change to the home directory of the user\u00a0<strong><em>pi<\/em>\u00a0<\/strong>using\u00a0<em><strong>cd ~<\/strong><\/em><\/li><li>Download the package\u00a0<em><strong>PicApportpi.deb<\/strong><\/em>\u00a0into your home directory from the PicApport download page:\u00a0<a class=\"external-link\" href=\"https:\/\/www.picapport.de\/en\/photo-server-download.php\" rel=\"nofollow\">https:\/\/www.picapport.de\/en\/photo-server-download.php<\/a><p>\u00a0<\/p><\/li><\/ol><\/li><li>Installation\u00a0<em><strong><br class=\"_mce_tagged_br\" \/><\/strong><\/em><ol><li>Install the package using console command:\u00a0<em><strong>sudo dpkg -i picapportpi.deb<\/strong><\/em><p>\u00a0<\/p><\/li><\/ol><\/li><li>Start PicApport<ol><li>You can start PicApport with the following command:\u00a0<em><strong>\/etc\/init.d\/picapport start<\/strong><\/em><\/li><li>The first start of the server can take 2-3 minutes. Each further start does not take longer than one minute.<\/li><li>The application can be accessed via a web interface.<\/li><li>PicApport starts automatically when the Raspberry Pi is started.<\/li><\/ol><\/li><\/ol><h3 id=\"InstallationofPicApportonaRaspberryPi4orhigher-PicApportInstallationwithout.deb-Paket\">PicApport Installation without .deb-Package<\/h3><p>see:\u00a0<a href=\"https:\/\/contecon.de\/picapportwiki\/installation-of-picapport-under-linux\/\">Installation of PicApport under Linux<\/a>\u00a0step 2.<\/p><p>If this type of installation is selected, it is recommended to adjust the StartPicApport.sh as follows:<br \/><strong>Important!<\/strong>\u00a0the Raspi requires\u00a0<strong>4GB main memory<\/strong>\u00a0for the memory configuration specified here.<\/p><p><strong>#!\/bin\/bash<br \/>java -Xms2048m -Xmx2048m -Dstorage.diskCache.bufferSize=256 -Duser.home=\/opt\/picapport -jar \/opt\/picapport\/picapport-headless.jar<\/strong><\/p><div class=\"confluence-information-macro confluence-information-macro-information conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"info\"><div class=\"confluence-information-macro-body\"><ul><li>Path to PicApport configuration:\u00a0<strong>\/opt\/picapport\/.picapport<\/strong><\/li><li>The language can be changed in the\u00a0<em><strong>\/opt\/picapport\/StartPicApport.sh<\/strong><\/em>\u00a0file.\u00a0(-Duser.language=de)<\/li><li>PicApport looks for photos in\u00a0<em><strong>\/srv\/photos<\/strong><\/em>.\u00a0To change the setting, see\u00a0<a href=\"https:\/\/contecon.de\/picapportwiki\/picapport-server-guide-2\/\">PicApport-Server Guide<\/a><\/li><li>The server starts on port\u00a0<em><strong>80<\/strong><\/em>. To change the port, the file\u00a0<em><strong>\/etc\/rc.local<\/strong>\u00a0<\/em>must be edited, and all occurrences of\u00a0<em><strong>80<\/strong>\u00a0<\/em>must be replaced by the desired port.<\/li><\/ul><\/div><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ed6d452 elementor-widget elementor-widget-heading\" data-id=\"ed6d452\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Sample configuration<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1139c53 elementor-widget elementor-widget-text-editor\" data-id=\"1139c53\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div id=\"expander-control-1378490256\" class=\"expand-control\"><span class=\"expand-icon aui-icon aui-icon-small aui-iconfont-chevron-down\">\u00a0<\/span><span class=\"expand-control-text\">Example configuration for a PI 4 (4GB RAM)) with over 100.000 photos<\/span><\/div><div id=\"expander-content-1378490256\" class=\"expand-content\"><h3 id=\"InstallationofPicApportonaRaspberryPi4orhigher-picapport.properties\">picapport.properties<\/h3><ul><li>server.port=80<\/li><li>server.ssl=false<\/li><li>user.log.access=true<\/li><li>gui.enabled=false<\/li><li><a class=\"external-link\" href=\"http:\/\/robot.root.0.id\/\" rel=\"nofollow\">robot.root.0.id<\/a>=Photos<\/li><li>robot.root.0.path=\/srv\/photos<\/li><li>robot.rescan.minutes=999<\/li><li>client.timeout.long.millis=100000<\/li><li>client.folder.sort=name<\/li><\/ul><h3 id=\"InstallationofPicApportonaRaspberryPi4orhigher-Ifadditionalpluginsareinstalled,werecommendthefollowingparameters:\">If additional plugins are installed, we recommend the following parameters:<\/h3><ul><li>plugin.shadow.path=\/PicApportShadowFiles<\/li><li>client.video.types.json=[{&#8218;ext&#8217;\\:&#8216;.mp4&#8242;,&#8217;mime&#8217;\\:&#8217;video\/mp4&#8242;},{&#8218;ext&#8217;\\:&#8216;.ogv&#8216;,&#8217;mime&#8217;\\:&#8217;video\/ogg&#8216;},{&#8218;ext&#8217;\\:&#8216;.webm&#8216;,&#8217;mime&#8217;\\:&#8217;video\/webm&#8216;},{&#8218;ext&#8217;\\:&#8216;.3gp&#8216;,&#8217;mime&#8217;\\:&#8217;video\/3gpp&#8216;},{&#8218;ext&#8216;:&#8216;.mov&#8216;,&#8217;mime&#8216;:&#8217;video\/mov&#8216;}]<\/li><\/ul><h3 id=\"InstallationofPicApportonaRaspberryPi4orhigher-StartPicapport.sh\">StartPicapport.sh<\/h3><ul><li>java -Xms2048m -Xmx2048m -Dstorage.diskCache.bufferSize=256 -Duser.home=\/opt\/picapport -jar \/opt\/picapport\/picapport-headless.jar<\/li><\/ul><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ce4a746 elementor-widget elementor-widget-heading\" data-id=\"ce4a746\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Further articles<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-33f631d elementor-widget elementor-widget-text-editor\" data-id=\"33f631d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div id=\"main-content\" class=\"wiki-content\"><ul class=\"content-by-label conf-macro output-block\" data-hasbody=\"false\" data-macro-name=\"contentbylabel\"><li><div class=\"details\"><a href=\"https:\/\/contecon.de\/picapportwiki\/full-text-search-of-photos-supported-metadata\/\">Full text search of photos &#8211; Supported metadata<\/a><\/div><\/li><li><div><span class=\"icon aui-icon content-type-page\" title=\"Seite\">Seite:<\/span><\/div><div class=\"details\"><a href=\"https:\/\/contecon.de\/picapportwiki\/the-picapport-urls\/\">The PicApport URL&#8217;s<\/a><\/div><\/li><li><div><span class=\"icon aui-icon content-type-page\" title=\"Seite\">Seite:<\/span><\/div><div class=\"details\"><a href=\"https:\/\/contecon.de\/picapportwiki\/picapport-server-guide-2\/\">PicApport-Server Guide<\/a><\/div><\/li><li><div><span class=\"icon aui-icon content-type-page\" title=\"Seite\">Seite:<\/span><\/div><div class=\"details\"><a href=\"https:\/\/contecon.de\/picapportwiki\/the-directory-structure-of-the-picapport-server\/\">The directory structure of the PicApport Server<\/a><\/div><\/li><li><div><span class=\"icon aui-icon content-type-page\" title=\"Seite\">Seite:<\/span><\/div><div class=\"details\"><a href=\"https:\/\/contecon.de\/picapportwiki\/picapport-usermanagement\/\">PicApport &#8211; Usermanagement<\/a><\/div><\/li><\/ul><\/div><div id=\"likes-and-labels-container\"><div id=\"labels-section\" class=\"pageSection group\"><div class=\"labels-section-content content-column\"><div class=\"labels-content\">\u00a0<\/div><\/div><\/div><\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-cf2d0b9 e-flex e-con-boxed e-con e-parent\" data-id=\"cf2d0b9\" data-element_type=\"container\" data-settings=\"{&quot;content_width&quot;:&quot;boxed&quot;}\" data-core-v316-plus=\"true\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Installation of PicApport on a Raspberry Pi 4 or higher In order to be able to use PicApport for larger photo stocks with several 10,000 photos, we recommend a Raspberry Pi 4 with at least 4 Gigabyte main memory. Of course PicApport also runs on older RasPi&#8217;s (see.\u00a0Installation of PicApport on a Raspberry Pi 3) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1110","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/comments?post=1110"}],"version-history":[{"count":7,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1110\/revisions"}],"predecessor-version":[{"id":2216,"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/pages\/1110\/revisions\/2216"}],"wp:attachment":[{"href":"https:\/\/contecon.de\/picapportwiki\/wp-json\/wp\/v2\/media?parent=1110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}