Utilizar Raspberry como kiosk

Utilizar Raspberry como kiosk

1. Abrir terminal y configurar raspberry.

$ sudo raspi-config

2.  Establecer configuración:.

Change User Password: *********
Boot Options/ "Desktop/Cli", "Console Autologin"
Interfacing Options: "Enable SSH"
Interfacing Options: "Enable SVN"
Advanced Options: "Disable Overscan"

3. Instalar X11.

$ sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox

4. Instalar Chrome.

$ sudo apt-get install --no-install-recommends chromium-browser

4. Editar fichero de inicio (Buster 2º linea)

$ sudo nano /etc/xdg/openbox/autostart

5.  Incluir configuración y salir (CTRL-X) guardando (Y).

# Disable any form of screen saver / screen blanking / power management
xset s off
xset s noblank
xset -dpms

# Allow quitting the X server with CTRL-ATL-Backspace
setxkbmap -option terminate:ctrl_alt_bksp

# Start Chromium in kiosk mode
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
# sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
mac=$(ifconfig eth0 | grep -Eo ..\(\:..\){5})
url="https://**********/login?id=$mac"
chromium-browser --check-for-update-interval=31536000 --noerrordialogs --disable-infobars --autoplay-policy=no-user-gesture-required --kiosk $url

6. Editar fichero

$ sudo nano ~/.bash_profile

7.  Incluir configuración y salir (CTRL-X) guardando (Y).

sudo rm -r  ~/.cache/chromium/Default/Cache/*
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor

8.  Editar vncserver

$ sudo nano /root/.vnc/config.d/vncserver-x11

9.  Incluir configuración y salir (CTRL-X) guardando (Y).

Authentication=VncAuth
Encryption=AlwaysOff
Password=c3abbea3b003a0b231737c0541892d72

10. Cambiar contraseña por defecto: raspberry

$ sudo vncpasswd -service

User

Los comentarios están cerrados.