How to setup your Raspberry Pi and connect to it through SSH and your local WiFi
2 min readJul 10, 2018
An Easy guide on how to Quick Setup your raspberry pi to auto connect on your WiFi and has SSH enabled
Install Raspbian on you Raspberry Pi
- Download Raspbian Stretch with desctop from the official Website
- Burn the ISO to the memory card using Etcher
- Put the memory card to your Raspberry Pi
Enable SSH and WiFi [option 1] (Through Display and Mouse)
- Connect a screen to HDMI, Keyboard and Mouse to the USBs
- Turn it on!
- Connect to your local WiFi (if you don’t use LAN)
- Turn on SSH: Preferences Menu > Raspberry Pi Configuration > Interfaces Tab > Enable SSH > OK
Enable SSH and WiFi [option 2] (Through Memory Card)
- Open the memory card on your computer
- Create a file called “ssh” without any suffix
If you don’t use LAN and want the Raspberry Pi to automatically connect on your local WiFi network:
- Open the memory card on your computer
- Go to folder boot
- Open the file wpa_supplicant.conf
- Paste the following and replace the “country”, “ssid” and “psk”
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=«your_ISO-3166-1_two-letter_country_code»
network={
ssid="«your_SSID»"
psk="«your_PSK»"
key_mgmt=WPA-PSK
}
Connect through SSH
Open Terminal app on your MacBook and type the following command
$ ssh pi@raspberrypi.local
The default password is: raspberry
Now this terminal window is running in your Raspberry Pi, so any command that you run it will take place in your Raspberry, not on your computer.
If you wish to learn how to make Atom editor on your Mac see your Raspberry Pi filesystem read my guide: [How to use Atom with your Raspberry Pi through SFTP]