1
0
Fork 0

attempt to make chromium work

This commit is contained in:
Massaki Archambault 2023-11-06 23:36:48 -05:00
parent 45bddcac3d
commit b03d756c46
3 changed files with 6 additions and 4 deletions

2
hosts
View File

@ -1,2 +1,2 @@
[raspberrypi-kiosk] [raspberrypi_kiosk]
raspberrypi.local ansible_user=pi ansible_password=raspberry ansible_become_method=sudo ansible_become_user=root raspberrypi.local ansible_user=pi ansible_password=raspberry ansible_become_method=sudo ansible_become_user=root

View File

@ -1,4 +1,4 @@
- name: Perform system update - name: Perform system upgrades
apt: apt:
update_cache: true update_cache: true
upgrade: dist upgrade: dist
@ -16,7 +16,8 @@
name: name:
- cage - cage
- xwayland - xwayland
# - gtk3-nocsd - gtk3-nocsd
- midori
- chromium-browser - chromium-browser
environment: environment:
http_proxy: "{{ proxy.http_proxy }}" http_proxy: "{{ proxy.http_proxy }}"
@ -36,11 +37,11 @@
HTTPS_PROXY="{{ proxy.https_proxy }}" HTTPS_PROXY="{{ proxy.https_proxy }}"
no_proxy="{{ proxy.no_proxy }}" no_proxy="{{ proxy.no_proxy }}"
NO_PROXY="{{ proxy.no_proxy }}" NO_PROXY="{{ proxy.no_proxy }}"
notify: Reboot notify: Reboot
- name: Configure autologin - name: Configure autologin
command: raspi-config nonint do_boot_behaviour B2 command: raspi-config nonint do_boot_behaviour B2
- name: Install kiosk script - name: Install kiosk script
template: template:
src: kiosk.sh.j2 src: kiosk.sh.j2

View File

@ -3,6 +3,7 @@
if [ "$(tty)" = "/dev/tty1" ]; then if [ "$(tty)" = "/dev/tty1" ]; then
while true; do while true; do
GTK_CSD=0 cage -d -s -- midori -e fullscreen -a {{ kiosk_url }} GTK_CSD=0 cage -d -s -- midori -e fullscreen -a {{ kiosk_url }}
#cage -d -s -- chromium-browser --noerrdialogs --disable-infobars --kiosk {{ kiosk_url }}
sleep 1 sleep 1
done done
fi fi