Added inital modification for Kiosk version
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"TranslateEnabled":false,
|
||||
"PasswordManagerEnabled":false,
|
||||
"VideoCaptureAllowed":true,
|
||||
"VideoCaptureAllowedUrls":["http://[*.]","https://[*.]"]
|
||||
}
|
||||
2
config/includes.chroot/etc/plymouth/plymouthd.conf
Normal file
2
config/includes.chroot/etc/plymouth/plymouthd.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
[Daemon]
|
||||
Theme=tribar
|
||||
39
config/includes.chroot/etc/skel/.bashrc
Normal file
39
config/includes.chroot/etc/skel/.bashrc
Normal file
@@ -0,0 +1,39 @@
|
||||
#Clear screen on startup
|
||||
clear
|
||||
#Functions
|
||||
NetCheck(){
|
||||
unset counter
|
||||
while [[ $counter -lt 3 && "$Net" = "false" ]]
|
||||
do
|
||||
sleep 5
|
||||
ping -q -c1 ictmaatwerk.com &>/dev/null && Net=true || Net=false
|
||||
counter=$(( $counter + 1 ))
|
||||
done
|
||||
}
|
||||
|
||||
#Check for network
|
||||
echo "Waiting for network"
|
||||
ping -q -c1 google.com &>/dev/null && Net=true || Net=false
|
||||
#If no network enter wait loop
|
||||
NetCheck
|
||||
|
||||
#Check for manual retry for netwerk
|
||||
while [[ "$Net" = "false" ]]; do
|
||||
read -p "Network could not be initialized, Try again (y/n) " yn
|
||||
case $yn in
|
||||
[yY]* )
|
||||
NetCheck
|
||||
break;;
|
||||
[Nn]* ) break;;
|
||||
* ) echo invalid response;;
|
||||
esac
|
||||
done
|
||||
|
||||
#Check if video and network are ok, else error out
|
||||
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]] && [[ "$Net" = "true" ]]; then
|
||||
echo "Loading, please wait..."
|
||||
exec startx >/dev/null 2>&1
|
||||
else
|
||||
echo "System could not be initialized, exited"
|
||||
sleep 10000
|
||||
fi
|
||||
0
config/includes.chroot/etc/skel/.hushlogin
Normal file
0
config/includes.chroot/etc/skel/.hushlogin
Normal file
@@ -1,3 +0,0 @@
|
||||
#set tabstospaces
|
||||
set tabsize 4
|
||||
# include ~/.nano/*.nanorc
|
||||
12
config/includes.chroot/etc/skel/.xinitrc
Normal file
12
config/includes.chroot/etc/skel/.xinitrc
Normal file
@@ -0,0 +1,12 @@
|
||||
#Disable dpms to prevent screen from blanking
|
||||
xset -dpms; xset s off
|
||||
|
||||
#Configure displays (man xrandr for more options)
|
||||
xrandr --output DP1 --prefered
|
||||
xrandr --output HDMI1 --prefered
|
||||
|
||||
#Start matchbox wm (man matchbox-window-manager for more options)
|
||||
exec matchbox-window-manager -use_titlebar no -use_cursor no &
|
||||
|
||||
#Open browser
|
||||
exec chromium --kiosk --no-first-run --disable --disable-infobars --disable-suggestions-service --app="https://wm.ictmaatwerk.com/test"
|
||||
3
config/includes.chroot/etc/systemd/logind.conf
Normal file
3
config/includes.chroot/etc/systemd/logind.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
[Login]
|
||||
NAutoVTs=1
|
||||
ReserveVT=1
|
||||
1
config/includes.chroot/etc/systemd/system/default.target
Symbolic link
1
config/includes.chroot/etc/systemd/system/default.target
Symbolic link
@@ -0,0 +1 @@
|
||||
/lib/systemd/system/multi-user.target
|
||||
Reference in New Issue
Block a user