forked from Scout24/kiosk-browser
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
out/ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
DPKG=dpkg | ||
DPKG_OPTS=-b | ||
|
||
*.deb: clean src/* | ||
mkdir -p out | ||
git archive --format=tar --prefix=src/ HEAD | (tar -C build xf -) | ||
fakeroot ${DPKG} ${DPKG_OPTS} build out | ||
rm -Rf build | ||
|
||
info: out/*.deb | ||
dpkg-deb -I out/*.deb | ||
|
||
repo: out/*.deb | ||
/data/mnt/is24-ubuntu-repo/putinrepo.sh out/*.deb | ||
|
||
clean: | ||
rm -fr out build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Package: kiosk-browser | ||
Version: 1.4 | ||
Priority: optional | ||
Section: universe/web | ||
Architecture: all | ||
Essential: no | ||
Maintainer: $Id: control 27620 2012-05-09 11:38:33Z sschapiro $ | ||
Pre-Depends: nodm, chromium-browser | ||
Description: Kiosk Browser | ||
Setup system to work as a kiosk browser, showing only a full-screen browser. | ||
. | ||
Configure the start page in /etc/default/kiosk-browser by setting KIOSK_BROWSER_START_PAGE | ||
. | ||
Homepage: https://github.com/ImmobilienScout24/kiosk-browser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if ! getent passwd kiosk-browser >/dev/null; then | ||
adduser --disabled-password --gecos "Kiosk Browser User" --firstuid 200 --lastuid 300 --home /var/lib/kiosk-browser kiosk-browser | ||
fi | ||
|
||
# disable lightdm and enable nodm | ||
echo "/usr/sbin/nodm" >/etc/X11/default-display-manager | ||
sed -i -e 's/NODM_ENABLED=.*/NODM_ENABLED=true/' -e 's/NODM_USER=.*/NODM_USER=kiosk-browser/' /etc/default/nodm | ||
|
||
# allow kiosk user to only write in chromium directories | ||
mkdir -p /var/lib/kiosk-browser/{.cache/chromium,.cache/config,.pki} | ||
chown -R kiosk-browser:kiosk-browser /var/lib/kiosk-browser/{.cache/chromium,.cache/config,.pki} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if getent passwd kiosk-browser-g >/dev/null; then | ||
if [ -x /usr/sbin/deluser ]; then | ||
deluser --remove-home kiosk-browser || echo "Could not remove kiosk-browser user." | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
exec 2> >(logger -t kiosk-browser) | ||
set -x | ||
if test -r /etc/default/kiosk-browser ; then | ||
source /etc/default/kiosk-browser | ||
fi | ||
xset s off | ||
xset s noblank | ||
while true; do | ||
rm -Rf ~/.config/chromium/* ~/.cache/chromium/* | ||
chromium-browser "${KIOSK_BROWSER_OPTIONS[@]}" --start-maximized --kiosk --app="${KIOSK_BROWSER_START_PAGE:=https://github.com/ImmobilienScout24/kiosk-browser}" | ||
sleep 5 | ||
done |