This is what we did to setup a few dashboards at Improbable
Chrome on kiosk mode: http://raspberrypi.stackexchange.com/questions/40631/setting-up-a-kiosk-with-chromium
- Raspberry Pi
- Dashing Service
- Wifi stick (optional)
We'll install raspbian into our SD card. You can follow instructions from here http://www.raspberrypi.org/downloads
sudo raspi-config
This will sync the time time with ubuntu ntp server
sudo apt-get install ntpdate
sudo ntpdate -u ntp.ubuntu.com
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo rpi-update
sudo apt-get install matchbox x11-xserver-utils ttf-mscorefonts-installer xwit sqlite3 libnss3
Find the TV supported modes, here I search for 1920x1080 60hz. That is hdmi_mode=16
on the hdmi_group=1
Select the group depending on the results of the supported modes
tvservice -d edid
edidparser edid
Add this to the /boot/config.txt
file
hdmi_group=1 # CEA=1, DMT=2
hdmi_mode=16
disable_overscan=1
Also we want to disable overscan to prevent black lines on the edges of the screen. This may produce that your images gets cropped. The best solution is disable overscan in the tv. Check the display menu options (it may be called "just scan", "screen fit", "HD size", "full pixel", "unscaled", "dot by dot", "native" or "1:1)
Via command line or just use the GUI
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="SSID"
psk="password"
}
sudo ifdown wlan0
sudo ifup wlan
wget http://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/libg/libgcrypt11/libgcrypt11_1.5.3-5_armhf.deb
sudo dpkg -i libgcrypt11_1.5.3-5_armhf.deb
https://launchpad.net/ubuntu/vivid/armhf/chromium-browser/
# Download chromium package
wget http://launchpadlibrarian.net/234969703/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
https://launchpad.net/ubuntu/vivid/armhf/chromium-codecs-ffmpeg-extra/
# Download ffmpeg extra package
wget http://launchpadlibrarian.net/234969705/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
# Install Packages
sudo dpkg -i chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb \
chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
nano .config/lxsession/LXDE-pi/autostart
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xset s off
@xset -dpms
@xset s noblank
@chromium-browser --kiosk --disable-session-crashed-bubble --disable-infobars https://www.google.com #use full screen mode instead of kios if needed with --start-fullscreen
sudo nano /etc/lightdm/lightdm.conf
# don't sleep the screen
xserver-command=X -s 0 dpms
# Install x11server
apt-get install x11-xserver
# Select a vnc password
x11vnc -storepasswd
# Add xvncserver to autostart
nano /home/pi/.config/autostart/x11vnc.desktop
# With the following content
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=X11VNC
Exec=x11vnc -forever -usepw -display :0 -ultrafilexfer
StartupNotify=false
Terminal=false
Hidden=false
# Reboot and try it out. TighVNC client works great.
sudo reboot
I wanted to be able to turn on and off the tv using the CEC standard via HDMI, but the tv we bought wasn't CEC compilant :(
One alternative was to turn of the HDMI signal with a cronjob and set the tv to auto turn off after a few minutes without signal.
But the power coming from the USB port stops flowing when the tv is off so I'd prefer to shut down the PI from a cronjob.
Add it to the root cronjob service running sudo crontab -e
and adding
0 20 * * 1,2,3,4,5 /sbin/shutdown -h now
Change hostname and root password via sudo raspi-config
sudo useradd foo
Create user foo
passwd foo
Change password for user foo
adduser foo sudo
Adds user to sudo group
- http://alexba.in/blog/2013/01/04/raspberrypi-quickstart/
- https://gist.github.com/petehamilton/5705374
- http://www.fusonic.net/en/blog/2013/07/31/diy-info-screen-using-raspberry-pi-dashing/
- http://blogs.wcode.org/2013/09/howto-boot-your-raspberry-pi-into-a-fullscreen-browser
- https://github.com/MobilityLab/TransitScreen/wiki/Raspberry-Pi
- http://nyxi.eu/blog/2013/04/15/raspbian-libcec/
- http://weblogs.asp.net/bleroy/archive/2013/04/10/getting-your-raspberry-pi-to-output-the-right-resolution.aspx
- http://elinux.org/R-Pi_Troubleshooting
- https://github.com/ouralien/raspberry-pi-chromium-kiosk-mode