赞
踩
如果需要vnc第一次配置系统时请用显示器。 而不是通过usb初始化系统
- 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
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:~$
-
- sudo apt-get update
- sudo apt-get upgrade
更新会花费一些时间 耐心等待
会提示选择显示管理器
- 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:~$
- 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()
开发板确认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:~$
/usr/lib/vino/vino-server
/usr/lib/vino/vino-server --display=:0
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。