{"id":695,"date":"2024-07-23T21:10:15","date_gmt":"2024-07-23T18:10:15","guid":{"rendered":"https:\/\/harrykuch.ru\/wordpress\/?p=695"},"modified":"2025-05-15T15:35:30","modified_gmt":"2025-05-15T12:35:30","slug":"%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b9%d0%ba%d0%b0-%d0%b8%d0%bd%d0%b4%d0%b5%d0%ba%d1%81%d0%b0%d1%86%d0%b8%d0%b8-%d1%84%d0%b0%d0%b9%d0%bb%d0%be%d0%b2-nextcloud-%d0%b8-%d1%81%d0%be%d0%b7%d0%b4%d0%b0","status":"publish","type":"post","link":"https:\/\/harrykuch.ru\/wordpress\/?p=695","title":{"rendered":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 Nextcloud \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0432\u044c\u044e \u0432 crontab"},"content":{"rendered":"<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0432 \u0412\u0430\u0448\u0435 \u043e\u0431\u043b\u0430\u043a\u043e \u0444\u0430\u0439\u043b\u044b \u0431\u044b\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 \u0432\u0438\u0434\u0435 \u043f\u0440\u0435\u0432\u044c\u044e, \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <strong>Preview Generator<\/strong><\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b \u043e\u0431\u043b\u0430\u043a\u0430:<\/p>\n<pre>sudo nano \/var\/www\/html\/nextcloud\/config\/config.php<\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p><!--more--><\/p>\n<pre>'enable_previews' =&gt; true,\u2029\r\n'preview_max_x' =&gt; 1024,\u2029\r\n'preview_max_y' =&gt; 1024,\u2029'preview_max_filesize_image' =&gt; 50,\u2029'enabledPreviewProviders' =&gt; \u2029array (\u2029\r\n       0 =&gt; 'OC\\\\Preview\\\\PNG',\u2029\r\n       1 =&gt; 'OC\\\\Preview\\\\JPEG',\u2029\r\n       2 =&gt; 'OC\\\\Preview\\\\GIF',\u2029\r\n       3 =&gt; 'OC\\\\Preview\\\\HEIC',\u2029\r\n       4 =&gt; 'OC\\\\Preview\\\\BMP',\u2029\r\n       5 =&gt; 'OC\\\\Preview\\\\XBitmap',\u2029\r\n       6 =&gt; 'OC\\\\Preview\\\\MP3',\u2029\r\n       7 =&gt; 'OC\\\\Preview\\\\TXT',\u2029\r\n       8 =&gt; 'OC\\\\Preview\\\\MarkDown',\u2029\r\n       9 =&gt; 'OC\\\\Preview\\\\OpenDocument',\u2029\r\n       10 =&gt; 'OC\\\\Preview\\\\Krita',\u2029\r\n       11 =&gt; 'OC\\\\Preview\\\\PDF',\u2029\r\n       12 =&gt; 'OC\\\\Preview\\\\Movie',\u2029\r\n       13 =&gt; 'OC\\\\Preview\\\\Image',\u2029\r\n       14 =&gt; 'OC\\\\Preview\\\\TIFF',\u2029),<\/pre>\n<p>\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c: CTRL + X, Y, Enter.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0432\u044c\u044e\u0448\u0435\u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0447\u0435\u0440\u0435\u0437 occ (\u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u044f\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u0435\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u043c\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043e\u0431\u043b\u0430\u043a\u0435)<\/p>\n<pre>sudo -u www-data php \/var\/www\/html\/nextcloud\/occ preview:generate-all -vvv<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u043f\u0440\u0435\u0432\u044c\u044e \u043a\u0430\u0436\u0434\u044b\u0435 10 \u043c\u0438\u043d\u0443\u0442 . \u0412\u0445\u043e\u0434\u0438\u043c \u0432 \u0445\u0440\u043e\u043d\u0442\u0430\u0431 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f www-data:<\/p>\n<pre>sudo crontab -u www-data -e<\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u043d\u0438\u0437\u0443 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre>#\u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u0430\u0434\u0436\u044b\u0435 5 \u043c\u0438\u043d\u0443\u0442\r\n\u2029#\u0432\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u043f\u0440\u0435\u0432\u044c\u044e \u043a\u0430\u0434\u0436\u044b\u0435 10 \u043c\u0438\u043d\u0443\u0442\u2029\r\n*\/5 * * * * php -f \/var\/www\/html\/nextcloud\/cron.php\u2029\r\n*\/10 * * * php \/var\/www\/html\/nextcloud\/occ preview:pre-generate<\/pre>\n<p>\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c: CTRL + X, Y, Enter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0432 \u0412\u0430\u0448\u0435 \u043e\u0431\u043b\u0430\u043a\u043e \u0444\u0430\u0439\u043b\u044b \u0431\u044b\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 \u0432\u0438\u0434\u0435 \u043f\u0440\u0435\u0432\u044c\u044e, \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Preview Generator \u0417\u0430\u0442\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b \u043e\u0431\u043b\u0430\u043a\u0430: sudo nano \/var\/www\/html\/nextcloud\/config\/config.php \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-695","post","type-post","status-publish","format-standard","hentry","category-raspberry_pi"],"_links":{"self":[{"href":"https:\/\/harrykuch.ru\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/harrykuch.ru\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harrykuch.ru\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harrykuch.ru\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harrykuch.ru\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=695"}],"version-history":[{"count":9,"href":"https:\/\/harrykuch.ru\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/695\/revisions"}],"predecessor-version":[{"id":1180,"href":"https:\/\/harrykuch.ru\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/695\/revisions\/1180"}],"wp:attachment":[{"href":"https:\/\/harrykuch.ru\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harrykuch.ru\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harrykuch.ru\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}