Here I’m going to show you how to easily connect to your Raspberry Pi over the network from your Windows 10 machine.[1]
This is going to be accomplished with the Remote Desktop Protocol (RDP).
This will allow you to quickly and conveniently access the Raspberry Pi’s graphical desktop without having to disconnect and move any of your cables (USB, HDMI, etc.) around.
A real pain in the butt!
Then you can easily experiment and test all of the open source software that the Raspberry Pi platform has to offer:
Here are a few quick examples:
1.) LibreOffice
Opensource Alternative to Microsoft Office
2.) Programming In Python For Beginners
Any Linux platform is going to come with amazing programming IDEs for dozens of popular programming languages: C, C++, Ruby, Python, Perl, you name it!
Raspberry Pi has one in particular for Python beginners.
Thonny Python IDE (to name just one of dozens)
3.) Raspberry Pi Documentation
If you want to go down the Raspberry Pi and/or Debian rabbit hole, you can access all of their References, Guides, and Help files:
Raspberry Pi OS Commands
To get this RDP solution implemented, we will need to:
Install the latest Raspberry Pi OS updates (as a Best Practice)
Install the open source version of RDP onto your Raspberry Pi: Xrdp
sudo apt-get update #update list of available updates
sudo apt-get upgrade #actually installs latest software versions
sudo apt-get install xrdp #installs XRDP onto Raspberry Pi
“RDP” to your Raspberry Pi
From your Windows 10 machine, type mstsc into your search bar and select Remote Desktop Connection
Enter your Raspberry Pi’s IP Address and click Connect
Click Yes if you see the following warning:
Enter the username and password of a valid Raspberry Pi account.
The one you use to Putty with should work.
Then you will be presented with the Raspberry Pi’s graphical desktop:
Remember, we have not written any Ansible code yet. We are still visualizing and brainstorming. Which is probably the most important part of this entire process anyway.
Next, we will select only that parameters and values we needs for our particular purpose.
apt
name=nano
state=absent
SUMMARY (So far..)
We took our original bash command:
apt-get install nano
and visualized it according to Ansible’s module page and got:
apt
name=nano
state=absent
Now that we have this visualization, the rest of our mission becomes 1000x easier.
We will take our visualization and transform it into valid Ansible code in our next post.
And because we did most of the cognitive heavy-lifting upfront:brainstorming!
The rest of our work, writing actual Ansible syntax, becomes a lot easier.