# Lag ein ny brukar adduser --home /local-home/kiosk kiosk # Innstaller sakleg WM (hhohohoho) apt-get install ratpoison cat < /usr/share/xsessions/xclient.desktop [Desktop Entry] Name=Xsession Comment=This runs ~/.xsession Exec=/etc/X11/Xsession EOF #fjern xsplash frå /etc/gdm/PreSession/Default # Set kiosk til å logga inn automatisk (i gdm) # Logg inn som brukaren (kiosk), bruk profil Xsession # Opna firefox # Set heimesida di til det du treng # installer r-kiosk: # about:config, legg til: # extensions.checkCompatibility=false # rkiosk.navbar=true echo "les fili mongomand" exit ############## # legg fylgjande til i userChrome.css i firefox-profilen (i mappa chrome/) cat < chrome/userChrome.css @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); #window-controls {display: none !important} #toolbar-context-menu {display: none !important} #toolbar-menubar {display: none !important} #urlbar-container {display: none !important} #search-container {display: none !important} menupopup {display: none !important} EOF ############ # Lag xinitrc-fiil cd cat < /local-home/kiosk/.xinitrc #!/usr/bin/env bash /local-home/kiosk/run_firefox.sh & exec ratpoison EOF cat < run_firefox.sh #!/bin/bash while :; do firefox sleep 1 done EOF ln -s .xinitrc .xsession chmod a+x .xinitrc chmod a+x run_firefox.sh