Raspberry Pi as Digital Signage

I’ve setup some digital signage using a very simple django app and a webpage that displays rotating advertisements for upcoming events as well as news headlines and the current time. We’re switching over to running the displays over some Raspberry Pis and this is how I configured them:

  1. Set to boot into desktop

     sudo raspi-config
  2. Setup timezone

     sudo dpkg-reconfigure tzdata
  3. Setup to boot to fullscreen browser

    Disable screen sleep – so the screen stays on

     $ sudo nano /etc/lightdm/lightdm.conf
     # add the following lines to the [SeatDefaults] section
     # don't sleep the screen
     xserver-command=X -s 0 dpms

    Hide cursor on inactivity

     $ sudo apt-get install unclutter

    Configure LXDE to start the Midori browser on login

     $ sudo nano /etc/xdg/lxsession/LXDE/autostart 
     # comment everything and add the following lines
     @xset s off
     @xset -dpms
     @xset s noblank
     @midori -e Fullscreen -a <Website to open>
  4. Change password for default user

  5. Force Resolution

    1. Get the list of what’s supported by your monitor:

      tvservice -d edid edidparser edid

    2. Find the mode that you want in the resulting list. The mode number is the one between parentheses.

    3. Edit the config file:

      sudo nano /boot/config.txt

      hdmi_group=2 hdmi_mode=

    4. Reboot:

      sudo reboot

Installing from github without git

You can install python packages from github (or any Git, Mercurial, Subversion and Bazaar repo) if you have git (or other vcs command) available:

pip install git+git://<user>/<repo>

You can also just install from a remote archive file which github will make for you!

pip install --upgrade<user>/<repo>/tarball/master

Fresh Windows Install

Brand new desktop at work (an i5 with 8g ram!; finally a computer at work that’s better than home… time to upgrade) means time to reinstall all the programs I use all the time.

I’ll keep an updated list here.

Reincarnated Blog

The new/old/revamped is back and better than ever.

Previous posts