Install NOOBS and Raspbian

Download

  1. Using a computer with an SD card reader, visit the [Downloads-http://www.raspberrypi.org/downloads/] page.
  2. Click on the Download ZIP button under \’NOOBS (offline and network install)\’, and select a folder to save it to.
  3. Extract the files from the zip.

Format your SD card

It is best to format your SD card before copying the NOOBS files onto it. To do this:

  1. Visit the [SD Association\’s website-http://www.sdcard.org/] and download [SD Formatter 4.0-https://www.sdcard.org/downloads/formatter_4/] for either Windows or Mac.
  2. Follow the instructions to install the software.
  3. Insert your SD card into the computer or laptop\’s SD card reader and make a note of the drive letter allocated to it, e.g. G:/
  4. In SD Formatter, select the drive letter for your SD card and format it.

Drag and drop NOOBS files

  1. Once your SD card has been formatted, drag all the files in the extracted NOOBS folder and drop them onto the SD card drive.
  2. The necessary files will then be transferred to your SD card.
  3. When this process has finished, safely remove the SD card and insert it into your Raspberry Pi.

First boot

  1. Plug in your keyboard, mouse and monitor cables.
  2. Now plug in the USB power cable to your Pi.
  3. Your Raspberry Pi will boot, and a window will appear with a list of different operating systems that you can install. We recommend that you use Raspbian – tick the box next to Raspbian and click on Install.
  4. Raspbian will then run through its installation process. Note this can take a while.
  5. When the install process has completed, the Raspberry Pi configuration menu (raspi-config) will load. Here you are able to set the time and date for your region and enable a Raspberry Pi camera board, or even create users. You can exit this menu by using Tab on your keyboard to move to Finish.

Usage

You will be shown raspi-config on first booting into Raspbian. To open the configuration tool after this, simply run the following from the command line: sudo raspi-config The sudo is required because you will be changing files that you do not own as the pi user. You should see a blue screen with options in a grey box in the center.

What raspi-config does

Generally speaking, raspi-config aims to provide the functionality to make the most common configuration changes. This may result in automated edits to /boot/config.txt and various standard Linux configuration files. Some options require a reboot to take effect. If you changed any of those, raspi-config will ask if you wish to reboot now when you select the <Finish> button.

The following are the steps taken to configure the Opsview monitoring Pi on first boot:

  1. Select option 2 and set the user (pi) password to its Passpack password.
  2. In order to automatically start X, the GUI, select option 3 and select boot to desktop
  3. Select option 8, and then the Hostname option to set the device hostname
  4. Go back into option 8 and enable SSH
  5. Select Finish in the main menu and reboot the Pi

Edit screen resolution

You can change a few settings in a configuration file that will remove the black bars “overscan” so you can enjoy your Raspberry Pi fullscreen.

To change the settings, we need to change a few things in /boot/config.txt. From the Linux command line interface, enter:

sudo vi /boot/config.txt

This will bring up the contents of the config.txt file, where you are free to edit it. As the instructions say, find the line which says \#disable_overscan=1 and uncomment it (i.e. remove the \#).

Normally this should be enough, but if you used NOOBS (New Out Of Box Software) then there are a few more things you need to change.

As you look further down the page, there may be another section with overscan and borders, and yet another disable_overscan=0, all of these which override our disable_overscan=1 above.

Therefore, you\’ll need to uncomment (i.e. remove the \# before each line) that mentions overscan (there are four), and lastly change disable_overscan=0 at the bottom to disable_overscan=1 and make sure it isn’t commented out.

Here is that last block of code as it should look after our changes while using the 50“ TV (note your overscan number values may be different if using a different monitor):

overscan_left=16
overscan_right=16
overscan_top=16
overscan_bottom=10 
disable_overscan=1

When you are finished, save and exit the file and reboot.

Taken from https://www.webtechgadgetry.com/make-raspberry-pi-use-full-resolution-monitor/

Set static IP

You will need to edit the interfaces file to set a static IP address on the Pi, which will make it easier to RDP into.

  1. Enter the following command: sudo vi /etc/network/interfaces
  2. Then, change the line iface eth0 inet dhcp to iface eth0 inet static
  3. Add the following lines (substitute in you correct IP information):
    address 192.168.1.50
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255 
    gateway 192.168.1.1
    nameserver 192.168.1.2
  4. When you are finished, save and exit the file and reboot.

Setup Remote Access (VNC)

:!: The Pi must be on setup on the network first.

This guide assumes that you are using the CLI and is taken from https://www.realvnc.com/docs/raspberry-pi.html.

  1. Install RealVNC (or update it if it is already installed).
    sudo apt-get update 
    sudo apt-get install realvnc-vnc-server
  2. Use the raspi-config menu to enable VNC.
    sudo raspi-config
    1. Select option 5 “Interfacing Options” > “VNC” and enable the VNC Server.
  1. On the computer you are remoting in from, download VNC Viewer.
  2. Run VNC Viewer and connect to the Pi's IP address.
  3. If the screen resolution is off:
    1. Open the Properties menu (hover your mouse over the drop down menu at the center of the top of the window or right click on the top left corner of the window)
    2. Under the Options tab set the Scaling option to Scale to fit window.

Configure Chromium Web Browser

First, make sure that Raspbian is up to date.

sudo apt-get update
sudo apt-get upgrade

Configure the browser to start in full screen mode and automatically log into the Pandora public network map on bootup. Edit the LXDE-pi autostart file:

nano ~/.config/lxsession/LXDE-pi/autostart

and insert the following line of code:

@chromium-browser --incognito --kiosk http://<Pandora server IP address, e.g. 172.17.5.24>/pandora_console/operation/visual_console/public_console.php?hash=6403090d6223f6ba913980be9b322580&id_layout=4&id_user=admin&refr=15

Reboot and verify that it loads the map correctly.

Hide Cursor on Inactivity

Install Unclutter, the service that will hide the cursor after a period of inactivity.

sudo apt-get install unclutter

Once that is installed, add the service to the autostart file.

nano .config/lxsession/LXDE-pi/autostart

Add the following line (make sure it is above the line that calls browser-fullscreen.sh).

@unclutter

Disable screen timeout

In order to disable screen timeout run the command: sudo apt-get install xscreensaver to install xscreensaver. Once it is installed, you will have a “screensaver” option under preferences in your start menu. Here you can change the mode and disable the blank screen.

Now your Pi should be setup. Reboot it and verify that everything runs properly.

Create a script to remotely reboot the Pi from Windows

Download Putty and Plink and save putty.exe and plink.exe to C:\Putty. Once those are in place, create a new batch file with the following code:

C:\Putty\plink -ssh pi@[ip address] -pw [password] sudo reboot

Save the .bat file and verify it works.

Modified from: http://larsonm.com/index.php/2013/remotely-reboot-your-raspberry-pi-from-a-windows-desktop-shortcut-using-plink-putty/

  • other/raspberry_pi_pandora_map.txt
  • Last modified: 2019/03/15 15:03
  • by ericclaus