Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setup Raspberry Pi Wallboard

Pi Wallboard

RasPi Installation

Debian Squeeze

Setup a static IP replacing x with numbers.

sudo nano /etc/network/interfaces

Enable SSH - This is important! The option is in the advanced menu here.

Also configure hostname from here

sudo raspi-config

Create the following scripts:

Type in terminal:

nano screenon.sh

#!/bin/sh
export DISPLAY=:0
tvservice -p
fbset -depth 8; fbset -depth 16; xrefresh

Type in terminal:

nano screenoff.sh

#!/bin/sh
tvservice --off > /dev/null

Edit the following files so they match the configurations below:

Type in terminal:

sudo nano /etc/xdg/lxsession/LXDE/autostart

@xset s off
@xset -dpms
@xset s noblank
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@chromium --kiosk --incognito http://someurl/

Type in terminal:

crontab -e

# m h  dom mon dow   command
00 18 * * 1-5 sh ~/screenoff.sh
00 08 * * 1-5 sh ~/screenon.sh

Reboot the Pi.

sudo reboot

Other Useful Tools

View the pi screen remotely, use VNC on another machine to connect to the Pi.

sudo apt-get install x11vnc
x11vnc -display :0 -forever

Setup DateTime properly:

sudo dpkg-reconfigure tzdata

Fixes problem with xrefresh command not working:

sudo apt-get install x11-xserver-utils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.