Jetson Tx2 指令

版本信息
cuda 版本 Jetpack 版本 cudnn 版本

nvcc -V   10.2
cat	/etc/nv_tegra_release
cat 	/usr/include/cudnn_version.h | grep CUDNN_MAJOR -A 2 			8.2.1

查看 内核 磁盘 内存 系统 情况

uname -a
df -lh
free -m
cat /etc/lsb-release

jtop 使用

pip3 install protobuf
sudo pip3 install -U jetson-stats
sudo jtop

风扇调节

sudo /usr/bin/jetson_clocks
cat /sys/devices/pwm-fan/target_pwm

修改为工作模式0,重启后保持

sudo nvpmodel -m 0

查询当前模式

sudo nvpmodel -q verbose

查询cpu/gpu的cur、min、max频率,cpu在线数量

sudo jetson_clocks --show

在这里插入图片描述

python 版本管理

whereis python3.8
sudo update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.8 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
sudo update-alternatives --config python3
whereis pip3.8
sudo update-alternatives --install /usr/bin/pip3 pip3 /usr/local/bin/pip3.8 1
sudo update-alternatives --config pip3

设置开机自动启动wifi 模式

# 写一个脚本
touch 	~/script/connect_wifi.sh
vi connect_wifi.sh

#!/bin/bash
# 设置无线网络的SSID和密码
SSID="Your_WiFi_SSID"
PASSWORD="Your_WiFi_Password"
# 尝试连接无线网络
nmcli device wifi connect "$SSID" password "$PASSWORD"
chmod a+x connect_wifi.sh
# 添加到开机启动项
touch /etc/rc.local

问题:

jetson@ubuntu:/etc/ld.so.conf.d$ whereis libpython3.8.so.1.0
libpython3.8.so.1: /usr/lib/libpython3.8.so.1.0 /usr/local/lib/libpython3.8.so.1.0

cd /etc/ld.so.conf.d
sudo touch python3.conf
vi python3.conf
/usr/local/lib/python3.8/ 

$ lsb_release -a
Traceback (most recent call last):
File “/usr/bin/lsb_release”, line 25, in # 这个路径很重要
import lsb_release
ModuleNotFoundError: No module named ‘lsb_release’

sudo cp /usr/lib/python3/dist-packages/lsb_release.py /usr/bin/

ERROR: virtualenvwrapper could not find virtualenv in your path

vi ~/.bashrc
VIRTUALENVWRAPPER_VIRTUALENV=/home/YOUR_USERNAME/.local/bin/virtualenv
source ~/.bashrc

python3 setup.py install --user
Error:llegal instruction (core dumped)

更换 numpy 包

https://forums.developer.nvidia.com/t/illegal-instruction-core-dumped/165488
https://blog.csdn.net/cau_weiyuhu/article/details/128026029

  • 10
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值