These instructions are for setup of the image to be used in a Raspberry Pi 3 attached to the official 7 inch touch screen monitor.
It is possible that not all instructions are applicable, but are noted here in case they are needed.
Burn Image to SD Card
Use
Win32DiskImager to load the image 2016-05-27-raspbian-jessie.img onto an 8GB or larger SD Card.
Insert the card into the Pi, connect a network cable and power up the device.
Connect to the Pi using PuTTY
Download PuTTY.
It can be found here at the time of this writing
PuTTY is used to connect remotely (my preference) to the Raspberry Pi terminal window. PuTTY is enabled by default in the loaded image from above.
You will need to know the IP address of the device in order in initiate the connection.
To get the IP address hover over (touch the screen - causing a dropdown to display - remove finger) the network icon in the upper corner. A gray popup will display the connection address.
Launch PuTTY and initiate a session on the default port with directed to the ip address of the device.
The default username is "pi"
and the default password is "raspberry"
Install Chromium Browser
Connect using PuTTY (or use a terminal session) and complete the following steps:
- Edit the application source list
- type: "sudo nano /etc/apt/sources.list" - NOTE: sudo is needed to run with elevated priveleges
- Add the following to to bottom of the file and save:
deb http://ppa.launchpad.net/canonical-chromium-builds/stage/ubuntu vivid main
#deb-src http://ppa.launchpad.net/canonical-chromium-builds/stage/ubuntu vivid main
- Add public key for repository by typing:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DB69B232436DAC4B50BDC59E4E1B983C5B393194
- Update the packages so the installation will work:
- type: "sudo apt update"
- type: "sudo apt install chromium-browser"
- Launch Chromium from the start menu -- Internet -- Chromium Web Browser to verify it is working
Install "unclutter" - hides the cursor when not active
Connect using PuTTY (or use a terminal session) to support command prompt actions.
- type: "sudo apt install unclutter"
Rotate Screen (if needed)
You can do this by booting up your Pi, going into the Raspberry menu, picking "Accessories" and then "Terminal" (or use PuTTY).
- In Terminal, type "sudo nano /boot/config.txt" - NOTE: sudo is needed to run with elevated priveleges
- Add the line "lcd_rotate=2" to the top of the file. - NOTE: THERE ARE NO SPACES ON EITHER SIDE OF THE "=".
- Press CTRL+X.
- Then Y.
- Then Enter.
- And reboot! (type in terminal "sudo reboot")
Update / Upgrade the image to the latest release
Connect using PuTTY (or use a terminal session) and type: sudo raspi-config.
- In Terminal, type "sudo apt update" (only needed if you did not already do this) - NOTE: sudo is needed to run with elevated priveleges
- In Terminal, type "sudo apt upgrade"
- hit 'y' when upgrade process asks if you want to continue. - this process will take a while
- Once done type "sudo reboot" to reboot the device
Initial Setup/Localization
Connect using PuTTY (or use a terminal session) and type: sudo raspi-config.
There are several configuration options available. - NOTE: With the May, 2016 Jessie image it is not necessary to "expand the file system"
- In Terminal, type "sudo raspi-config" - NOTE: sudo is needed to run with elevated priveleges
- Change User Password to "dothedew" - NOTE you will need to use this password for future PuTTY connections
- Enter Internationalisation Options
- Change Locale: use down arrow and spacebar to change the selection - remove the en_GB.... and add en_US.UTF-8 UTF-8
use tab to highlight "OK" and press "Enter"
- Set the defaults local for hte system environment to en_US.UTF-8 (arrow key / tab / enter)
- Go back into the Internationalisation Options
- Select "Change Timezone
- Select "US"
- Select the correct timezone
- Go back into the Internationalisation Options
- NOTE: I did not need to do this step on my initial setup
- If pressing shift-3 in the PuTTY window does not type "#" then Select "Change Keyboard Layout".
- Go through the menus setting it to the defaults for a US keyboard.
- Go back into the Internationalisation Options
- Select Change Wi-fi County
- Set to "US"
- Reboot when it requests
Disable Screen Blanking / Screen Saver
Chromium to start in Kiosk Mode - Define start page
Connect using PuTTY (or use a terminal session) and type:
"sudo nano home/pi/.config/lxsession/LXDE-pi/autostart"
- NOTE: sudo is needed to run under elevated priveleges
The autostart file for X moved with the release of Jessie.
Wheezy was located at /etc/xdg/lxsession/LXDE-pi/autostart If using Wheezy, you will want to modify the file location
- Modify this file by commenting out "@xscreensaver -no-splash"
Add the following 5 lines to the end:
- @xset s off
- @xset -dpms
- @xset noblank
- @chromium-browser --disable-session-crashed-bubble --disable-infobars --kiosk http://www.PageToDisplay.com
NOTE THIS IS THE LINE THAT HOLDS THE WEB ADDRESSS YOU WANT IT TO DISPLAY - See my post from 9/21/2016
- Save changes to this file and reboot ("sudo reboot") to test that it is working
Install Real VNC for remote access
These instructions can be found here:
https://www.realvnc.com/docs/raspberry-pi.html#vnc-and-raspberry-pi
Connect using PuTTY (or use a terminal session) and type the following lines.
- curl -L -o VNC.tar.gz https://www.realvnc.com/download/binary/latest/debian/arm/
- tar xvf VNC.tar.gz
- sudo dpkg -i VNC-Server-5.3.2-Linux-ARM.deb (modify version if needed)
NOTE: make sure to copy the name with the correct CaSe
- sudo vnclicense -add XXXXX-XXXXX-XXXXX-XXXXX
- if you do not have a key you may need to buy or register a new (free for home use) one
- replace above with your license key
- sudo vncpasswd -service
enter the password "dothedew"
- Set for auto startup:
- Debian 8 Jessie: sudo systemctl enable vncserver-x11-serviced.service
- Debian 7 Wheezy sudo update-rc.d vncserver-x11-serviced defaults
- sudo reboot - NOTE VNC will not be available until after the reboot (it will start as a service from step 6)
Customize the Look and Feel
Insert a USB storage device containing the image you want to use on the Desktop background (if you want to use something other than the RPi default images.
Connect using PuTTY (or use a terminal session with attached keyboard and mouse) to support command prompt actions
NOTE to find the ip address, touch the network icon and release. After the menu disappears a gray popup will display with the connected address (or you can type "ifconfig" in the terminal window).
Connect to device with Real VNC Viewer if you do not have a keyboard and mouse attached.
- Copy the image file from USB attched storage to the device
- Use PuTTY or terminal window and type:
- On Jessie: type ls /media/pi to discover the USB DEVICE NAME (On Wheezy use: ls /media)
- On Jessie: sudo cp /media/pi/<UNIQUE USB DEVICE NAME>/<IMAGE NAME.png(.jpg,etc...)> /usr/share/raspberrypi-artwork (On Wheezy use /media not /media/pi)
Initiate VNC Connection or use a mouse and keyboard the the next steps
- Set the background image
- right click in the desktop
- Select "Desktop Properties"
- Click the browse button to pick a different image. It will open to the location we copied it to. (pick the file that looks right on the display you are using)
- Hide the Trash from the desktop
- right click on the desktop
- Select "Desktop Preferences"
- Select the Desktop Icons Tab and deselect Show "Trash Can" folder on the desktop
- Auto hide menu at the top
- right click on the task bar and select panel settings form the context menu
- Click the Advanced tab
- check "Minimize panel when not in use" (leave setting as 2 pixels)
ALL DONE !
Connect using PuTTY (or use a terminal session) to support command prompt actions.
- type: "sudo reboot" verify it is working correctly.