So I'm building this thing on the Raspberry Pi zero 2 W and the first stuff to deal with is how to have some visual feedback from the Raspberry on my PC. Since im using the Raspberry pi Camera, I though this was the easiest way to do it, maybe its not but anyway, thats how i did it.
Ok so the first thing is to install the OS on your Raspberry. For this you will need an micro-sd card and some adapter to connect it to your pc. Then you just Raspberry Pi Imager, which makes it ultra simple to install the OS and do some basic personalization so you can SSH into it easily. Everything is simply explained here.
Basically you just need to enable SSH, and i did it with password instead of private key, because i dont care too much for this project, but you can use the key instead. Also, DO NOT forget the hostname nor the password, please.
In case you go with SSH with password, you should also give it your Wifi's access so its easy to connect to your raspberry through the network.
Then, on windows, you can download putty here. And just put the hostname you set before, and then it will ask you for the password.
And then you enter your password and Boom, you are inside the raspberry. That easy.
we are in! Now, we are going to use VNC (Virtual Network Computing) which allows us to share the graphical interface from the raspberry to our computer, and allow us to control it. If you did the installation i showed, the raspberry will already have VNC installed, so you just need to enable it by doing:
sudo raspi-config
And then enabling it by navigating to "Interfacing Options" > "VNC" and select "Yes".
Now VNC is enabled and we should reboot the raspberry with:
sudo reboot
Now everything is setup. You can SSH again into the Raspberry and get its local IP with
ifconfig
awesome, now everything is ready with the raspberry. We can logout and download some VNC client like RealVNC, and then we open it and do a VNC connect to the Raspberry IP (we should be on the same network)
and boom, we are in. and we can control the mouse and keyboard freely.