Modify /etc/rc.local , the startx does exactly that starts X windows to give you the login page
setTerm prevents the monitor from going blank
1 2 3 |
su -l pi -c startx /usr/bin/setterm -blank 0 -powerdown off |
if lightdm is controlling the screen then set it of
/etc/lightdm/lightdm.conf
1 2 |
# don't sleep the screen xserver-command=X -s 0 dpms |
Set the Monitor and the pi not to power down or blank the screen
/etc/kbd/config
1 2 |
POWERDOWN_TIME=0 BLANK_TIME=0 |
Set inittab to run the terminal and bypass the login
/etc/inittab
1 |
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1 |
Install unclutter to get rid of the mouse
1 |
sudo apt-get install unclutter |
If your are using LXDE tell LXDE to not the blank the screen and not to turn on a screen saver, and to run midori in full screen kiosk mode and point it to the web service you want.
you also have to install x11-server-utils this allows you to control the screen saver functionality
1 |
sudo apt-get install x11-xserver-utils |
modify or create
/etc/xdg/lxsession/LXDE/autostart
1 2 3 4 |
@xset s off @xset -dpms @xset s noblank @midori -e Fullscreen -a http://www.yourwebsitehere.com |