One of Raspberry Pi's default configurations is an interactive desktop environment from which you can launch a browser and load the transit screen manually. DownloadDownload and install a raspberry pi distribution. The Raspbian “wheezy” distribution works. InstallFollow the directions on the Raspberry Pi wiki to install. Configure
Run
Running without a DesktopTo save memory, speed boot time, and hopefully improve stability, you can run Midori (or another browser) on its own without a Desktop manager. Getting this setup will also make it simpler to have the Raspberry Pi boot directly into the TransitScreen as a next step. SetupFollow the directions above for downloading and installing the Raspbian OS. (For an even simpler, lighter setup, you could use Arch Linux, but setup/configuration is more advanced.) During the configuration step on first boot, do not choose to start the desktop on startup. We will run a browser without a desktop manager instead. With this configuration Raspberry Pi will boot to a text login prompt and then dump you at the terminal after login. Running the Browser without a DesktopThe simplest way to start a browser (e.g. Midori, Firefox, Chromium) from the command line without a desktop manager is with for example: The problem with this is that the Midori window may not be fullscreen even though Midori is running in "fullscreen" mode, because Midori doesn't behave very well without a window manager running. Other browsers handle this a little better; NetSurf is better behaved (but has no JavaScript); Firefox allows specifying the window width and height as command line options; Chromium has a specific A good fix for Midori is to install a very lightweight fullscreen-only kiosk-specialized window manager, e.g. Then create a script for
Now run Preventing screen blankingYou don't want the screen to go blank because of inactivity, so disable the X screen saver. (I haven't actually confirmed this is an issue, but based on others' reports it sounds like it's needed.) First do: Then add these lines to the top of your script, above
LoopingAnother trick is that you can have the browser open in a loop, so that it will restart itself if something crashes it. Change the midori line in the script to:
Hiding the mouse cursorIf you have a mouse cursor permanently over the TransitScreen you can hide it on inactivity using Protecting a kioskThere are further measures for protecting the kiosk from tampering. For examples, see here: https://wiki.archlinux.org/index.php/Creating_a_Web_Kiosk Booting directly to KioskOnce you have things configured to run correctly from the terminal, you can set everything up so the Raspberry Pi boots directly into Midori. AutologinSee here for instructions to have Pi autologin to terminal instead of prompting for login. Autorun on loginThere are several approaches to autorunning programs on startup. The simplest is just to put the desired commands (e.g. Further fine-tuningScreen ResolutionYou may improve performance by reducing the screen resolution of the Pi; this can be forced regardless of the display plugged into the Pi by editing the config.txt file; more details to follow. RaspberryPi Screen BlankingIn addition to the X screen saver, the Raspberry Pi seems to put itself in a blank screen mode if there is no input for a while, even if you're just at the terminal. Haven't yet confirmed that this is an issue for TransitScreen or found the way to turn it off. Probably is done in config.txt. Raspberry pi a start job is running for LSB raise network interfaces Solved by changing file
to:
|
R&D Publishing >