First slot in the SD card with the ethernet cable plugged in and USB mouse and keyboard and also a monitor usually connected by a HDMI connection.
Ethernet should be working. Check by pinging a site in the terminal,
$ ping duckduckgo.com
If this doesn’t work you won’t be able to upgrade the system.
Update and upgrade with the Debian package manager, ‘apt-get’
$ sudo apt-get update
$ sudo apt-get upgrade
Then update the Linux distribution,
$ sudo apt-get dist-update
Change directory to the wpa_supplicant.cong file to set the wifi network and password.
$ cd /etc/wpa_supplicant
Then open the file wpa_supplicant.conf
$ sudo nano wpa_supplicant.conf
At the end of the file add,
Ctrl-X and Y will save this file. Ctrl-o will save without closing.
At this stage I went to the Pi icon in the top left of the screen and ‘Preferences’ > ‘Raspberry Pi Configuration’
Go to ‘Change Password’. The current password is ‘raspberry’ and choose a new one.
Then under the interfaces tab, it is a good idea to at least enable SSH. Then under the ‘Localisation’ tab set the ‘Set Locale’, ‘Set Timezone’ and ‘Set WiFi Country’.
$ sudo reboot
When teh Pi boots again change your ip address on the network with,
You should see three blocks, one labelled ‘eth0’ for ethernet, ‘lo’ fpr loopbacka nd ‘wlan0’ for the wifi connection. The wlan0 block should have an ip address such as 192.168.1.11 in the line,
inet addr: 192.168.1.11
This is the Pi’s ip address on your local network. Take note of it.
Go to another computer on your network and open a terminal or command line interface (CLI). Type,
$ ssh firstname.lastname@example.org
You will be asked for a password and hopefully you will be connected to the pi’s command line and so not need to monitor. This is called a headless connection.