Jetson nano更新源的设定
因为是第二次重新装整个系统了,所以就有一个问题,为什么我会第二次装整个系统。直接原因就是几天之前整个系统的崩溃,根本原因可能就是因为我换掉了本来系统设定的更新源(也有可能是因为别的原因,我现在还不确定)。
然而Jetson nano的架构与我们经常使用的电脑的AMD架构的Ubuntu不同,采用的架构为aarch64架构的Ubuntu 18.04.2 LTS系统,因此将更新源替换为国内的清华源、阿里源等的时候可能就会出错,安装其他架构的包,或者有可能导致某些库找不到安装地址,从而导致报错。
最后一定要说的是!!!!
如果因为等待的太久而一定要更换更新源的话!!!
一定要记得保存原来的更新源!!!
一定要记得保存原来的更新源!!!
一定要记得保存原来的更新源!!!
以下为保存更新源的代码段:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
第一行代码是为了打开更新源。下面的代码段为清华源:
sudo gedit /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
sudo apt-get full-upgrade
假如没有更换更新源,很可能会因为网络的问题更新过程之中报错(如下),而这个时候不用着急,按下方向键↑键,重复上个命令,就会接着上次的更新继续。
Get:309 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 aptdaemon all 1.1.1+bzr982-0ubuntu19.5 [13.5 kB]
Get:310 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 python3-aptdaemon all 1.1.1+bzr982-0ubuntu19.5 [77.1 kB]
Get:311 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 p11-kit arm64 0.23.9-2ubuntu0.1 [83.5 kB]
Fetched 648 MB in 16min 2s (674 kB/s)
E: Failed to fetch https://repo.download.nvidia.com/jetson/common/pool/main/v/vpi/vpi_0.4.4_arm64.deb Could not handshake: The TLS connection was non-properly terminated. [IP: 23.50.233.166 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
最后我还是要说,我不建议大家替换原来的更新源!!
Jetson nano的远程登录
因为Jeron nano平时大部分时间其实并不需要连接一块屏幕从而导致占用桌面的空间,所以我们时常使用一些远程登录软件来对Jetson nano 进行控制,平时我们还是可以采用win系统来使我们处理各项事情更加的方便(可以登录微信什么的,可不是为了摸鱼呦)。
我也使用过好几个远程登录软件了,比如说
(1)PuTTY:这个软件整个的界面就十分的接近终端的界面,各种命令也会用不同的颜色标注出来,比较好用,容易安装,比较推荐
(2)Pycharm:使用win系统的Pycharm也可以远程登录,如何登录在CSDN上别的大佬的文章中就可以看到,我这里就不再赘述了,综合而言我并不太推荐Pycharm进行远程登录,主要原因是不知道为什么,在使用Pycharm的时候,在遇到中文提示的时候经常会出现乱码(因为我把Nano端的语言设置为了中文,如果你没设置的话当我没说,哈哈哈),当然好处自然就是因为我们使用Pycharm的比较多,用起来比较熟练没有学习成本(其实别的学习成本也不大的),一般推荐
(3)Jupyterlab:Jupyterlab其实就是Jupyternotebook的升级版,当然大家如果没有用过Jupyternotebook问题也不大,十分的容易上手,直接使用我们常用的浏览器就可以登录,我是最推荐使用这个的。接下来来介绍一下Jupyterlab的安装
sudo apt-get update
sudo apt install nodejs npm
nodejs模块的版本过低接下来可能会报错,如果报错的话需要对其进行更新
然后安装jupyterlab
sudo pip3 install jupyter jupyterlab
sudo jupyter labextension install @jupyter-widgets/jupyterlab-manager
sudo jupyter labextension install @jupyterlab/statusbar
生成相应配置文件:(如果某个文件报权限问题,可以尝试用 sudo chmod 777 赋予权限)
jupyter lab --generate-config
jupyter notebook password
到这里整个jupyterlab大致就安装完成了。
Jupyterlab的登录方式也十分的简单,先在Jetson nano端输入ifconfig查询IP地址
然后在其他的电脑的网页端网址上输入刚才查询到的IP后加:8888(包括冒号)即可进行登录
![](https://img-blog.csdnimg.cn/20210720094736543.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0xZaWlpaWlpaQ==,size_16,color_FFFFFF,t_70)
整个界面就是这样的。今天的介绍就到这里了,我也继续我更新我的库去了(好慢啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊)