WEBVTT

00:00.140 --> 00:04.880
This lesson is not needed if you have everything working correctly with VNC.

00:05.030 --> 00:08.720
You can skip and go directly to the next section.

00:08.750 --> 00:13.160
However, I will introduce here another way to connect to your Raspberry Pi desktop.

00:13.160 --> 00:15.710
And I'm doing this for two reasons.

00:15.710 --> 00:19.100
First, it looks quite promising and easy to use.

00:19.100 --> 00:25.070
And second, well, if somehow you got completely stuck with VNC and you still don't have access to

00:25.100 --> 00:31.130
the desktop interface, well, this is an alternative way you can try and very basically put, what

00:31.130 --> 00:36.020
we will do is we will set up something on the Raspberry Pi, and then we will be able to access the

00:36.020 --> 00:39.140
desktop from a web browser.

00:39.170 --> 00:39.560
Okay.

00:39.590 --> 00:41.750
So anywhere you have a web browser.

00:41.750 --> 00:48.050
So if you have Linux, Mac or Windows, well you can have a web browser in any of those.

00:48.050 --> 00:53.870
So you should be able to connect to your Raspberry Pi from any operating system and actually from any

00:53.870 --> 00:54.530
device.

00:54.530 --> 00:59.920
So it could be a phone, it could be a tablet anywhere you can open a web browser, you should be able

00:59.920 --> 01:02.650
to access to the Raspberry Pi desktop.

01:02.680 --> 01:05.200
Okay, so now I'm going to show you how to configure that.

01:05.200 --> 01:11.050
Just note that for the following of this course I will still use VNC, but you may just try it, test

01:11.080 --> 01:13.090
it and do as you want.

01:13.120 --> 01:20.470
And the second note is that this only works with Raspberry Pi, OS bookworm and more recent operating

01:20.470 --> 01:20.860
system.

01:20.860 --> 01:26.860
So if you are still using an old operating system on the Raspberry Pi, well, flash the new one.

01:26.890 --> 01:30.100
Okay, it's only going to work with the new versions.

01:30.100 --> 01:36.100
So first of all, you can open a web browser and just search for Raspberry Pi Connect.

01:36.130 --> 01:36.520
Okay.

01:36.550 --> 01:39.160
And you should get to a page like this.

01:39.160 --> 01:45.070
So as of today as I'm recording this, it's still in beta mode okay.

01:45.100 --> 01:47.290
It's probably going to go out of beta soon.

01:47.290 --> 01:49.840
So you can get access to this here.

01:49.840 --> 01:52.660
And you can just sign in to Raspberry Pi Connect.

01:52.660 --> 01:54.340
So you create an account here.

01:54.340 --> 01:56.380
I have just linked my Google account to it.

01:56.380 --> 02:02.760
So you create an account and then you should get to this dashboard or something similar.

02:02.790 --> 02:09.120
After you have created the account and logged in and the URL that I have here is connect raspberrypi.

02:09.150 --> 02:11.700
Com slash devices.

02:11.730 --> 02:12.060
Okay.

02:12.090 --> 02:15.330
Once you get this account you can put it aside.

02:15.330 --> 02:18.300
We will come back to this just in a few minutes.

02:18.300 --> 02:20.820
And now we need to get access to the Raspberry Pi.

02:20.850 --> 02:24.240
So I'm going to open a terminal here on windows.

02:24.240 --> 02:27.600
And we will connect to the Raspberry Pi with SSH.

02:27.600 --> 02:30.210
So at this point what are the requirements?

02:30.210 --> 02:33.900
The requirements are that the Raspberry Pi is powered on okay.

02:33.930 --> 02:37.290
With the SD card that is connected to the Wi-Fi network.

02:37.290 --> 02:39.240
So pay attention here.

02:39.270 --> 02:43.320
Make sure that it's the same Wi-Fi network that your computer is connected to.

02:43.350 --> 02:51.240
Okay, you should already also have found the IP address, so I'm just going to run my angry IP scanner

