Setting up your Raspberry Pi 4 wireless (2023) with past versions of Raspberry Pi OS

Wireless setup for Raspberry Pi 2023 with past versions of Raspberry Pi OS

Eduardo Padron
12 min readAug 5, 2023

1. What you’ll need

Here you will learn about Raspberry Pi, what you need to use it and how to configure it. It is usually necessary to use a keyboard ⌨️, a mouse 🖱️ and a monitor 🖥️ to start using Raspberry Pi for your projects. In this guide we will use the most current version of software as of April 2021. And we will only need a laptop 💻, a Raspberry Pi 4 and it´s power supply. There are many Raspberry models. Raspberry Pi 4 Model B is the newest, fastest and easiest to use.

Image by Raspberry Pi from Raspberry Pi

Raspberry Pi 4 comes in 2GB, 4GB, or 8GB of RAM. For most educational purposes, hobbyist maker projects, and desktop use, 2GB is sufficient.

Things we will need:

  • Laptop
  • Raspberry Pi 4
  • Power supply (Preferably purchase the official together with your Raspberry so as not to have any problems, if you do not have much experience USB-C Power Supply.
  • Smartphone with Mobile Hotspot function
  • Micro SD card (capacity at least 8GB)

A very important part before starting is the selection of a Micro SD card, since we will load the operating system on it, in the figures we can see a micro SD memory where we will take into account the black boxes, this symbology indicates us in the table the classifications of current micro SD cards, it is very important to note that the minimum speed that should be used on a Raspberry Pi is 10 Mb/sec.

Where it will be noticed more depending on the class that we obtain is in the ignition speed and the execution of some tasks. It is not so important to have the most expensive SD to have a better performance in the Raspberry, but having a good card can extend its useful life since the Raspberry Pi makes heavy use of the cards and they end up damaged which means buying another.

Image from Amazon by SanDisk
Image from Lexar by Lexar

Many vendors include SD cards for Raspberry Pi that are already configured with the Raspberry Pi operating system and ready to use with kits but they usually come with NOOBS. NOOBS is an application that facilitates the installation of various Linux distributions on the small computer.

NOOBS makes Internet access unnecessary during installation, and we will only have to connect to the network when it is turned on for the first time. Doing so will give us the option to install operating systems such as Raspbian, Arch Linux without problems. The installation will later allow us to start our Raspberry Pi normally with that new distribution, but NOOBS will remain memory resident and we can access this application whenever we want by pressing the Shift key during the startup process.

As a personal preference, I think it’s better to buy a memory from a brand like SanDisk and do the installation as shown below.

Note: You should avoid disconnecting the power source without having the Raspberry turned off, this can damage the memory at the moment and everything would be lost, even formatting the memory could not be used again.

2. Installing the Raspberry Pi OS withRaspberry Pi Imager

Using Raspberry Pi Imager is the easiest way to install Raspberry Pi OS on your SD card. Note: Raspberry Pi OS is not the only operating system that can be installed. The steps outlined below can be used to install other Raspberry Pi compatible operating systems, but the initial setup at power-up will be different. For more information on other operating systems visit installing operating system images. To Download and run Raspberry Pi Imager visit the page Raspberry Pi downloads page. Click on the link for the Raspberry Pi Imager that matches your operating system.

When the download is complete, click on it to launch the installer. When you start the installer, your operating system may try to block its execution (In that case you have to click on more info within the installer window to continue and click on Run anyway).

Once Raspberry Pi imager is installed

  1. Insert your SD card into the SD card slot of the computer or laptop.
  2. In Raspberry Pi Imager, select the operating system you want to install ❶ and the SD card you want to install it on ❷ (See Figure).

Note: You will need to be connected to the Internet the first time for the Raspberry Pi Imager to download the operating system of your choice. That operating system will be stored for future offline use. Being online for later use means that the Raspberry Pi Imager will always provide you with the latest version.

Screenshot by Eduardo Padron

In case of having a card with another previous operating system or with some files, we can use the Raspberry Pi Imager to format and leave it as new.

We will select “CHOOSE OS” and we will click Erase, we will return to the main window we will select “CHOOSE SD CARD” and we will select our card, “WRITE” is enabled, we will click, a window will appear where we will confirm and ready we have our card ready to be overwrite with Raspberry OS.

Screenshot by Eduardo Padron

To play with the advanced options that will allow us to access our Raspberry remotely, you must press the key sequence:

“Ctrl-Shift-X”

Will display a window in which we will select the “Enable SSH” box, it will also request that we enter a password for the pi user, which is the user that comes by default in Raspberry pi, usually the password is Raspberry for this user, but with this option you can enter the one you like.

Screenshot by Eduardo Padron

Going down further in this window we can find the “configure wifi” box where we enter the network name and password, as I mentioned before we will use a smartphone, which will function as a modem (in my case I use a Samsung phone, which has the option to Hotspot, when a device connects to my phone, it appears in connected devices and when I click on the device it gives me the IP address), later we will talk about the IP, as the last one in this window at the end it allows us to choose the country in the that we are for some language configurations, at the end we will click on “SAVE” and we will return to the main window.

Screenshot by Eduardo Padron

To get a past version of Raspberry OS go to this link and select the version you want to install. Look for the heaviest file appearing in the version you selected as in the image and click to download it. To check other versions Click Parent Directory. I reccommend using Buster is compatible with the most of the things used in Machine Learning and TensorFlow tutorials.

Now we will select the operating system by clicking on he last option in the Raspberry Pi Imager and select “Use custom” that is recommended for some specific projects.

Then will appear a windows where you can look for the file that you downloaded before. Select that one and click open.

Now we will click on “CHOOSE SD CARD” to select our card, by clicking we will return to the main window. The “WRITE” button is enabled, we click and a message will appear requesting confirmation of the writing of the operating system.

Screenshot by Eduardo Padron

At the end of the writing of the operating system on the card, the following window will appear with this we will have the micro SD memory ready to connect it to our Raspberry Pi.

Screenshot by Eduardo Padron

To connect the SD card it is very easy at the bottom of our Raspberry you can find the slot where it is placed.

Image by Raspberry Pi from Raspberry Pi

Finally we will connect the power source first to our Raspberry and then to a plug. In case of connecting first to the plug and then to the Raspberry we could cause small shorts that could affect the useful life of our card.

Image by Raspberry Pi from Raspberry Pi

3.SSH Windows

You can access the command line of a Raspberry Pi remotely from another computer or device on the same network using SSH. The Raspberry Pi will act as a remote device: you can connect using a client on another machine. You only have command line access, not the full desktop environment. For a complete remote desktop, see VNC and its installation guide below How to Remote Desktop to your Raspberry Pi with VNC Viewer.

Note: In the latest versions of Raspberry Pi OS, only VNC needs to be enabled, so it is not necessary to install the server as the VNC link shows.

With the previous steps we have already enabled SSH in our Raspberry, now we will access for the first time to start working.

Previously we mentioned about the IP in case of not having the hotspot function you can check other ways to obtain them in IP Raspberry

We will need to install Putty, it is an SSH client developed for Windows. PuTTY is open source software that is available with source code. To download visit Putty

When we install Putty, the following will appear and we have to select what is shown marked in the image.

Screenshot by Eduardo Padron

When we start, the following window will appear, where we enter the IP of our Raspberry. Then we will click on open. It will send us an alert message in which we will click Yes.

Screenshot by Eduardo Padron

After clicking yes, the window will appear where the user will be entered if the password was not changed and the factory user comes as the pi user and the password that we established in the previous steps as raspberry.

Screenshot by Eduardo Padron

After entering, our user will ask us for the password.

Screenshot by Eduardo Padron

Once the password is entered, it will show us the window as shown in the figure and we will have full access to the Shell of our Raspberry. Now we are going to configure it to get access to the desktop.

Screenshot by Eduardo Padron

4. VNC

Sometimes it is not convenient to work directly on the Raspberry Pi. Maybe you would like to work on it from another remote control device like your laptop. VNC is a graphical desktop sharing system that allows you to remotely control the desktop interface of a computer (with VNC Server) from another computer or mobile device (with VNC Viewer). VNC Viewer transmits keyboard and mouse or touch events to the VNC Server and receives updates on the screen in return. You will see the Raspberry Pi desktop within a window on your computer or mobile device. You can control it as if you were working on the Raspberry Pi itself. In short it is very similar to using TeamViewer. From Putty we enter the terminal of our Raspberry. Once in our terminal we enter the command:

sudo raspi-config
Screenshot by Eduardo Padron

We will go to the next window and select option 3 “Interface Options”.

Screenshot by Eduardo Padron

Now the following options will appear, we will select VNC.

Screenshot by Eduardo Padron

We will confirm that we want to enable the VNC server.

Screenshot by Eduardo Padron

We will return to the sudo raspi-config menu, now we will select “Display Options”.

Screenshot by Eduardo Padron

Now we will select “D1 Resolution”. To configure a resolution that does not have problems with our team.

Screenshot by Eduardo Padron

We will select “DMT Mode 85”. The 1280 x 720 resolution is compatible with most of the current equipment, in case it does not look very good on your computer try using some of the other options with lower resolution.

Screenshot by Eduardo Padron

When confirming, it will ask us if we want to restart, my recommendation is the “YES” option. After restarting, our Raspberry will be ready to enter the Desktop for the first time.

Screenshot by Eduardo Padron

We have to install VNC on our computer, to download visit VNC Download, once installed you can open the program, we enter the IP of our Raspberry at the top.

Screenshot by Eduardo Padron

The following window will appear where we enter the username and password of our Raspberry Pi. We will accept and it will show us the Raspberry Pi desktop.

Screenshot by Eduardo Padron

Once logged in from our Windows computer we will be able to see the desktop of our Raspberry Pi remotely, we will click on ok in the warning window and we will proceed to follow the following steps:
When you start your Raspberry Pi for the first time, the Welcome to Raspberry Pi application will appear and guide you through the initial setup. Click Next to start the configuration.

Screenshot by Eduardo Padron
Screenshot by Eduardo Padron

Set your country, language, and time zone, then click Next again.

Screenshot by Eduardo Padron

It will give us the option to Enter a new password for your Raspberry Pi, it is not necessary to change the password, from the factory Raspberry has the pi username and raspberry password, the change is only for security. and click Next.

Screenshot by Eduardo Padron

It will give us the option to eliminate black edges on a screen, as we are using a remote server we cannot see the edges that would normally appear if we connected our Raspberry via HDMI so we will skip this option and click Next.

Screenshot by Eduardo Padron

It will allow us to connect to another wireless network by selecting its name, entering the password (Note: Changing the network while you are in SSH or VNC will automatically close the application, Raspberries have a dynamic IP that changes each new network that connects, you will have to enter the new network IP to access remotely again), we will continue with the configuration by clicking Next.

Screenshot by Eduardo Padron

The option to update will appear, the most advisable thing is to click Next and let the wizard look for updates to the Raspberry Pi operating system and install them (this may take a little time).

Screenshot by Eduardo Padron

If the update was executed successfully, the following window will appear, in case it fails, it is best to follow the instructions and then, by Putty in SSH, enter the commands:

1. sudo apt update
2. sudo apt full-upgrade

Si todo salió bien daremos clic en Ok.

Screenshot by Eduardo Padron

We will click Restart to finish the configuration. Note: You only need to reboot if necessary to complete an update.

Screenshot by Eduardo Padron

With these steps completed, our Raspberry is ready for us to use for our projects. Now you can enter your Raspberry using any of the previous methods and create with this tool.

If you want to know more about how to start Raspberry for the first time, visit its official website Setting up Raspberry

In case you are interested, you can review the guide on how to install Visual Studio Code and Git on Raspberry Pi.

You can also check the repository of this post in my Github.

--

--