这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » 软件与操作系统 » Jetson-nano小车ROS2构建——ubutnu18.04到ubuntu2

共13条 1/2 1 2 跳转至

Jetson-nano小车ROS2构建——ubutnu18.04到ubuntu20.04

高工
2023-01-29 14:38:09     打赏

1.系统升级ubuntu18.04-ubuntu20.04

All of oprations command .

$ uname -m && cat /etc/*release

$ sudo apt purge chromium-* -y

$ sudo apt purge libreoffice-* -y

$ sudo apt-get update

$ sudo apt upgrade

$ history

$ reboot

$ vi /etc/update-manager/release-upgrades

$ sudo vi /etc/update-manager/release-upgrades

$ sudo apt update

$ sudo apt dist-upgrade

$ history

$ sudo reboot

$ ls

$ sudo do-release-upgrade -c

$ sudo do-release-upgrade

$ sudo vi /etc/gdm3/custom.conf

$ sudo vi /etc/X11/xorg.conf

$ sudo vi /etc/update-manager/release-upgrades

$ sudo reboot

$ sudo do-release-upgrade -c

$ vi /etc/gdm3/custom.conf

$ cd /usr/share/nvpmodel_indicator/

$ ls

$ sudo mv nv_logo.svg no_logo.svg

$ uname -a

$ uname -m && cat /etc/*release

$ sudo reboot

$ df -l

$ history


Oprations log .

loong@ubuntu:~$ uname -m && cat /etc/*release

aarch64

DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=18.04

DISTRIB_CODENAME=bionic

DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"

R32 (release), REVISION: 7.2, GCID: 30192233, BOARD: t210ref, EABI: aarch64, DATE: Wed Apr 20 21:34:48 UTC 2022

NAME="Ubuntu"

VERSION="18.04.6 LTS (Bionic Beaver)"

ID=ubuntu

ID_LIKE=debian

PRETTY_NAME="Ubuntu 18.04.6 LTS"

VERSION_ID="18.04"

HOME_URL="https://www.ubuntu.com/"

SUPPORT_URL="https://help.ubuntu.com/"

BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"

PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"

VERSION_CODENAME=bionic

UBUNTU_CODENAME=bionic


loong@ubuntu:~$ sudo apt purge chromium-* -y

[sudo] password for loong:

Reading package lists... Done

Building dependency tree

Reading state information... Done

。。。

Purging configuration files for chromium-browser (99.0.4844.84-0ubuntu0.18.04.1) ...

loong@ubuntu:~$ sudo apt purge libreoffice- -y*

Reading package lists... Done

Building dependency tree

Reading state information... Done

。。。


loong@ubuntu:~$ vi /etc/update-manager/release-upgrades

loong@ubuntu:~$ sudo vi /etc/update-manager/release-upgrades

[sudo] password for loong:

loong@ubuntu:~$ sudo vi /etc/update-manager/release-upgrades

loong@ubuntu:~$ sudo apt update

Hit:1 http://ports.ubuntu.com/ubuntu-ports bionic InRelease

Hit:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease

Hit:2 https://repo.download.nvidia.cn/jetson/common r32.7 InRelease

Hit:5 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease

Hit:4 https://repo.download.nvidia.cn/jetson/t210 r32.7 InRelease

Hit:6 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease

Reading package lists... Done

Building dependency tree

Reading state information... Done

All packages are up to date.

loong@ubuntu:~$ sudo apt dist-upgrade

Reading package lists... Done

Building dependency tree

Reading state information... Done

Calculating upgrade... Done

The following packages were automatically installed and are no longer required:

gstreamer1.0-gtk3 libabw-0.1-1 libboost-date-time1.65.1 libboost-filesystem1.65.1

libboost-iostreams1.65.1 libboost-locale1.65.1 libcdr-0.1-1 libclucene-contribs1v5

libclucene-core1v5 libcmis-0.5-5v5 libcolamd2 libe-book-0.1-1 libeot0 libepubgen-0.1-1

libetonyek-0.1-1 libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1 libmhash2

libmspub-0.1-1 libmwaw-0.3-3 libmythes-1.2-0 libneon27-gnutls libodfgen-0.1-1

liborcus-0.13-0 libpagemaker-0.0-0 libraptor2-0 librasqal3 librdf0 librevenge-0.0-0

libsuitesparseconfig5 libvisio-0.1-1 libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4

libxmlsec1 libxmlsec1-nss libyajl2 lp-solve

Use 'sudo apt autoremove' to remove them.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


loong@ubuntu:~$ sudo reboot

Connection to 192.168.193.124 closed by remote host.

Connection to 192.168.193.124 closed.

$ sudo vi /etc/update-manager/release-upgrades

Prompt=lts

loong@ubuntu:~$ sudo do-release-upgrade -c

[sudo] password for loong:

Checking for a new Ubuntu release

New release '20.04.5 LTS' available.

Run 'do-release-upgrade' to upgrade to it.

loong@ubuntu:~$ sudo do-release-upgrade

Checking for a new Ubuntu release

Get:1 Upgrade tool signature [1,554 B]

Get:2 Upgrade tool [1,337 kB]

Fetched 1,339 kB in 6s (152 kB/s)

authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'

extracting 'focal.tar.gz'

Reading cache

Checking package manager

Continue running under SSH?

This session appears to be running under ssh. It is not recommended

to perform a upgrade over ssh currently because in case of failure it

is harder to recover.

If you continue, an additional ssh daemon will be started at port

'1022'.

Do you want to continue?

Continue [yN] y

Starting additional sshd

To make recovery in case of failure easier, an additional sshd will

be started on port '1022'. If anything goes wrong with the running

ssh you can still connect to the additional one.

If you run a firewall, you may need to temporarily open this port. As

this is potentially dangerous it's not done automatically. You can

open the port with e.g.:

'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT'

To continue please press [ENTER]

Reading package lists... Done

Building dependency tree

Reading state information... Done

No snaps are installed yet. Try 'snap install hello-world'.

Checking for installed snaps

Calculating snap size requirements

Updating repository information

Third party sources disabled

Some third party entries in your sources.list were disabled. You can

re-enable them after the upgrade with the 'software-properties' tool

or your package manager.

To continue please press [ENTER]

Get:1 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]

Get:2 http://ports.ubuntu.com/ubu

24 installed packages are no longer supported by Canonical. You can

still get support from the community.

37 packages are going to be removed. 601 new packages are going to be

installed. 1782 packages are going to be upgraded.

You have to download a total of 1,283 M. This download will take

about 5 minutes with your connection.

Installing the upgrade can take several hours. Once the download has

finished, the process cannot be canceled.

Continue [yN] Details [d]y

docker config select [yes] 

display [gdm]

[when you install compele, don't select restart system, then execute below command to config system files]

loong@ubuntu:~$ vi /etc/gdm3/custom.conf

#WaylandEnable=false

loong@ubuntu:~$ vi /etc/X11/xorg.conf

Section "Device"

Identifier "Tegra0"

Driver "nvidia"

loong@ubuntu:~$ sudo vi /etc/update-manager/release-upgrades

Prompt=never

[OK. now you can reboot system.]

loong@ubuntu:~$ uname -m && cat /etc/*release

aarch64

DISTRIB_ID=Ubuntu

DISTRIB_RELEASE=20.04

DISTRIB_CODENAME=focal

DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"

R32 (release), REVISION: 7.2, GCID: 30192233, BOARD: t210ref, EABI: aarch64, DATE: Wed Apr 20 21:34:48 UTC 2022

NAME="Ubuntu"

VERSION="20.04.5 LTS (Focal Fossa)"

ID=ubuntu

ID_LIKE=debian

PRETTY_NAME="Ubuntu 20.04.5 LTS"

VERSION_ID="20.04"

HOME_URL="https://www.ubuntu.com/"

SUPPORT_URL="https://help.ubuntu.com/"

BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"

PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"

VERSION_CODENAME=focal

UBUNTU_CODENAME=focal

[below command will mv nv logo to non, because logo become wired :)]

loong@ubuntu:~$ sudo mv /usr/share/nvpmodel_indicator/nv_logo.svg /usr/share/nvpmodel_indicator/no_logo.svg

loong@ubuntu:~$ opencv_version -v

General configuration for OpenCV 4.2.0 =====================================

Version control: unknown

Extra modules:

Location (extra): /build/opencv-EQP6mK/opencv-4.2.0+dfsg/contrib/modules

Version control (extra): unknown

loong@ubuntu:~$ nvcc -V

nvcc: NVIDIA (R) Cuda compiler driver

Copyright (c) 2005-2021 NVIDIA Corporation

Built on Sun_Feb_28_22:34:44_PST_2021

Cuda compilation tools, release 10.2, V10.2.300

Build cuda_10.2_r440.TC440_70.29663091_0






关键词: Jetson-nano     ros     ubuntu20.    

高工
2023-01-29 21:40:01     打赏
2楼

感谢分享


专家
2023-01-29 21:40:44     打赏
3楼

感谢分享


专家
2023-01-30 01:31:11     打赏
4楼

感谢楼主的分享,很实用了。


高工
2023-01-30 03:42:41     打赏
5楼

感谢楼主的分享,很实用了。


专家
2023-01-30 07:45:28     打赏
6楼

感谢楼主的分享


专家
2023-01-30 08:03:01     打赏
7楼

学习了,感谢楼主的分享


院士
2023-01-30 08:09:07     打赏
8楼

感谢分享


专家
2023-01-30 08:20:00     打赏
9楼

谢谢分享


专家
2023-01-30 08:28:22     打赏
10楼

感谢分享!


共13条 1/2 1 2 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]