summaryrefslogtreecommitdiff
path: root/posts/headless-pi.md
blob: 7408637ac49da3328ad0f7c6d30de1224205959d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
title: headless rasperry pi
date: 2020-05-24

1. download raspian minimal
1. follow instructions to [install onto sd card](https://www.raspberrypi.org/documentation/installation/installing-images/linux.md)
1. leave blank file `ssh` on boot partition
1. `ssh pi@<IP>, password `rasperry`
1. install utilities: `sudo apt install vim`
1. update password: `passwd`
1. update hostname: `sudo vim /etc/hostname/` then `sudo vim /etc/hosts/`
1. update timezone: `sudo raspi-config`
1. update packages: `sudo apt update` then `sudo apt upgrade`
1. transfer ssh keys: `ssh-copy-id pi@<IP>`
1. turn off ssh by password: `sudo vim /etc/ssh/sshd_config` then `PasswordAuthentication no`
1. restart: `sudo shutdown -r`
1. make static local ip in router