User Tools

Site Tools


toolsandtechnologies:raspberrypi_informationradiator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
toolsandtechnologies:raspberrypi_informationradiator [2017/08/17 10:10] 1carew1toolsandtechnologies:raspberrypi_informationradiator [2021/06/25 10:09] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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 :
 +  * <code># 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</code>
 +  * 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 :
 +  * <code>[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</code>
 +  * 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 :
 +  * <code>@unclutter -idle 0.1 -root</code>
 +  * 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
 +  * <code># don't sleep the screen
 +xserver-command=X -s 0 dpms</code>
 +  * save and exit
 +  * reboot the pi and everything should work - hopefully
 +