Jednochuchy Kiosek s Firefoxem na Debianu, vypada takto:

Pokud mame nainstalovany minimalni debian instalaci, tj. skoro nic, doinstalujeme:

apt-get install fluxbox hicolor-icon-theme iceweasel iceweasel-l10n-cs openssh-server rungetty xauth
xfonts-100dpi xfonts-75dpi xfonts-base xfonts-encodings xfonts-scalable xfonts-terminus xfonts-utils
xorg xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev xserver-xorg-input-synaptics
xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark
xserver-xorg-video-ati xserver-xorg-video-chips xserver-xorg-video-cirrus xserver-xorg-video-dummy
xserver-xorg-video-fbdev xserver-xorg-video-geode xserver-xorg-video-i128 xserver-xorg-video-i740
xserver-xorg-video-intel xserver-xorg-video-mach64 xserver-xorg-video-mga xserver-xorg-video-neomagic
xserver-xorg-video-nouveau xserver-xorg-video-nv xserver-xorg-video-openchrome xserver-xorg-video-r128
xserver-xorg-video-radeon xserver-xorg-video-rendition xserver-xorg-video-s3 xserver-xorg-video-s3virge
xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sis xserver-xorg-video-sisusb
xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-vesa
xserver-xorg-video-vmware xserver-xorg-video-voodoo xterm unclutter

Vytvorime uzivatele kiosek:

adduser kiosek

Tento uzivetel se bude automaticky logovat pres inittab a kiosek pobezi pod nim ...

dale vytvorme defaultni xorg.conf v /etc/X11, bude vypadat takto:

Section "Device"
        Identifier      "Configured Video Device"
        Driver          "intel"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
        Option          "DPMS"
EndSection


Section "Screen"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
        DefaultDepth    24
EndSection

Section "Serverflags"
        Option "DontVTSwitch" "yes"
        Option "IgnoreABI" "True"
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        Option "BlankTime" "0"
        Option "StandbyTime" "0"
        Option "SuspendTime" "0"
        Option "OffTime" "0"
EndSection

Zde jedine, co asi menime je ovladac grafiky, v nasem pripade je to intel ...

Dale editujeme /etc/inittab. Konec inittabu bude vypadat takto:

#6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

6:23:respawn:/sbin/rungetty tty6 --autologin kiosek

Zajima nas ten prvni radek, ktery rika, ze musime stavajici konzoli c.6 zakomentovat a nahradime ji poslednim radkem,
kde rikame, ze na tty6 autoprihlas uzivatele kiosek.

Dalsi konfigurace se uz odehrava jen v uzivatelskem home adresari (/home/kiosek).

Do /home/kiosek/.profile pridame na konec souboru:

# if logging into tty7 (which will autologin), run startx
if [ -z "$DISPLAY" ] && [ $(tty) = /dev/tty6 ] ; then
    startx ;
fi

Dale vytvorime /home/kiosek/.xinitrc :

#!/bin/bash

setterm -blank 0 -powersave off -powerdown 0
xset s off
startfluxbox &

while [ 1 ];do
        sleep 3;
        if [ -p '/home/kiosek/.mozilla/firefox/8rpwtegi.default/lock' ];then
                continue;
        fi
firefox;
done

Vsimnete si radku if, zde je nutne profil 8rpwtegi.default nahradit VASIM profilem, ktery firefox vytvoril pri prvnim spusteni.

Predposledni vec, kterou je potreba udelat je ve firefoxu potreba nainstalovat plugin kiosek a trada :-)
Plugin najdete zde: https://addons.mozilla.org/cs/firefox/addon/r-kiosk/eula/132044?src=search

Posledni vec, pokud se chcete jeste zbavit kursoru mysi je potreba v /home/kiosek/.fluxbox/startup
odkomentovat tohle:

#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Change your keymap:
#xmodmap "/home/kiosek/.Xmodmap"

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec fluxbox
Stránka naposled modifikovaná January 26, 2012, at 04:15 PM