https://github.com/pete911/raspberry-pi
instructions to install raspberry pihole
https://github.com/pete911/raspberry-pi
pi-hole raspberry-pi
Last synced: 2 months ago
JSON representation
instructions to install raspberry pihole
- Host: GitHub
- URL: https://github.com/pete911/raspberry-pi
- Owner: pete911
- Created: 2019-06-04T22:49:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-08T08:14:18.000Z (about 7 years ago)
- Last Synced: 2025-04-07T12:49:43.363Z (about 1 year ago)
- Topics: pi-hole, raspberry-pi
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# raspberry pi setup
## download rasbian lite
- download rasbian lite
- install with etcher
- create empty 'ssh' file in boot partion (to enable ssh server)
## setup
SSH to raspberry pi (default username `pi` and password `raspberry`)
- change password `passwd`
- change hostname
- `sudo hostname `
- `sudo vi /etc/hostname` change all 'raspberry' to new hostname
- `sudo vi /etc/hosts` change all 'raspberry' to new hostname
- update `sudo apt-get update && sudo apt-get upgrade -y`
## ssh
Locally (we name the keys with the same name as the new hostname wit set in the previous steps).
Replace `` and `` in the instructions.
- `cd ~/.ssh`
- create ssh keys `ssh-keygen -f `
- copy public key to raspberry pi `ssh-copy-id -i .pub pi@`
- add ssh config entry `vi config`
```
Host
Hostname
User pi
IdentityFile ~/.ssh/
```
## install docker and docker compose
- [install docker](https://howchoo.com/g/nmrlzmq1ymn/how-to-install-docker-on-your-raspberry-pi)
- `curl -sSL https://get.docker.com | sh`
- `sudo usermod -aG docker pi` (you need to logout and log back in after this step)
- install docker-compose
- `sudo apt-get update`
- `sudo apt-get install libffi-dev`
- `sudo apt-get install -y python python-pip`
- `sudo pip install docker-compose`
- `sudo reboot`
- ssh back and test: `docker run hello-world`