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

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

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

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

会提示选择显示管理器

c591f1c2dd238d0cc6bff6d7c7a6e374.png

22bb825dc0c8c78d1495e32b88a6e526.png

准备编写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

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()退出

下载安装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.

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

开发板文件管理winscp

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

29f793bc603dd9c88c3618b1cf1ffa73.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值