Firstly we need to get the raspbian jessie image so that we can install it onto our micro sd card. I usually use jessie lite as it’s a smaller download.

We can get it from here: raspbian image download

Extract the image from the zip and install it onto your SD card using apple pi baker (or another method of your choice).

For ApplePi-Baker select your sd card on the left and add your image to the “restore backup” section and click restore backup.

01 ApplePi-Baker

When completed, remove your sd card from your computer, put it in the pi and power up.

For this part you will require the pi to be plugged into a screen and to have a keyboard attached (this won’t be for long), just until we allow ssh and get it on a network).

When your pi finishes loading, login using the default username and password of “pi” and “raspberry”.

Password change

After login we need to set up network, locale, and ssh. We should also change the password whilst we’re here.

Enter passwd on the command line when you are logged in as the “pi” user. You’ll be prompted to enter your current password to authenticate, and then asked for a new password. Congratulations, you have changed your password.

Setup network

sudo vi /etc/wpa_supplicant/wpa_supplicant.conf

add the following:

network={
    ssid="ssid_of_my_network"
    psk="my_wifi_password"
}

check to see if you have an ip via

ifconfig wlan0

03 Checking your network

if you don’t have one try:

sudo ifdown wlan0

then

sudo ifup wlan0

Hopefully you will now have an IP and we can run an update to get the latest files.

sudo apt-get update

SSH access

Now we can setup ssh, localisation and set the password

sudo raspi-config

Select “Advanced Options”, select “SSH” and enable it.

02 Enabling SSH

Exit from raspi-config via “Finish” and that’s us complete. You can now SSH onto your pi via:

ssh pi@<your-pi-IP-address>

Now we can leave the pi running without any monitor, screen connection, or keyboard connected and we can still control the pi from another machine via SSH.