Short note three
Mon, Jan 21, 2019 · 1 minute readlinuxsalt
Setup new Raspberry Pi
Use pre-configured MicroSD card, or configure a new one (instructions for Windows):
- Format SD card as FAT32
- Download Raspbian Lite (we don’t need GUI_)
- Use Etcher to write Raspbian image to SD card.
- Create an empty file named ssh in root directory of SD card.
NOTE: Without this you will not be able to SSH to the Pi.
Insert SD card in Pi, connect network cable and power it up.
After a few seconds you should see a new DHCP assigned IP address on your network.
Should now be able to SSH to the Pi using the default credentials, pi / raspberry.
WiFi is disabled until Country is set, run rasbi-config
to do that,
along with setting locale, timezone, network attributes, etc.
Make sure to also change hostname by editing /etc/hostname
.
Edit /etc/dhcpcd.conf
and set static IP addresses for wlan0 and eth0, or not if you’re happy with DHCP assigned addresses.
Example dhcpd.conf:
interface eth0
static ip_address=192.168.1.204/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.53
interface wlan0
static ip_address=192.168.1.203/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.53
See also: Boot Pi from USB disk