title | description | author | |
---|---|---|---|
Connect and configure your Raspberry Pi with Visual Studio Code |
|
In this tutorial you'll connect to your Raspberry pi with Visual Studio Code and write some python code.
-
Follow the instructions to set up Remote Access and SSH
-
Follow the instructions to set up a remote session in Visual Studio Code.
-
Add the VS Code python extension while remotely connected to your Raspberry pi in VS Code. This extension allows you to debug your Python code while remotely connected in VS code.
-
Install GitHub from your VS Code SSH session.
-
Change to your home directory and create a "repos" directory as follows,
cd ~ mkdir repos
-
Change to the repos directory and clone your GitHub fork,
git clone https://github.com/{your-fork}/IoT.git
cd repos git clone https://github.com/{your-fork}/IoT.git
- run the following
sudo apt install apt-transport-https gnupg1 dirmngr lsb-release
- run the following curl command.
curl -L https://packagecloud.io/ookla/speedtest-cli/gpgkey | gpg --dearmor | sudo tee /usr/share/keyrings/speedtestcli-archive-keyring.gpg >/dev/null
- run the following script
echo "deb [signed-by=/usr/share/keyrings/speedtestcli-archive-keyring.gpg] https://packagecloud.io/ookla/speedtest-cli/debian/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/speedtest.list
- Update
sudo apt update
- Install speedtest
sudo apt install speedtest
- run it.
sudo apt install speedtest
- Set up Remote Access on your Raspberry Pi
- Set up SSH on your Raspberry Pi
- Configure remote SSH in Visual Studio Code
- Install VS Code python extension
Tutorial: Deploy and Configure a Device Provisioning Service (DPS)