====== Creating an Information Radiator on Raspberry Pi ====== ===== How To ===== * Flash the Raspbian with Desktop Image (It needs a UI) - https://www.raspberrypi.org/downloads/raspbian/ - [[toolsandtechnologies:raspberrypiflash| Flash OS on Raspberry Pi]] * Ensure you setup correctly - change password etc * Now change the Boot Options through raspi-config and make it so that it auto logins in to the UI * Ensure ssh is enabled * Don't forget to add the scotty user : [[toolsandtechnologies:raspberrypicreateuser| Create New User (scotty) on Raspberry Pi]] * Once you can ssh to the pi * sudo nano /boot/config.txt * Add the following lines to the top of the file : * # Set sdtv mode to PAL (as used in Europe) sdtv_mode=2 # Force the monitor to HDMI mode so that sound will be sent over HDMI cable hdmi_drive=2 # Set monitor mode to DMT hdmi_group=2 * If you wish to set a static IP on the PI follow this guide : [[toolsandtechnologies:raspberrypiIP| Static IP on Raspberry Pi]] * Now you will want to be the PI user as the is the autologin user so ssh to the pi as the pi user 'ssh pi@X.X.X.X' * You need to install chromium browser (it may come pre installed) * sudo apt-get update * sudo apt-get install chromium-browser * Next we need to create a file which runs every time the PI reboots * cd /home/pi/.config/autostart * If none of these directories exists, create them : 'mkdir -p /home/pi/.config/autostart' * Create the autostart file and fill with the contents we desire * nano /home/pi/.config/autostart/autoStart.desktop * Put the following in - edit based on what you want to auto boot : * [Desktop Entry] Type=Application Exec=/usr/bin/chromium-browser --noerrdialogs --disable-session-crashed-bubble --disable-infobars --kiosk https://docs.google.com/a/errigal.com/presentation/d/1-GtE3_RE1BXxuVUK8HyYqbNpXfZmd0SWCtx_ASQHa2U/pub?start=true&loop=true&delayms=15000 Hidden=false X-GNOME-Autostart-enabled=true Name[en_US]=AutoChromium Name=AutoChromium Comment=Start Chromium when GNOME starts * save and exit * Reboot the pi and it should load chromium by default - you may need to log in to whatever website you are going to * Now you want to make the mouse disappear and only appear if you move it * sudo apt-get install unclutter * sudo nano /etc/xdg/lxsession/LXDE/autostart * Add : * @unclutter -idle 0.1 -root * You will also want the PI screen to stay on even with no movement * 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 * save and exit * reboot the pi and everything should work - hopefully