irpepper / Smart-Mirror

Monitor behind a one way mirror with a GUI run on a Raspberry Pi
2 stars 1 forks source link

Boot Raspberry Pi to Fullscreen Browser #13

Closed charlesamacon closed 8 years ago

charlesamacon commented 8 years ago

This script also needs to launch XAMP or whatever server application we use. Here's a good way of doing it:

http://blogs.wcode.org/2013/09/howto-boot-your-raspberry-pi-into-a-fullscreen-browser-kiosk/

irpepper commented 8 years ago

Not 100% on this but I think we can just add: chromium-browser --kiosk www.google.com to .bashrc and it will do what we want.

charlesamacon commented 8 years ago

Working on this right now. Looks like chromium is not a valid option at the moment

charlesamacon commented 8 years ago

Ok, so chromium isn't available (nor is chromium-browser). Iceweasel is really slow and I'm having trouble running it in fullscreen from the command line. Midori and Luakit aren't running the CSS3 animations. Fun!

On a side note, I got it to display in profile.

I'm going to have to mull this one over for a bit.

charlesamacon commented 8 years ago

Ok, switched the browser to kweb, because it has a kiosk mode. It's running the CSS3 animations (for the most part, I need to rewrite the ones for the welcome pages). Animations are a bit choppy and I'm still trying to get it to launch at boot. Progress.

charlesamacon commented 8 years ago

Figured it out! This all has to happen after we've set up a LAMP server on the pi.

Create a new file: /home/pi/.xsession

#!/bin/bash kweb -KJEHCUA+-zbhrqfpoklgtjneduwxy http://localhost

This boots DIRECTLY to the browser...and there's no way to get out of it. Use CTRL-ALT-F1 to get back to terminal, and CTRL-ALT-F7 (from the terminal) to get back to X.