Raspberry Pi workshop Summary

Courtesy @aman who meticulously compiled this, here’s the details of what happened at the Raspberry Pi workshop conducted on 30/11/2019. You can post your queries below.

Raspberry Pi - Workshop

30th November 2019

TOOLS

  1. Raspbian Buster zip file - to be flashed in Raspberry Pi
  2. Balena Etcher - used to flash zip file in the memory card
  3. Putty - to access Linux Terminal
  4. Bonjour Setup
  5. VNC Viewer - GUI

The terminal is faster than GUI

Laptop and Raspberry should be connected to the same network

INSTALLATION

  • Connect SD Card to PC.

  • Remove all partitions from SD Card using Windows Partition manager

  • Format the SD card

  • Now use BalenaEtcher to flash Raspian Buster zip to SD Card

  • After flashing is done, open ‘boot’ partition of SD Card and create a ‘ssh’ file without any extension

  • Create one file ‘wpa_supplicant.conf’ with some text (screenshot 24), in ‘boot’ partition.

image
image
Now insert the SD Card into the Raspberry Pi.

Connect Power to Raspberry Pi.

Open Putty→ Hostname: raspberrypi.local→ click ‘open’ → click ‘Yes’

Login as: pi Password: raspberry (password won’t show up)

image

image

Putty Commands

sudo apt-get update && upgrade
image
image

sudo raspi-config (blue screen appears)

Now select ‘Interfacing Options’
image
Select ‘ VNC ’ and then enable it.

sudo ifconfig

Note down your IP address.

Now open ‘ VNC Connect’ app

VNC Connect

image
image
image

Commands

List of commands: Linux commands - Raspberry Pi Documentation

mkdir

You can use mkdir to create a new directory, e.g. mkdir newDir would create the directory newDir in the present working directory.

rmdir
To remove empty directories, use rmdir. So, for example, rmdir oldDir will remove the directory oldDir only if it is empty.
image

Installing arduino

Command:

sudo apt-get install arduino
image

To Extract

cd Downloads

tar _xvf arduino_file_name_with_extension.tar.xz

To set Display Resolution in VNC Viewer

sudo raspi-config

  • Select

  • ‘advanced’

  • ‘Resolution’

  • ‘Ok’

  • ‘Reboot’

2 Likes