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
- Raspbian Buster zip file - to be flashed in Raspberry Pi
- Balena Etcher - used to flash zip file in the memory card
- Putty - to access Linux Terminal
- Bonjour Setup
- 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.
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)
Putty Commands
sudo apt-get update && upgrade
sudo raspi-config (blue screen appears)
Now select ‘Interfacing Options’
Select ‘ VNC ’ and then enable it.
sudo ifconfig
Note down your IP address.
Now open ‘ VNC Connect’ app
VNC Connect
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.
Installing arduino
Command:
sudo apt-get install arduino
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’