-
Notifications
You must be signed in to change notification settings - Fork 5
Raspberry Pi Initial setup
The Raspberry Pi initial setup requires you to create populate the micro SD card with the raspbian operating system and then on the first boot you need to configure the Raspberry Pi networking to meet your requirements. There are many different paths to get to the required end result depending on how you want to initially access the Pi and your local network environment.
There are 2 options for flashing the SD card.
One is using a boot environment called NOOBs (New Out Of the Box Software), which walks you through the options to setup the micro SD card. However, using NOOBS requires you to be working directly on the Pi, with it connected to a TV or monitor with an HDMI cable and have a USB keyboard and mouse attached. The process is described here. You should select to install Raspbian when offered the list of available operating systems. Once Raspbian boots you are ready to configure the networking and then performing the necessary updates, described below.
The other option is to directly flash Raspbian onto the micro-SD card, using a flashing application such as Etcher. Instructions for installing Raspbian to the micro-SD card can be found here. Installing Raspbian to the micro-SD card can enable you to access the Raspberry Pi without needing a monitor, keyboard and mouse to be attached to the Pi. Details can be found in this video.
I find that a direct Ethernet cable connection between my laptop and the Raspberry Pi is the most reliable option. Note, Microsoft Windows users will need to install additional software to enable local name resolution between Windows and Raspbian. A terminal application is also needed on Windows, such as putty.
The setup process requires you to be able to access the graphical user interface of the Raspberry Pi, so if you are not using an HDMI connected TV or monitor, then you should install a VNC application on your laptop to remotely access the graphical user interface of the Raspberry Pi. Details of VNC access can be found here.
When you first boot your pi you need to do some initial configuration. To do this you need to access a command line.
If working directly on the Pi with keyboard, mouse and monitor there is a GUI version of the configuration application available from the menu:
Selecting the link will open up the configuration tool:
If accessing remotely you need to establish a connection to the pi using ssh. On Windows you can use an application, such as putty. On Linux and MacOS you can use the terminal application and the ssh command. You need to connect using the following details:
- Host : raspberrypi.local
- Name : pi
- Password : raspberry
so in a terminal window on linux or MacOS the command is:
ssh [email protected]
you should then be promoted for the password, which is raspberry.
When you have command line access to your pi you need to enter the command:
sudo raspi-config
then you should see the config utility:
Use the arrow keys to move between menu items and the tab key to jump between sections in the interface. The enter key selects the currently highlighted option.
In the configuration tool you need to:
- Change the password for the standard user pi. The default is
raspberry
, but you should change this to prevent unauthorised access to your raspberry pi. - Change the hostname, if needed. The default is
raspberrypi
and you should change it if you are likely to run your pi on a network containing other Raspberry pis. - Set the location details for timezone, locale, WiFi region and keyboard layout
- Set the VNC resolution, I advise this to be set to 1280x720 or higher.
- Enhable the following interfaces: Camera, SSH, VNC, I2C
After the updates have been made you can quite the configuration tool and select to reboot the raspberry pi.
When you reconnect to the pi the hostname will be what you set in the configuration tool followed by .local
and the password for the pi user will be what you set on the configuration tool. You should now be able to connect using VNC to get remote access to the graphical user interface.
Unless you are going to use a wired Ethernet connection you will need to configure the Raspberry Pi to use WiFi. You can configure a wifi connection from the command line, instructions can be found here, but it is easier to use the graphical user interface. If not working directly on the pi then you will need to access the desktop remotely using VNC.
Simply click the WiFi icon at the top of the screen:
then select your network and provide the security information to connect to the network.
Once your Raspberry Pi is online you are ready to update update the preinstalled software