If you are running Raspbian Lite then you use the command
sudo raspi-config to run the configuration.
However, you can enable SSH before you even boot the card by creating a file named
ssh (or ssh.txt) on the small FAT32 "boot" partition of a Raspbian imaged card. The shh file can be empty, the contents don't matter.
You can also automatically connect to your WiFi network by creating another file named
wpa_supplicant.conf on that same partition. If you are using an Ethernet cable, you can skip the wpa_supplicant.conf file. The wpa_supplicant.conf file should contain the following.
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB
network={
ssid="WiFi SSID"
psk="WPA/WPA2 passphrase"
}
Edit country=, ssid= and psk= with your information and save the file.
Use a pure text editor (not a word processor) to create wpa_supplicant.conf.
When Raspbian finds the ssh file it will enable SSH logins and delete the file. When it find a wpa_supplicant.conf file it will move it its correct location and connect to your wireless network.
This is how you can boot and connect to a completely headless Raspberry Pi.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?