Skip to content

Latest commit

 

History

History
87 lines (58 loc) · 3.09 KB

tutorial-rasp-connect.md

File metadata and controls

87 lines (58 loc) · 3.09 KB
title description author
Connect and configure your Raspberry Pi with Visual Studio Code
todo

Tutorial: 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.

Prerequisites

Set Up Remote SSH and Python Extension with Visual Studio Code

  1. Follow the instructions to set up Remote Access and SSH

  2. Follow the instructions to set up a remote session in Visual Studio Code.

  3. 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.

Add the GitHub Repository

  1. Install GitHub from your VS Code SSH session.

  2. Change to your home directory and create a "repos" directory as follows,

    cd ~
    mkdir repos
    
  3. 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
    

Set up speed test

  1. run the following
sudo apt install apt-transport-https gnupg1 dirmngr lsb-release
  1. 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
  1. 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
  1. Update
sudo apt update
  1. Install speedtest
sudo apt install speedtest
  1. run it.
sudo apt install speedtest

Reference

Next Steps

Tutorial: Deploy and Configure a Device Provisioning Service (DPS)