{"id":266,"date":"2021-11-18T12:04:47","date_gmt":"2021-11-18T11:04:47","guid":{"rendered":"https:\/\/prodinfo.es\/?p=266"},"modified":"2021-11-18T12:04:47","modified_gmt":"2021-11-18T11:04:47","slug":"utilizar-raspberry-como-kiosk","status":"publish","type":"post","link":"https:\/\/prodinfo.es\/?p=266","title":{"rendered":"Utilizar Raspberry como kiosk"},"content":{"rendered":"\n<p>1. Abrir terminal y <strong>configurar raspberry<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo raspi-config\n<\/code><\/pre>\n\n\n\n<p>2.\u00a0 Establecer <strong>configuraci\u00f3n:<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Change User Password: *********\r\nBoot Options\/ \"Desktop\/Cli\", \"Console Autologin\"\r\nInterfacing Options: \"Enable SSH\"\r\nInterfacing Options: \"Enable SVN\"\r\nAdvanced Options: \"Disable Overscan\"\n<\/code><\/pre>\n\n\n\n<p>3.\u00a0Instalar <strong>X11<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox\n<\/code><\/pre>\n\n\n\n<p>4.\u00a0Instalar <strong>Chrome<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get install --no-install-recommends chromium-browser\n<\/code><\/pre>\n\n\n\n<p>4.\u00a0Editar fichero de inicio (Buster 2\u00ba linea)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo nano \/etc\/xdg\/openbox\/autostart<\/code><\/pre>\n\n\n\n<p>5.\u00a0 Incluir configuraci\u00f3n y salir (CTRL-X) guardando (Y).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Disable any form of screen saver \/ screen blanking \/ power management\r\nxset s off\r\nxset s noblank\r\nxset -dpms\r\n\r\n# Allow quitting the X server with CTRL-ATL-Backspace\r\nsetxkbmap -option terminate:ctrl_alt_bksp\r\n\r\n# Start Chromium in kiosk mode\r\nsed -i 's\/\"exited_cleanly\":false\/\"exited_cleanly\":true\/' ~\/.config\/chromium\/'Local State'\r\nsed -i 's\/\"exited_cleanly\":false\/\"exited_cleanly\":true\/; s\/\"exit_type\":\"&#91;^\"]\\+\"\/\"exit_type\":\"Normal\"\/' ~\/.config\/chromium\/Default\/Preferences\r\n# sed -i 's\/\"exit_type\":\"Crashed\"\/\"exit_type\":\"Normal\"\/' ~\/.config\/chromium\/Default\/Preferences\r\nmac=$(ifconfig eth0 | grep -Eo ..\\(\\:..\\){5})\r\nurl=\"https:\/\/**********\/login?id=$mac\"\r\nchromium-browser --check-for-update-interval=31536000 --noerrordialogs --disable-infobars --autoplay-policy=no-user-gesture-required --kiosk $url\n<\/code><\/pre>\n\n\n\n<p>6.\u00a0Editar fichero <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo nano ~\/.bash_profile<\/code><\/pre>\n\n\n\n<p>7.\u00a0 Incluir configuraci\u00f3n y salir (CTRL-X) guardando (Y).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rm -r  ~\/.cache\/chromium\/Default\/Cache\/*\r\n&#91;&#91; -z $DISPLAY &amp;&amp; $XDG_VTNR -eq 1 ]] &amp;&amp; startx -- -nocursor\r\n\r\n<\/code><\/pre>\n\n\n\n<p>8.\u00a0 Editar vncserver<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo nano \/root\/.vnc\/config.d\/vncserver-x11<\/code><\/pre>\n\n\n\n<p>9.\u00a0 Incluir configuraci\u00f3n y salir (CTRL-X) guardando (Y).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Authentication=VncAuth\r\nEncryption=AlwaysOff\r\nPassword=c3abbea3b003a0b231737c0541892d72<\/code><\/pre>\n\n\n\n<p>10.\u00a0Cambiar contrase\u00f1a por defecto: raspberry<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo vncpasswd -service\n\n<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Abrir terminal y configurar raspberry. 2.\u00a0 Establecer configuraci\u00f3n:. 3.\u00a0Instalar X11. 4.\u00a0Instalar Chrome. 4.\u00a0Editar fichero de inicio (Buster 2\u00ba linea) 5.\u00a0 Incluir configuraci\u00f3n y salir (CTRL-X) guardando (Y). 6.\u00a0Editar fichero 7.\u00a0 Incluir configuraci\u00f3n y salir (CTRL-X) guardando (Y). 8.\u00a0 Editar vncserver 9.\u00a0 Incluir configuraci\u00f3n y salir (CTRL-X) guardando (Y). 10.\u00a0Cambiar contrase\u00f1a por defecto: raspberry<\/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-266","post","type-post","status-publish","format-standard","hentry","category-sin-categoria"],"_links":{"self":[{"href":"https:\/\/prodinfo.es\/index.php?rest_route=\/wp\/v2\/posts\/266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prodinfo.es\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prodinfo.es\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prodinfo.es\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prodinfo.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=266"}],"version-history":[{"count":1,"href":"https:\/\/prodinfo.es\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions"}],"predecessor-version":[{"id":267,"href":"https:\/\/prodinfo.es\/index.php?rest_route=\/wp\/v2\/posts\/266\/revisions\/267"}],"wp:attachment":[{"href":"https:\/\/prodinfo.es\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prodinfo.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prodinfo.es\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}