Skip to content

KulankashVictor/headless-jetson-nano-setup

Repository files navigation

Headless Jetson Nano Setup.

This instruction is for Headless Jetson Nano 2GB/4GB setup with Micro-USB cable Without Using Monitor. USB Dongle is required for Wifi Connection using Wifi adapter. Jupyter Notebooks and Jupyter Lab setup included. JupyterLab doesn't need docker. Torch, Torch2trt, ONNX, ONNXRuntime-GPU Torchvision and TensorFlow Installation Included. Update to Python3 on the Jetson is also included.

Colaborators

Victor Moses Kulankash

Table of Contents

Install Jetson Nano Image

Download balenaEtcher and install it.
Download Jetson Nano Developer Kit SD Card Image, and write it on a microSD card (Preferably 32GB or More) with balenaEtcher.

Boot Jetson Nano

Insert the microSD card to Jetson Nano.
Connect Jetson Nano with a PC/Laptop using Micro-USB cable.
Power On the Jetson Nano and wait for 1-2 minutes.
Download PuTTY.
Open Putty, select connection type serial.
The serial line value COM# can be found from following in Windows OS.

Device Manager > Ports (COM&LPT) > USB Serial Device (COM#)

Set the Baud Rate on your Selected Serial COM Port to 115200 and connect
Once connected, go through initial setup until Network Configuration.
Select dummy0: Unknown Interface
Once it fails to connect, select Do not configure the network at this time
Alternatively you could use Ethernet internet connection for direct network connectivity Go through the rest of the steps with the default settings. Once completed, wait couple of minutes and go to next step.

Wifi Connection Setup

Open Putty and select Serial connection setup using COM Port
Run following command and reboot Jetson Nano.

sudo systemctl restart network-manager.service

Log into Jetson Nano and run following command to detect availability of your wifi SSID.

nmcli device wifi list

Connect to wifi using following command.

sudo nmcli device wifi connect <SSID> password <Wifi_Password>

Run following command to get the IP address (2nd one).

hostname -I

Open Putty and connect using the IP address.
Once login completes, the Micro-USB cable can be disconnected.
If the steps above don't work you could provide internet connectivity by connecting an Ethernet cable to the Nano's Ethernet port.

Installing Python3

Checks if Python3 is already installed and installs python3 on your jetson. To see which version of Python 3 you have installed, run:

python3 --version

if there is no python3 installation, you can easily install Python 3.6 with the following commands:

sudo apt-get update
sudo apt-get install python3.6

Download Repository

git clone https://github.com/DeKUT-DSAIL/Headless-Jetson-Nano-Setup.git

One Command to Install All Necessary Dependancies

Installs Jupyter Notebook , Jupyter Lab, PyTorch, Torchvision, Torch2trt, ONNX, ONNXRuntime-GPU and Inputs.
Enables I2C Permissions.
Sets Jetbot Stats.
Takes aroud 20 minutes to 40 minutes.

cd ~/Headless-Jetson-Nano-Setup
chmod +x ./*.sh && ./install.sh

Enable I2C Permissions

sudo usermod -aG i2c $USER

Install Jupyter Notebooks and Jupyter Lab

cd ~/Headless-Jetson-Nano-Setup
chmod +x ./jupyter.sh && ./jupyter.sh

Open Jupytar Lab in a browser with <IP Address>:8888 link. Default password is jetbot.
The interface should look like this (without watermark).

JupytarLab Interface
Reference

Setup Jetbot Stats

Setup Jetbot Stats Service to show Jebot status in OLED display.

cd ~/Headless-Jetson-Nano-Setup
chmod +x ./jetbot_stats.sh && ./jetbot_stats.sh

Install Torch and TorchVision

Installs PyTorch and TorchVision.

cd ~/Headless-Jetson-Nano-Setup
chmod +x ./pytorch.sh && ./pytorch.sh

PyTorch Wheel

Install Torch2trt and ONNX

Installs Torch2trt, ONNX and ONNXRuntime-GPU.

cd ~/Headless-Jetson-Nano-Setup
chmod +x ./torch2trt_onnx.sh && ./torch2trt_onnx.sh

Install TensorFlow

Installs TensorFLow.

cd ~/Headless-Jetson-Nano-Setup
chmod +x ./tensorflow.sh && ./tensorflow.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published