A step-by-step guide on getting started with your very own Raspberry Pi.
Learn how to set up a Raspberry Pi, from unboxing to connecting it to the internet and running your first program. This article is designed for beginners and will cover all the basics you need to know …
Updated October 12, 2023
Learn how to set up a Raspberry Pi, from unboxing to connecting it to the internet and running your first program. This article is designed for beginners and will cover all the basics you need to know.
- Unboxing your Raspberry Pi
- Firstly, unpack your Raspberry Pi kit from its shipping box. You should see the following items:
- Raspberry Pi 4 (or another model depending on your purchase)
- Micro SD card
- USB-C power cable
- Micro HDMI to HDMI adapter cable
- Ethernet cable (optional)
- USB keyboard and mouse (recommended)
- Monitor with HDMI input or a TV that supports HDMI
- Optional: Case, fan, and/or heatsink for better performance
- Firstly, unpack your Raspberry Pi kit from its shipping box. You should see the following items:
- Preparing the Micro SD Card
- Use an SD card of at least 8GB in size to install the Raspberry Pi OS onto it. You can use a micro SD card reader and adapter or a specialized SD card writer to transfer the image to your card.
- Download the latest version of the Raspberry Pi Imager from https://www.raspberrypi.org/software/. Follow the instructions on their website to install the Raspberry Pi OS onto your Micro SD card.
- Connecting your Raspberry Pi
- Plug in the power cable and connect it to a wall outlet or a USB-C power source.
- Connect the Micro HDMI to HDMI adapter to your monitor’s HDMI input, and then plug the other end into the Raspberry Pi.
- Connect your keyboard and mouse to the USB ports on the Raspberry Pi (if using).
- If you have a wired internet connection, connect an Ethernet cable between your router and the Raspberry Pi. Otherwise, connect to WiFi by following the on-screen instructions during setup.
- Booting up your Raspberry Pi
- Turn on your Raspberry Pi by pressing the power button or connecting it to a power source if using a USB-C power supply. The Raspberry Pi will boot up and display a desktop with several icons.
- Click on the “Raspberry Pi Configuration” icon to set up your locale, WiFi, and other preferences. You can also change your password here.
- Updating your Raspberry Pi
- Open the terminal by clicking on the “Terminal” icon or pressing
Ctrl+Alt+T
. - Type
sudo apt-get update
to get the latest package information, and then typesudo apt-get upgrade
to install any available updates. This will ensure your Raspberry Pi is running the latest software.
- Open the terminal by clicking on the “Terminal” icon or pressing
- Running your first program
- Open the “Terminal” again and type
python3
to start the Python interpreter. - Type
print("Hello, World!")
and press Enter to run your first Python program on your Raspberry Pi. You should see the message “Hello, World!” printed in the terminal.
- Open the “Terminal” again and type
- What’s next?
- Now that you have set up your Raspberry Pi, you can begin learning how to use it for various projects and applications. Check out online tutorials or buy books to explore your interests, such as:
- Web development
- Machine learning
- Robotics
- Gaming
- Home automation
- You can also visit the Raspberry Pi website (https://www.raspberrypi.org/) for more resources and inspiration.
- Now that you have set up your Raspberry Pi, you can begin learning how to use it for various projects and applications. Check out online tutorials or buy books to explore your interests, such as:
Remember, with a little patience and practice, you can set up your very own Raspberry Pi and start exploring the world of computing!