02:51.240 --> 02:58.090
here again just to make sure that I have the correct IP address.

02:59.260 --> 02:59.740
Okay.

02:59.740 --> 03:00.910
And it's a bit weird.

03:00.910 --> 03:03.580
I got 29, but I can sort by ping.

03:03.940 --> 03:04.840
You can see.

03:04.840 --> 03:07.630
Well, this time I have my Raspberry Pi here.

03:07.630 --> 03:09.400
So I find the hostname.

03:09.520 --> 03:16.060
If you have too many IP addresses like this and you don't have the hostname, maybe just stop and start

03:16.060 --> 03:19.630
again and maybe you just power off and power on the Raspberry Pi.

03:19.660 --> 03:21.460
Restart your WiFi router.

03:21.490 --> 03:25.120
Okay, but this is the IP address that correspond to my Raspberry Pi.

03:25.150 --> 03:26.110
So let's go.

03:26.350 --> 03:27.160
SSH.

03:27.190 --> 03:31.810
Pi okay 192 168.

03:31.900 --> 03:32.890
Then it was zero.

03:32.890 --> 03:34.360
And then 222 okay.

03:34.390 --> 03:39.790
So the requirements is that your Raspberry Pi and your computer here are connected to the same network,

03:39.790 --> 03:45.280
that you can find the IP address and that you can also get access to it with SSH.

03:45.280 --> 03:50.080
So I'm going to put yes here put the password okay.

03:50.110 --> 03:55.620
And when you are in the Raspberry Pi you will do a sudo apt update.

03:58.590 --> 04:02.850
And then you will do sudo apt upgrade.

04:03.030 --> 04:03.750
Okay.

04:04.710 --> 04:07.230
Here if you have something like this do you want to continue.

04:07.230 --> 04:08.760
You can just press enter.

04:09.150 --> 04:13.080
So you're going to update all packages here I just had one.

04:13.080 --> 04:14.730
So it's going to go quite quick.

04:14.850 --> 04:16.020
But you may have more.

04:16.020 --> 04:21.150
So just wait the time that's necessary for all the packages to get updated.

04:21.330 --> 04:35.490
And then you can run this command sudo apt and install like that and then space rpi dash connect just

04:35.490 --> 04:38.130
like that and press enter.

04:38.130 --> 04:40.710
And actually I had already installed it.

04:40.710 --> 04:45.510
So just make sure that if you have this it means it's you see it's installed.

04:45.510 --> 04:49.800
This is what we need RPI connect so that the Raspberry Pi Connect will work.

04:49.830 --> 04:53.310
After you have this then you can reboot the Raspberry Pi.

04:53.340 --> 04:59.010
Okay, so I'm going to write sudo reboot and press enter.

04:59.010 --> 05:03.930
And you can see now we lose the connection because of course the Raspberry Pi is rebooting.

05:03.930 --> 05:08.610
We're going to wait a few seconds, so maybe 30s and try to connect again.

05:09.300 --> 05:09.660
Okay.

05:09.660 --> 05:10.770
Let's try.

05:10.800 --> 05:14.070
So I use the up arrow to put the same command.

05:14.100 --> 05:19.500
So the SSH command on windows asks the password.

05:20.760 --> 05:22.650
And we are back to the Raspberry Pi.

05:22.680 --> 05:24.630
Now we need to do one more thing.

05:24.630 --> 05:33.330
We are going to use the RPI connect command like that and write sign in.

05:33.630 --> 05:33.840
Okay.

05:33.840 --> 05:35.520
So you write exactly like this.

05:35.520 --> 05:45.540
You press enter, you wait a bit and as you can see you have complete sign in by visiting and it gives

05:45.540 --> 05:51.760
you a URL with here a code so you can copy this.

05:52.330 --> 05:52.870
Okay.

05:53.110 --> 05:54.550
Um, how to copy this?

05:54.580 --> 06:00.310
Well, actually, if you press Ctrl and click, you should be able to go directly.

