Jetson NX刷机教程

一、将系统写入tf卡

二、基础配置

1.开机,选择English,设置账号密码,一直continue即可;

2.配置cuda路径,换源,安装pip3等:

1)已经安装cuda但查看版本时显示:nvcc: command not found

解决方法:添加环境变量,打开~/.bashrc ,添加环境变量如下: 

sudo vi ~/.bashrc #打开~/.bashrc

##添加如下配置,cuda路径以自己的机子为主,保存
export LD_LIBRARY_PATH=/usr/local/cuda/lib
export PATH=$PATH:/usr/local/cuda/bin 

##配置生效
source ~/.bashrc

2)换清华源:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak    #为防止误操作后无法恢复,先备份
sudo rm /etc/apt/sources.list
sudo vi /etc/apt/sources.list

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main multiverse restricted universe

##保存后
sudo apt-get update

3)安装pip3:

sudo apt install python3-pip
#查看pip3版本
pip3 -V #出现版本号意味着安装成功

三、安装docker

sudo apt-get update #更新依赖
sudo apt-get install docker.io

修改docker配置:换源,信任私人docker仓库等。

vi /etc/docker/daemon.json
{
    "default-runtime":"nvidia",
    "runtimes": {
        "nvidia": {
            "path": "nvidia-container-runtime",
            "runtimeArgs": []
        }
    },
    "registry-mirrors": [
            "https://registry.docker-cn.com",
            "http://hub-mirror.c.163.com",
            "https://docker.mirrors.ustc.edu.cn",
            "https://j3h8nmwc.mirror.aliyuncs.com"],  #镜像换国内源
    "insecure-registries": ["ip:port"]    #此处是存有算法镜像的私有仓库地址
}

#加载重启docker
sudo systemctl daemon-reload
sudo systemctl restart docker

四.安装jetson-stats查看cpu等资源使用情况

sudo pip3 install jetson-stats

五.安装ffmpeg

sudo apt-get install ffmpeg

 

你可能感兴趣的:(Jetson)