关于linux:AI-on-the-Jetson-NanoJetson-Nano刷机教程-linux基本学习-opencv库

5次阅读

共计 3036 个字符,预计需要花费 8 分钟才能阅读完成。

原视频链接

AI on the Jetson Nano LESSON 1

一、SD 卡配置
1.
找到 NVIDIA 官网
搜寻 Jetson Nano getting started
https://developer.nvidia.com/…

2.
第三页下载 INSTRUCTIONS FOR WINDOWS
https://developer.nvidia.com/…
accept 相干协定
https://www.sdcard.org/downlo…
下载 SD CARD FORMATTER

3.
搜寻  balenaEtcher 而后 Download for Windows
https://www.balena.io/etcher/

4. 第三页下载 Jetson Nano Developer Kit SD Card Image 5.0G

下载实现 …

1. 关上 SD CARD FORMATTER 插入      SD 卡     或者     计算机管理 -> 删除卷 -> 新加卷

2. 下载之后关上 balenaEtcher

3.
select image 下面的压缩包
select target 本人的 sd 卡

sd 卡拆卸实现 …

二、硬件根本介绍以及组装
待补图 …

1. 底板四个孔装置通明底板
2. 散热器下面四个孔装置风扇
3. 两根进去的线是 wifi 线,关上散热器上面的两个小螺丝,揭起散热器,插入 wifi
4. 装置风扇,风扇的电源在散热器上面的四个接口上,电源入口下面有一个 jumper 记得肯定要插上去
5. 各种装置侧板,插入 sd 卡
6. 顶板下面有相机,相机的入口在 jumper 下面

刷机

1. 换源 相似博客 https://www.jianshu.com/p/eb9…

wget -O /etc/apt/sources.list https://repo.huaweicloud.com/…;apt updatesudo apt upgrade 记得在执行上一命令之前,先将 /etc/apt/sources.list 备份

2. 更改为无明码模式
输出命令 sudo visudo
到最上面 按 O 进入编辑模式
删除# 输出命令 oucjhxy ALL=(ALL) NOPASSWD:ALL
按 esc 输出:wq 退出
3. 重启电脑 sudo shutdown now

重启系统命令 sudo shutdown now
关上终端命令 crtl+alt+T
分明命令窗口 clear

AI on the Jetson Nano LESSON 2

根本命令
ls 展现以后文件下的目录,蓝色为文件夹,红色为文件

cd 转换到其余目录
(1)cd 进入用户主目录
(2)cd ~ 进入用户主目录
(3)cd – 返回进入此目录之前所在目录
(4)cd .. 返回上一级目录
cd /home 相当于查看有多少普通用户的家目录
cd /home/username = cd home + cd username 回到本来

cd text 该目录下有
cd /text 该目录下没有

pwd 看本人在哪里

sudo apt-get install xxx
sudo apt-get remove xxx

mkdir xxx 新建文件夹
rmdir xxx 新建文件夹
cat xxx.xxx 显示文件内容
mv xxx.xx xxx.xx 扭转文件名称
mv xxx.xx / / 扭转保留地位
mv *.xx / / 扭转所有相似.xx 文件保留地位
mv . / / 扭转所有文件保留地位
 

cp xxx.xx xxx.xx 复制文件内容,批改名字
rm xxx.xx 删除文件或者空文件夹
rm -r xxx 删除文件夹里的所有货色
sudo rm -r . 全没了

python 关上 python
Crtl+D 退出

vim 教程 https://www.runoob.com/linux/…

AI on the Jetson Nano LESSON 3

xxx> xxx.txt 把 xxx 目录下的文件以残缺格局列出保留至 mytxt 文件里 如果 mytxt 文件不存在会新建,如果存在??????????????
xxx>> xxx.txt  追加内容

sort (-r) xxx.txt 按字母程序输入文件内容
sort -M (-r) xxx.txt 按前三个字母按照月份缩写排序
sort -n (-r) xxx.txt 按数字大小输入文件内容

sort 命令应用 https://www.cnblogs.com/Baron…

find ~ -name“xxx.txt”

| 示意管道,上一条命令的输入,作为下一条命令参数
xxx | tee my2.txt my3.txt   tee 显示到屏幕上并且保留在 my2,my3 中

grep  Audi myCars.txt 寻找 Audi 在 myCars.txt 中是否存在
- i 疏忽大小写
- r 递归目录下所有文件

ls - a 列出暗藏文件
ls - s 列出文件大小

AI on the Jetson Nano LESSON 4

近程连贯
1.ifconfig 查看本人的 ip 地址
看到本人 wifi 地址的 ip
2. 下载 putty
https://www.chiark.greenend.o…
输出 ip 地址抉择 ssh 连贯

输出 nano 的用户名,输出明码

AI on the Jetson Nano LESSON 5

“{:.2}”.format(z)小数点后两位输入

x = input(“xxx”)  x 为字符串
x = float(input(“xxx”) )x 为浮点数

小知识点
1.if():
2.and
3.for i in range(1, 11, 1):
步长不能为小数
想用小数
import numpy as np
for i in np.range(-.5, .5, .1) 不输入 0.5

np.linspace(start, stop, num = 50)创立等差数列 输入的最初一个数为 stop
数组增加元素  .append()

AI on the Jetson Nano LESSON 8

sudo apt-get install curl

下载 vscode(分清 arm 和 amd 架构)
https://packagecloud.io/headm…

而后 sudo dpkg -i(安装包全称)

AI on the Jetson Nano LESSON 9
sudo apt-get install python-matplotlib

np.__ version__ 查看版本信息

matplotlib 库

plt.plot(x, y,‘b-*’, linewidth = 3, markersiaze = 7,label =‘Red Line’)

plt.grid(True)  有网格线

plt.xlabel(‘x’)

plt.ylable(‘y’)

plt.title(‘title’)

plt.axis([0, 5, 2, 11])  坐标

plt.legend(loc =‘lower center’)底部图例‘best’‘upper center’

numpy 库
np.arange(-4, 4, 1)
np.square(x)
np.linspace(start, stop, num = 50) 创立等差数列 输入的最初一个数为 stop
np.pi
np.sin(x)
np.cos(x)

AI on the Jetson Nano LESSON 10

cv2 版本 python3 和 python2 不匹配解决办法
sudo apt-get install python3-opencv
sudo apt-get remove python3-opencv
注:crazy, but useful

AI on the Jetson Nano LESSON 11

sudo apt-get install libcanberra-gtk-module

搜寻 cheese,呈现相机设施

AI on the Jetson Nano LESSON 12

toptechboy.com 搜寻 jetson nano 能看到代码

正文完
 0