RaspberryPi + SSH

物体検出

Resources

Rasbpian OS Flashed on SD card

This file here

Putty

Setting up RaspberryPi

Copy the downloaded file above ("ssh") into the "boot" folder of the RPi SD card

NOTE: Rpi = RaspberryPi

Connecting to the web

Ethernet

Connect RPi to internet using ethernet

Plug in and skip the next part

Wifi

Headless connection

Using a card reader, insert in the SD card and open up the "boot" partition

Make a new file named "wpa_supplicant.conf"

In the file add in the following

country=fr
update_config=1
ctrl_interface=/var/run/wpa_supplicant

network={
scan_ssid=1
ssid="RouterName"
psk="Password"
key_mgmt=WPA-PSK
}

Change "RounterName" to the name of the Wifi you want to connect

Change "Password" to the password of the Wifi

If your wifi is using WPE, change "key_mgmt=WPA-PSK" to

key_mgmt=NONE

If your wifi does not have a password, just enter in the ssid, delete the "psk" and "key_mgmt" line

Its okay if your country code is different....

NOTE: Add in the name and password with quotation mark

Don't forget to save!

GUI Connection

In the upper left of your desktop there should be a WiFi symbol...

Connect it normally?

NOTE: for a new RPi boot, id="pi" password="raspberry"

Command Line connection

sudo raspi-config

Navigate using arrowkey and connect to wifi

Connecting to 3.1415265

Run the following in terminal to get IP of the Rpi

ip addr show

Open Putty and copy the IP adress of the Rpi into the blank. Allow the port to be default (22) and select SSH. Connect!

When SSH connects, login as (if you didn't change it)

id=pi

password=raspberry

NOTE: When typing password, you cannot see the word... its a Linux thing i think

And you are connected!

Headless configuration

Another way you can get the IP of your RPi after its connected to the WiFi is with Angry IP Scanner

Angry IP Scanner

Or you could just access the admin panel of your router and locate the IP adress of the hostname "raspberrypi"