Installing Raspbian on Raspberry Pi

**These directions were done using Linux Mint. They can be done in Windows and Mac but will need to research equivalent commands.

  1. Make sure current SD card is clean and current partitions deleted. Format it using Gparted or command line if needed.
  2. Download latest Raspbian OS .zip file from https://www.raspberrypi.org/downloads/raspbian/
  3. Transfer the image onto your SD card.

You will need to extract the files from the .zip file you downloaded and then use Etcher SD Card Image Utility to burn the image onto your SD card.

Go to https://www.raspberrypi.org/learning/software-guide/quickstart/ and follow the instructions.

A summary of the link above:

$ chmod a+x Etcher-linux-x64.AppImage
  • Execute:
$ ./Etcher-linux-x64.AppImage

Etcher will automatically set the boot to Desktop.

Windows has an equivalent called Win32DiskImager. See here for Windows instructions: https://www.raspberrypi.org/documentation/installation/installing-images/windows.md

  1. Remove SD card and insert into Raspberry Pi. Connect a monitor to the Pi and then plug in the power to turn it on. You will need to connect the keyboard as well. If the keyboard is on when you plug in the power, you may need to turn it off and then on to get it to work.
  1. The Raspbian OS install will take some time. Once it finishes, it will take you to the OS desktop. Open the terminal from the top panel.
  1. Open Raspbian Configuration using Terminal
$ sudo raspi-config

To navigate, use the up/down arrow keys. When finished, use the left/right arrow keys. To select, press ENTER.

  • Press ENTER when Expand Filesystem is highlighted.

Ensures that all of the SD card storage is available to the OS.
Need to reboot for changes to take effect.

  • Change User Password

This will apply to default user ‘pi’

  • Internationalisation Options

Change Timezone

Change Keyboard

Change Language

    • Advanced Options

6.1 Overscan (will allow you to expand the screen to encompass monitor size. Only needed if you see black bars top, right, bottom, and/or left).

You can also set the overscan from the terminal by typing:

$ sudo nano /boot/config.txt

nano is the name of the terminal text editor

Information on how to use nano can be found here: http://www.howtogeek.com/howto/42980/the-beginners-guide-to-nano-the-linux-command-line-text-editor/

6.2 Change Hostname

6.3 SSH (enable)

  • Use right arrow to navigate to Finish and hit ENTER

Description of some of the menu items can be found here: http://www.howtogeek.com/138281/the-htg-guide-to-getting-started-with-raspberry-pi/2/

  1. Make sure Raspbian is updated with latest drivers:
$ sudo apt-get update
$ sudo apt-get upgrade
  1. Set up wireless connection to your Wi-Fi network
  • Open wpa_supplicant.conf file to add the username and password information if not already there:
$ sudo nano /etc/wpa-supplicant/wpa_supplicant.conf
  • Type in your necessary network information.

Press F3 to save your changes.

Press ENTER to save the changes to current file.

Press CTRL-x to exit from nano editor.

  • Reboot to have changes take effect:
$ sudo reboot

Instructions here: https://thepihut.com/blogs/raspberry-pi-tutorials/16018016-how-to-setup-wifi-on-the-raspberry-pi-raspbian

  • Check that changes were saved:
$ sudo ifconfig

Look for wlan0. This is the wireless network information. If there is an IP address listed, then it worked. Write down the IP address to set up SSH in step 9 (if needed).

  1. How to remote into the Pi from your personal computer.

SSH should be enabled from step 6.3. If not, follow steps in step 6 to enable it.

  • On personal computer, open terminal and type:
$ ssh pi@127.0.0.1

format is: $ ssh username@ip_address

It will prompt you for password to username ‘pi’

  1. Disable screen-saver.

Install xscreensaver.

 $ sudo apt-get install xscreensaver
 $ sudo reboot

Navigate to the ‘Start’ menu and click Preferences > Screensaver.

In the drop down, you can select ‘Disable Screensaver’.

  1. Install Raspbian version of Firefox called Iceweasel
$ sudo apt-get install iceweasel
  1. Open Firefox from ‘Start’ menu > Internet
  • Navigate to the website you want to display
  • Bookmark and set as home page

More info here:

https://support.mozilla.org/en-US/kb/what-does-your-connection-is-not-secure-mean#w_what-to-do-if-you-see-this-error

  1. Make browser full-screen

https://support.mozilla.org/en-US/kb/how-make-firefox-and-websites-go-full-screen

Advertisements