Prototyping for Habitat
Raspberry Installation
I followed this guide:
→ https://pzwiki.wdka.nl/mediadesign/The_Ultimate_RPi_Installation_Guide
1. Download an OS image file
2. Put image on SD Card
- Open terminal
- Find the disk that you are going to write to
diskutil list
- Find the disk /dev/disk<number>
- You need to unmount the SD Card before imaging
sudo diskutil unmountDisk /dev/disk<number>
- Then to image the disk with your image put in the following command
sudo dd bs=4m if=/path/to/your/image.img of=/dev/rdisk<number>
3. Enable SSH on the Pi
With a screen + keyboard
- Connect the Pi to a screen and keyboard.
- Run:
sudo raspi-config
- Select
Interfacing Options
- Navigate to and select
SSH
- Choose
Yes
- Select
Ok
- Choose
Finish
4. put the SD card back in the Pi and boot it up
5. Login into the Pi, using the ip address of the pi, or using the hostname of the machine.
ssh root@192.168.1.73 ssh pi@192.168.2.15 ssh pi@raspberrypi.local
6. Change the hostname
The hostname is the name of the Pi.
You can change this name, by editing these two files:
sudo nano /etc/hostname sudo nano /etc/hosts
Change /etc/hosts
into:
127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
127.0.1.1 newhostname
Reboot the Pi after you made these changes!
7. Reach your Pi using its hostname
You can use the hostname to ssh into the Pi, if you are in the same local network as your Pi:
ssh username@hostname.local
You can use this hostname also in the browser, to access the webserver on the Pi. Try to visit:
hostname.local hostname.lan