Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to make a Webkit Kiosk on Debian with Raspberry Pi

I'm trying to build a Webkit Kiosk on a Raspberry Pi.

I found a good start at: https://github.com/pschultz/kiosk-browser

The things I want to do:

1) Start the kiosk without logging in (with inittab?)

Peter Schultz pointed out adding the following line:

1:2345:respawn:/usr/bin/startx -e /usr/bin/browser http://10.0.0.5/zfs/monitor tty1 /dev/tty1 2>&1

But he did not explain the steps to make this work (for noobs).

What I did is add his code to a personal git repository and cloned this repo to /usr/bin/kiosk and sudo apt-get install libwebkit-dev and sudo make.

The line to add to inittab will be:

1:2345:respawn:/usr/bin/startx -e /usr/bin/kiosk/browser http://my-kiosk-domain.com tty1 /dev/tty1 2>&1

If I do this, I generate a loop or some kind...

like image 456
Mike Avatar asked Jun 28 '12 19:06

Mike


1 Answers

If you want to automatically load a browser full screen in kiosk mode every time you turn on the rpi you can add one of these two lines to the file /etc/xdg/lxsession/LXDE/autostart

@chromium --kiosk --incognito www.google.it
@midori -i 120 -e Fullscreen -a www.google.it -p

The first is for chromium and the latter is for midori, the rpi default lightweight browser.

Hint : Since we will use the rpi as a kiosk we want to prevent the screen from going black and disable the screensaver. Edit the autostart file:

sudo pico /etc/xdg/lxsession/LXDE/autostart

find the following line and comment it using a # (it should be located at the bottom)

#@xscreensaver -no-splash

and append the following lines

@xset s off 
@xset -dpms 
@xset s noblank 

Save, reboot.

More info on http://pikiosk.tumblr.com/post/38721623944/setup-raspberry-ssh-overclock-sta

like image 134
Advanced Avatar answered Sep 24 '22 22:09

Advanced