Use Remote VSC to Edit Vue.js+Go on VirtualBox (1)

After editing, build Docker and push to an edge box (Jetson)

Here is the physic connection: Macbook ← → Home router ← →Edge box Jetson

VSC editor and VirtualBox both are running on Macbook.

VirtualBox has my docker build system.

The problem is: running vim into VirtualBox is slow, sometimes even freeze the whole VirtualBox.

Solution: Run VSC editor outside of VirtualBox, after finishing with coding, only run docker build on VirtualBox, then push the docker image down to the edge box Jetson.

Assuming you already installed VSC, it is very easy, there are many excellent articles and manuals online.

Step by step:

Installation

  • rmate @VirtualBox
sudo wget  sudo curl https://raw.githubusercontent.com/sclukey/rmate-python/master/bin/rmate  --output /usr/local/bin/rmatesudo chmod a+x /usr/local/bin/rmate
  • install sshd @VirtualBox, if you have not.
sudo apt-get install openssh-server

to check the sshd is up or not, do following command:

sudo service ssh status

RUN IT

  • Connect to VirtualBox via ssh
ssh -R 52698:127.0.0.1:52698 192.168.1.75
  • Mapping a file to VSC from VirtualBox
rmote nu_gan.py

will display like this

Next post, we will be talking about how to modify vue.js and how it works with Go, Docker, and Jetson.

Medical AI, computer vision, interest:self-supervised learning+annotation, imbalanced datasets, AI in embedded devices. Personal AI project: cervic.hopto.org