{"id":253,"date":"2021-12-28T08:25:41","date_gmt":"2021-12-28T01:25:41","guid":{"rendered":"https:\/\/prosindo.com\/blog\/?p=253"},"modified":"2021-12-28T11:38:11","modified_gmt":"2021-12-28T04:38:11","slug":"raspberry-pi-kiosk-without-desktop-environment","status":"publish","type":"post","link":"https:\/\/prosindo.com\/blog\/2021\/12\/28\/raspberry-pi-kiosk-without-desktop-environment\/","title":{"rendered":"Raspberry Pi Kiosk without Desktop Environment"},"content":{"rendered":"<p>Here is how to make chromium kiosk without Desktop Environment (to save loading time and resources)<\/p>\n<p>In my case chromium-browser not loaded in fullscreen by default, its position 65 pixel from top, so i need to add parameter &#8220;&#8211;window-size&#8221; and &#8220;&#8211;window-position&#8221; to make it right. In case its still not right, uncomment xdotool lines<\/p>\n<p>save the text below in file ~\/.xsession<\/p>\n<p><code>#!\/usr\/bin\/env bash<\/code><\/p>\n<p><code>xset s off -dpms &amp;<\/code><\/p>\n<p><code>#exec matchbox-window-manager &amp;<\/code><br \/>\n<code>while true; do<\/code><br \/>\n<code>sed -i 's\/\"exited_cleanly\":false\/\"exited_cleanly\":true\/' ~\/.config\/chromium\/Default\/Preferences<\/code><br \/>\n<code>sed -i 's\/\"exit_type\": \"Crashed\"\/\"exit_type\": \"Normal\"\/' ~\/.config\/chromium\/Default\/Preferences<\/code><br \/>\n<code>#in case chromium window size not fullscreen<\/code><br \/>\n<code>#\/usr\/bin\/xdotool sleep 60 getwindowfocus windowsize 800 480&amp;<\/code><br \/>\n<code>#\/usr\/bin\/xdotool sleep 60 getwindowfocus windowmove 0 0&amp;<\/code><br \/>\n<code>\/usr\/bin\/chromium-browser --no-default-browser-check --noerrdialogs --window-position=0,0 --window-size=800,480 --kiosk http:\/\/the-web-you-want-to-load<\/code><br \/>\n<code>done<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is how to make chromium kiosk without Desktop Environment (to save loading time and resources) In my case chromium-browser not loaded in fullscreen by default, its position 65 pixel from top, so i need to add parameter &#8220;&#8211;window-size&#8221; and &#8220;&#8211;window-position&#8221; to make it right. In case its still not right, uncomment xdotool lines save &hellip; <a href=\"https:\/\/prosindo.com\/blog\/2021\/12\/28\/raspberry-pi-kiosk-without-desktop-environment\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Raspberry Pi Kiosk without Desktop Environment&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-253","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/comments?post=253"}],"version-history":[{"count":1,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/253\/revisions"}],"predecessor-version":[{"id":254,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/posts\/253\/revisions\/254"}],"wp:attachment":[{"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/media?parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/categories?post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prosindo.com\/blog\/wp-json\/wp\/v2\/tags?post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}