dd
, Balena etcher, or some other imaging software, you can grab a
Raspbian image directly.[Optional]
If you’re not connecting via ethernet, you’ll need to set up WiFi on your Pi before powering it on.
wpa_supplicant.conf
, and fill it as appropriate, using
this template:country={two-letter country code, e.g., US}
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="{WiFi network name}"
psk="{WiFi network password}"
}
If you’re not using a keyboard/mouse/monitor, you’ll need to communicate with your Pi via SSH.
[Optional], [Recommended]
ssh
(no file extension)Ping your Pi from your main machine’s command line. The system doesn’t matter here, the command is the same:
ping raspberrypi.local
On OS-X, you may need to use ping raspberrypi.home
instead.
You should see something like…
PING raspberrypi.local (192.168.1.15) 56(84) bytes of data.
64 bytes from raspberrypi.local (192.168.1.15): icmp_seq=1 ttl=64 time=0.065 ms
64 bytes from raspberrypi.local (192.168.1.15): icmp_seq=2 ttl=64 time=0.047 ms
64 bytes from raspberrypi.local (192.168.1.15): icmp_seq=3 ttl=64 time=0.065 ms
64 bytes from raspberrypi.local (192.168.1.15): icmp_seq=4 ttl=64 time=0.057 ms
For Linux and OS-X, you can hit Ctrl+C to stop. Windows will stop on its own. That dotted number, 192.168.x.y
,
is your Pi’s IP address. (Note: may be 10.0.x.y
) Write it down
If this doesn’t work, you’ll need to grab a keyboard / mouse / monitor and get your Raspberry Pi’s IP address manually:
ip addr show eth0
if using ethernet, or ip addr show wlan0
if using wifi.It will return something like this:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether dc:a6:32:d1:0d:bc brd ff:ff:ff:ff:ff:ff
inet 192.168.1.15/24 brd 192.168.1.255 scope global noprefixroute eth0
valid_lft forever preferred_lft forever
inet6 fe80::13c4:336c:2a93:4196/64 scope link
valid_lft forever preferred_lft forever
Your Pi’s IP address is the four-octet number immediately following inet
and starting with 192.
or 10.
. Drop the /24
(netmask).
Again, write it down.
If you’re not using a keyboard/mouse/monitor, you’ll need to sign in via SSH.
[Optional]
ssh pi@raspberry.local
(or ssh pi@raspberry.home
or ssh pi@192.168...
, filling in your Pi’s IP address).yes
for any security prompts.Since the default password for Raspberry Pis is well-known, you’re definitely going to want to change it now.
sudo passwd pi
You’ll want your Pi Cloud’s name to be something memorable. It may contain lowercase a
-z
, 0
-9
, and -
, and must not
begin with a number or -
, and cannot end with -
. Spaces, uppercase, and other punctuation aren’t allowed.
Use the following commands to update the hostname, then reboot.
HOST="new-hostname"
echo "$HOST" | sudo tee /etc/hostname
sudo sed -e 's/^\(127\.0\.1\.1[\s\t]\+\)[a-zA-Z0-9-]\+/\1'"$HOST"'/' -i /etc/hosts
sudo reboot now
Note: you’ve just changed your hostname. If you’ve changed it to
razzle-dazzle
, Anything that used to beraspberrypi.local
orraspberrypi.home
will now berazzle-dazzle.local
orrazzle-dazzle.home
.
You’ll want to let the Pi know where it exists in the world. Each of the following steps uses raspi-config
.
sudo raspi-config
and press [Enter]5 Localization Options
and press [Enter]L1 Locale
and press [Enter]en_GB.UTF-8 UTF-8
, then find your own locale (for me, it’s en_US.UTF-8 UTF-8
). It is almost
certainly going to be some variant of lang_COUNTRY.UTF-8 UTF-8
.<OK>
, and press [Enter]C.UTF-8
as the default locale, and press [Enter].sudo raspi-config
and press [Enter]5 Localization Options
and press [Enter]L2 Timezone
and press [Enter]America
, New York
).Note: if you’re not using a physical keyboard, this doesn’t matter
sudo raspi-config
and press [Enter]5 Localization Options
and press [Enter]L3 Keyboard
and press [Enter]Generic 105-key PC
English (US)
The default for the keyboard layout
, No compose key
, <No>
)Note: if you set up a
wpa_supplicant.conf
in your boot partition at the beginning, you don’t need to do this.
sudo raspi-config
and press [Enter]5 Localization Options
and press [Enter]L4 WLAN Country
and press [Enter]Note: if you created the file
ssh
in your boot partition at the beginning, you don’t need to do this.
sudo raspi-config
and press [Enter]3 Interface Options
P2 SSH
<Yes>
and press [Enter]Enabling VNC will allow you to access your Pi’s desktop for administration without having a keyboard/mouse/monitor connected. It’s a nice convenience, but entirely optional. I recommend RealVNC as your viewer.
[Optional]
sudo raspi-config
and press [Enter]3 Interface Options
P3 VNC
<Yes>
and press [Enter]If you plan on running your Pi headless, but want VNC access, you’ll need to force HDMI on. Exit raspi-config
, and do the following:
sudo nano /boot/config.txt
#
from) the line hdmi_force_hotplug=1
sudo reboot now
You’ll want your system to be as up to date as possible.
sudo apt update
sudo apt -yq upgrade
Your next step is to set up Dynamic DNS.