for this turtorial at least you have understand the basic of SSH and basic command for unix or Linux
requirement :
- Raspberry pi duh 😂
- SD Card 8/16/32/64 Gb recomended 16 Gb
- An PC whether mac, windows or linux
- Raspbian OS Use Lite Version
- Software for flashing pick one
- Notepad++
- Putty or GNU bash for windows
- Bonjour for ssh through USB
Flashing the OS can be done through GUI like etcher / rufus or using CLI
- With Etcher
- Put your SD card to your computer
- Open Etcher
- Select the iso/img of raspbian os you downloaded before
- Select the SD card
- Click Flash
- Wait for the flash to finish
-
- after the flash finish Select the SD card on your windows or mac GUI
- For linux you must mount the SD card first through nautilus or cli
- Create file on the SD card called ssh and wpa_supplicant.conf
- open wpa_supplicant.conf using notepad++ and add
country=ID #Follow ISO country code https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes network={ ssid="SSID" psk="PASSWORD" } - select Menu > Edit > EOL Conversion > Unix OSx and save the file
- Remove your SD Card from your pc and put the SD card to raspberry pi
- Power the raspberry pi
- Open your WIFI admin -> goto DHCP -> List of client -> write down raspberry pi IP
- ssh to your raspberry pi
ssh pi@ip_adress - enter default password
raspberry - change your default password using
sudo passwd pi - update the pi using
sudo apt-get update&sudo apt-get upgrade - voila you have finish the setup
- after the flash finish Select the SD card on your windows or mac GUI
-
- Same like Headless wifi setup , but in adition you can skip adding wpa_suplciant.conf
- Mount SD card to your PC , in root of the SD card open config.txt in notepad++ and add
then save the file
dtoverlay=dwc2
- then open cmdline.txt in notepad++, after rootwait append following text with spacing
modules-load=dwc2,g_ether
- Plug your raspberry pi through USB , PLUG TO USB SLOT ON RASPI NOT THE POWER SLOT
- Follow all the step from Headless Wifi , but for the ssh you should use command
ssh pi@raspberry.local - Voila you have finished the setup
in this section we will be installing some of important but not required software like firewall and other security patch
- Updating SSH server, run
sudo apt install openssh-server - Installing firewall Recommended
- install ufw
sudo apt install ufw - allow ssh access with
sudo ufw allow ssh - Enable the firewall with
sudo ufw enable - check firewall status with
sudo ufw status
- install ufw
