Code Monkey home page Code Monkey logo

raspberry-pi-kiosk-screen's Introduction

Create Raspberry Pi Kiosk on Raspbian Debian Wheezy

Chromium Browser

  1. Install Raspbian Debian Wheezy

  2. sudo raspi-config

    • Update the Raspi config tool (Advanced Options)
    • Enable SSH
    • Disable overscan. (Advanced Options)
    • Change your boot to desktop environment.
  3. Now start the terminal and update your system:

    sudo apt-get update
    sudo apt-get upgrade
    
  4. Install chromium (browser), x11 server utils and unclutter (hide the cursor from the screen)

    sudo apt-get install chromium x11-xserver-utils unclutter
    
  5. When the GUI starts up chromium needs to boot in kiosk-mode and open the webpage. Because of that we edit the autostart file:

    sudo nano ~/.config/lxsession/LXDE-pi/autostart
    

    The autostart files needs to look like this:

    @lxpanel --profile LXDE
    @pcmanfm --desktop --profile LXDE
    @xset s off
    @xset -dpms
    @xset s noblank
    @sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' ~/.config/chromium Default/Preferences
    @chromium --noerrdialogs --kiosk [URL] --incognito --disable-translate
    

Epiphany Browser

  1. Install Raspbian Debian Wheezy

  2. sudo raspi-config

    • Update the Raspi config tool (Advanced Options)
    • Enable SSH
    • Disable overscan. (Advanced Options)
    • Change your boot to desktop environment.
  3. Now start the terminal and update your system:

    sudo apt-get update
    sudo apt-get upgrade
    
  4. Install Epiphany (browser), x11 server utils, xautomation and unclutter (hide the cursor from the screen)

    sudo apt-get install epiphany-browser x11-xserver-utils xautomation unclutter
    
  5. Save this shell script: /home/pi/fullscreen.sh

    nano /home/pi/fullscreen.sh
    

    Fullscreen shell script should look like this: (example replace [URL] http://github.com/elalemanyo/raspberry-pi-kiosk-screen)

    sudo -u pi epiphany-browser -a -i --profile ~/.config [URL] --display=:0 &
    sleep 15s;
    xte "key F11" -x:0
    

    Change file mode:

    sudo chmod 755 /home/pi/fullscreen.sh
    
  6. Edit the autostart file to run the script:

    sudo nano ~/.config/lxsession/LXDE-pi/autostart
    

    The autostart files needs to look like this:

    @xset s off
    @xset -dpms
    @xset s noblank
    @/home/pi/fullscreen.sh
    
  7. Reload the page (if needed) every hour:

    crontab -e
    

    Add this:

    0 */1 * * * xte -x :0 "key F5"
    

Midori Browser

  1. Install Raspbian Debian Wheezy

  2. sudo raspi-config

    • Update the Raspi config tool (Advanced Options)
    • Enable SSH
    • Disable overscan. (Advanced Options)
  3. Now start the terminal and update your system:

    sudo apt-get update
    sudo apt-get upgrade
    
  4. Install Midori (browser), x11 server utils, matchbox and unclutter (hide the cursor from the screen)

    sudo apt-get install midori x11-xserver-utils matchbox unclutter
    
  5. Save this shell script: /home/pi/fullscreen.sh

    nano /home/pi/fullscreen.sh
    

    Fullscreen shell script should look like this:

    unclutter &
    matchbox-window-manager &
    midori -e Fullscreen -a [URL]
    

    Change file mode:

    sudo chmod 755 /home/pi/fullscreen.sh
    
  6. Edit the autostart file to run the script:

    sudo nano ~/.config/lxsession/LXDE-pi/autostart
    

    The autostart files needs to look like this:

    @xset s off
    @xset -dpms
    @xset s noblank
    @/home/pi/fullscreen.sh
    
  7. Auto StartX (Run LXDE):

    sudo nano /etc/rc.local
    

    Scroll to the bottom and add the following above exit 0:

    su -l pi -c startx
    

Firefox (Iceweasel)

  1. Install Raspbian Debian Wheezy

  2. sudo raspi-config

    • Update the Raspi config tool (Advanced Options)
    • Enable SSH
    • Disable overscan (Advanced Options)
    • Memory Split (Advanced Options)
  3. Now start the terminal and update your system:

    sudo apt-get update
    sudo apt-get upgrade
    
  4. Install Firefox (Iceweasel), Gnash, x11 server utils, matchbox, xautomation and unclutter (hide the cursor from the screen)

    sudo apt-get install iceweasel gnash gnash-common browser-plugin-gnash x11-xserver-utils matchbox xautomation unclutter
    
  5. Save this shell script: /home/pi/fullscreen.sh

    nano /home/pi/fullscreen.sh
    

    Fullscreen shell script should look like this:

    unclutter &
    matchbox-window-manager &
    iceweasel http://www.domradio.de/foyer/wrapper --display=:0 &
    sleep 15s;
    xte "key F11" -x:0
    

    Change file mode:

    sudo chmod 755 /home/pi/fullscreen.sh
    
  6. Edit the autostart file to run the script:

    sudo nano ~/.config/lxsession/LXDE-pi/autostart
    

    The autostart files needs to look like this:

    @xset s off
    @xset -dpms
    @xset s noblank
    @/home/pi/fullscreen.sh
    
  7. Auto StartX (Run LXDE):

    sudo nano /etc/rc.local
    

    Scroll to the bottom and add the following above exit 0:

    su -l pi -c startx
    
  8. Reload the page (if needed) every hour:

    crontab -e
    

    Add this:

    0 */1 * * * xte -x :0 "key F5"
    

Sources

raspberry-pi-kiosk-screen's People

Contributors

export-mike avatar

Watchers

James Cloos avatar Tomas Mihalicka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.