Skip to content

jorgenmiller/Raspberry-Pi-Setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 

Repository files navigation

Raspberry-Pi-Setup

How I set up my pi's.

Operating System

Raspbian Stretch with desktop and recommended software
Flash the SD card using Etcher (for Mac OS)

Raspi-Config

configure basic settings
sudo raspi-config

  • change password
  • connect to wifi
  • set hostname
  • SSH enabled
  • I2C or SPI enabled if needed for HATs
  • expand filesystem
  • finish and reboot

full usage guide at raspberrypi.org

SSH

Passwordless SSH from my computer to the pi's

  • check for ssh keys on your computer in ~/.ssh
  • if none, generate them
    ssh-keygen
  • send ssh public key to the pi from your computer
    ssh-copy-id <PI-USERNAME>@<PI-IP-ADDRESS>
  • now ssh to your pi!
    ssh <PI-USERNAME>@<PI-IP-ADDRESS>

full ssh guide at raspberrypi.org

Pi Hostname Alias

add an alias for the pi's hostname

  • on your computer, use sudo to edit /etc/hosts
  • add <PI-IP-ADRESS> <ALIAS> to the file
  • now the alias is linked to the IP address
  • now ssh to your pi with the alias!
    ssh <PI-USERNAME>@<ALIAS>

SCP

  • copy file to the raspberry pi
    scp <FILE> <PI-USERNAME>@<PI-IP-ADDRESS>:<PATH>

GitHub

clone relevant github directory as new folder
git init
git clone <REPO>

About

How I set up my pi's.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published