06:00.310 --> 06:06.490
And then we go here and we're going to sign in with the account that we have created just before.

06:06.490 --> 06:09.190
And we're going to just name our new device.

06:09.190 --> 06:13.120
So this is this is what this is a name just to recognize the new device.

06:13.120 --> 06:19.570
So I'm just going to name it course Raspberry Pi I create the device and sign in okay.

06:19.570 --> 06:22.690
So the device sign in successful.

06:22.690 --> 06:27.010
And then I guess we can just go back to what.

06:27.040 --> 06:32.080
You can just go back to your account and you will see that now okay.

06:32.110 --> 06:33.430
Now you should have this.

06:33.580 --> 06:35.830
You should have the Raspberry Pi.

06:35.860 --> 06:38.830
So with the name course Raspberry Pi, that's the name I gave it.

06:38.860 --> 06:42.550
This one is registered and you will see a button here.

06:42.550 --> 06:44.170
Connect via.

06:44.800 --> 06:46.120
All right connect via.

06:46.330 --> 06:47.660
You can get the remote shell.

06:47.690 --> 06:51.020
So that's just like ssh or you can do screen sharing.

06:51.020 --> 06:52.580
I'm going to click on Screen Sharing.

06:52.580 --> 06:54.410
It opens a new window.

06:56.450 --> 06:57.320
Waiting.

06:57.320 --> 07:03.500
And after a few seconds we are on the Raspberry Pi desktop.

07:03.560 --> 07:04.430
All right.

07:05.390 --> 07:07.070
So that's quite convenient okay.

07:07.100 --> 07:09.560
You can just open from a web browser.

07:09.560 --> 07:16.940
And you can see here we have this icon, uh about Raspberry Pi connect with screen sharing here.

07:16.940 --> 07:20.090
And it's basically the same thing as we had with VNC.

07:20.600 --> 07:27.380
The only differences is that, well, to copy and paste from the Raspberry Pi to your computer, you

07:27.380 --> 07:29.840
might have to click on those buttons.

07:29.870 --> 07:30.410
Okay.

07:30.440 --> 07:31.790
You have extra commands here.

07:31.820 --> 07:34.460
The control alt escape tab okay.

07:34.460 --> 07:38.630
But apart from that this is well, this is the Raspberry Pi OS desktop.

07:38.630 --> 07:43.760
So you can just follow the course and do everything from this interface.

07:44.060 --> 07:49.960
And if you if you want to disconnect you just click on disconnect here and you see that ended.

07:49.960 --> 07:54.520
And note that when you disconnect you don't shut down the Raspberry Pi, you are just disconnected.

07:54.520 --> 07:57.430
The Raspberry Pi is still is still powered on.

07:57.430 --> 07:58.090
It's still working.

07:58.090 --> 07:59.410
So you can reconnect.

08:02.170 --> 08:02.500
Okay.

08:02.530 --> 08:03.220
And you are back.

08:03.220 --> 08:08.920
If you want to shut down the Raspberry Pi, you should go here on this icon, this menu, and then click

08:08.920 --> 08:12.070
on shutdown okay.

08:12.100 --> 08:14.470
And you can shut down the Raspberry Pi.

08:14.470 --> 08:18.940
And of course when you shut down you also lose the connection.

08:19.780 --> 08:21.820
And I'm just going to refresh that page.

08:22.000 --> 08:27.940
And you can see that after the Raspberry Pi has shut down, you don't see the connect button here.

08:27.970 --> 08:28.630
Okay.

08:29.320 --> 08:30.400
You don't see the connect button.

08:30.400 --> 08:36.610
So the connect button is only going to be present when the Raspberry Pi and your computer are connected

08:36.610 --> 08:37.750
to the same network.

08:37.750 --> 08:40.000
And well, that's it for Raspberry Pi Connect.

08:40.000 --> 08:43.930
So as you can see, once you have set it up, it's really easy to use.
