My Jetson AGX Xavier randomly died during my coding-debugging…It is kind of dead but not fully dead so I want to have a bash script automatically reboot it when it is dead.

  1. generate your local ssh key by
$ ssh-gen 

2. copy to local .ssh by

$ cat .ssh/ >> .ssh/authorized_keys

3. run following script

#! /bin/bash
for ((i=1;i==1;i=1))
ssh -o Batchmode=yes -o ConnectTimeout=3 exit
if [ $? != "0" ]; then
echo "reboot"
sudo reboot
echo "sshd alive..."
sleep 10



Let add a new Textbox to Gradio framework, call it Textbo1

  • Add new class Textbo1 in
  • make the new copy name of Textbo1 of the directory named “Textbox”
$ cp -r 

$ cp -r /mnt/docker/github/gradio/ui/packages/app/src/components/input/Textbox/mnt/docker/github/gradio/ui/packages/app/src/components/input/Textbo1
  • Edit following file



$ pip install gradio
  • from local network:
$ pip install
  • from local machine:
$ pip install ../gradio
  • from local and auto sync modification:
$ pip install -e .

Uninstall for pip installed

$ pip uninstall gradio
  • Uninstall for local installed:
$ rm  /usr/local/lib/python3.8/dist-packages/easy-install.pth
$ rm /usr/local/bin/gradio
$ rm -r /usr/local/lib/python3.8/dist-packages/gradio
$ rm /usr/local/lib/python3.8/dist-packages/gradio.egg-link

Build from source

  • install pnpm, (Note: pnpm latest version won’t work with build gui, use 6.x instead.)
$ wget -qO- | PNPM_VERSION=6.32.11 sh

Add path to .bashrc

export PATH=$PATH:/root/.local/share/pnpm/


$ source ~/.bashrc
  • install backend:
$ bash scripts/
  • build front end:
$ bash scripts/

reference guide:



Paul Xiong

Coding, implementing, optimizing ML annotation with self-supervised learning, TLDR: doctor’s labeling is the 1st priority for our Cervical AI project.