Skip to content

Instantly share code, notes, and snippets.

@Jerrylum
Created July 10, 2022 20:20
Show Gist options
  • Save Jerrylum/2720f404269a63f2a13a51fd637945ab to your computer and use it in GitHub Desktop.
Save Jerrylum/2720f404269a63f2a13a51fd637945ab to your computer and use it in GitHub Desktop.
How to program your robot via remote SHH.
  1. Connect your Jetson / Raspberry PI to your laptop computer via ethernet cable.

  2. Find your Jetson / Raspberry Pi's internal IP address by typing the command arp -a on Windows. For example, the highlighted IP in the image below is the connected Raspberry Pi. It usually comes with the type dynamic. image

  3. Install the extension Remote - SSH on your computer. You are also recommended to install the following extensions. image

  4. Follow the instruction on https://code.visualstudio.com/docs/remote/ssh#_connect-to-a-remote-host, step 2 to step 6. The SSH Host should be the user name + the IP address, like: cityurbc@169.254.56.141

  5. If this is your first time connecting to your Jetson / Raspberry Pi remotely. You need to install the extensions you want to use on the remote side. Pay a visit to https://code.visualstudio.com/docs/remote/ssh#_managing-extensions for more information.

  6. You can also write and upload Arduino program in VS Code. Please follow the instruction on https://dev.to/codemee/shi-yong-vscode-arduino-yan-shen-tao-mo-zu-kai-fa-arduino-22ne
    Make sure you select the right sketch file, board, and serial port. image
    After that, click the upload button at the top-right coner. image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment