JETSON NANO 2G使用笔记2-查看配置信息 第一个C程序 配置VNC 文件管理SCP

此处我用的无头模式。headless。也就是不用显示器 nano没有图形界面所以vnc无法正常工作

如果需要vnc第一次配置系统时请用显示器。 而不是通过usb初始化系统

0查看开发板信息

IP地址

ifconfig



查看内核版本

leonzhang@linux-nano:~$ cat /proc/version
Linux version 4.9.140-tegra (buildbrain@mobile-u64-4263) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #1 SMP PREEMPT Fri Oct 16 12:32:46 PDT 2020

leonzhang@linux-nano:~$ uname -a
Linux linux-nano 4.9.140-tegra #1 SMP PREEMPT Fri Oct 16 12:32:46 PDT 2020 aarch64 aarch64 aarch64 GNU/Linux


leonzhang@linux-nano:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic


查看gnome version

leonzhang@linux-nano:~$ gnome-shell --version
GNOME Shell 3.28.4


leonzhang@linux-nano:~$ sudo gdm3 --version
GDM 3.28.3

设置固定IP可以参考

https://www.jianshu.com/p/1fac6cdedd0d

 

1,使用putty通过串口连接开发板

 Serial COM3  115200

屏幕显示   输入用户名和密码


Ubuntu 18.04.5 LTS linux-nano ttyGS0

linux-nano login: leon
Password:
Last login: Wed Nov  4 20:17:01 HKT 2020 on ttyGS0
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.9.140-tegra aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

60 packages can be updated.
36 updates are security updates.

leonzhang@linux-nano:~$

升级软件apt

sudo apt-get update
sudo apt-get upgrade

更新会花费一些时间   耐心等待

会提示选择显示管理器

准备编写C程序 需要gcc g++和make支持  确认已经安装

leonzhang@linux-nano:~$ gcc
gcc: fatal error: no input files
compilation terminated.
leonzhang@linux-nano:~$ g++
g++: fatal error: no input files
compilation terminated.
leonzhang@linux-nano:~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
build-essential set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
leonzhang@linux-nano:~$ make
make: *** No targets specified and no makefile found.  Stop.
leonzhang@linux-nano:~$

安装一个代码编辑器nano

sudo apt-get install nano

编写C程序

#include<stdio.h>
int main()
{
        printf("hello jetson nano 2g\r\n");
        return 0;
}


ctl+w保存文件

ctrl+x退出编辑

编译并执行C程序


leonzhang@linux-nano:~$ gcc test.c  -o testc
leonzhang@linux-nano:~$ ./testc
hello jetson nano 2g
leonzhang@linux-nano:~$

 

查看python版本

leonzhang@linux-nano:~$ python
Python 2.7.17 (default, Sep 30 2020, 13:38:04)
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

exit()退出

leonzhang@linux-nano:/opt/nvidia/jetson-io/Jetson$ python3
python3     python3.6   python3.6m  python3m
leonzhang@linux-nano:/opt/nvidia/jetson-io/Jetson$ python3
Python 3.6.9 (default, Oct  8 2020, 12:12:24)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
 

 

下载安装vnc viewer  目前未成功

https://www.realvnc.com/download/file/viewer.files/VNC-Viewer-6.20.529-Windows.exe

开发板确认vino安装

leonzhang@linux-nano:~$ sudo apt install vino
Reading package lists... Done
Building dependency tree
Reading state information... Done
vino is already the newest version (3.22.0-3ubuntu1.1).
vino set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

https://developer.nvidia.com/embedded/learn/tutorials/vnc-setup
https://techdiscoverer.com/linux/how-to-enable-rdp-vnc-in-ubuntu-remotely-ssh/

leonzhang@linux-nano:~$ gsettings set org.gnome.Vino prompt-enabled false
leonzhang@linux-nano:~$ gsettings set org.gnome.Vino require-encryption false
leonzhang@linux-nano:~$ nmcli connection show
NAME                UUID                                  TYPE      DEVICE
Wired connection 1  74770786-c0f0-45f8-950b-a28c21e85b  ethernet  eth0
docker0             b2cf27c2-4c0a-4c76-8130-5954870b8c  bridge    docker0
l4tbr0              465309be-cfce-4c6f-8f27-962b92fcbb  bridge    l4tbr0

leonzhang@linux-nano:~$ gsettings set org.gnome.Vino enabled true
leonzhang@linux-nano:~$ gsettings set org.gnome.Vino require-encryption false
leonzhang@linux-nano:~$ gsettings set org.gnome.Vino prompt-enabled false
leonzhang@linux-nano:~$ export DISPLAY=:0
leonzhang@linux-nano:~$ /usr/lib/vino/vino-server
No protocol specified
Unable to init server: Could not connect: Connection refused
Cannot open display:
Run 'vino-server --help' to see a full list of available command line options
leonzhang@linux-nano:~$

 

  • 启动 Vino-server
/usr/lib/vino/vino-server 

/usr/lib/vino/vino-server --display=:0

 

 

开发板文件管理winscp

https://winscp.net/download/WinSCP-5.17.8-Setup.exe

Jetson Nano 2GB是一款由NVIDIA推出的开发者套件。它是一款小型而强大的计算机,专为AI和机器学习应用而设计。Jetson Nano 2GB系列文章提供了关于该开发者套件的一系列教程和指南,包括安装环境、调用摄像头、执行机器视觉应用、调节图像质量、颜色空间调节技巧、人脸定位、身份识别等内容。\[1\]\[2\] Jetson Nano 2GB的外包装盒采用了简洁的设计,与NVIDIA Jetson开发者套件系列一致。购买Jetson Nano 2GB开发者套件后,建议保留包装盒和防静电袋至少一年,因为该套件享有一年的质保期。如果在一年内出现质量问题,可能需要将原包装返回给销售商。\[3\] #### 引用[.reference_title] - *1* *2* [NVIDIA Jetson NANO 2GB新手入门教程汇总](https://blog.csdn.net/gg1234d/article/details/127668258)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [NVIDIA Jetson Nano 2GB 系列文章(1):开箱介绍](https://blog.csdn.net/m0_70785357/article/details/125545550)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值