apollo 6.0 【開發版】從安裝到啟動,保姆級全教程
1.必備軟體安裝
1.1安裝Ubuntu linux
1.2.安裝NVIDIA GPU DRIVER
shaw@p1:~$ uname -r 5.4.0-81-generic shaw@p1:~$ ubuntu-drivers devices == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == modalias : pci:v000010DEd00001FB8sv000017AAsd0000229Fbc03sc00i00 vendor : NVIDIA Corporation driver : nvidia-driver-460-server - distro non-free driver : nvidia-driver-470 - distro non-free recommended driver : nvidia-driver-418-server - distro non-free driver : nvidia-driver-450-server - distro non-free driver : nvidia-driver-460 - distro non-free driver : xserver-xorg-video-nouveau - distro free builtin == /sys/devices/pci0000:00/0000:00:1d.6/0000:52:00.0 == modalias : pci:v00008086d00002723sv00008086sd00000080bc02sc80i00 vendor : Intel Corporation manual_install: True driver : backport-iwlwifi-dkms - distro free
shaw@p1:~$ sudo apt-add-repository multiverse shaw@p1:~$ sudo apt-get update shaw@p1:~$ sudo apt-get install nvidia-driver-470 ... update-initramfs: Generating /boot/initrd.img-5.4.0-81-generic I: The initramfs will attempt to resume from /dev/nvme1n1p2 I: (UUID=3d8c08e6-e615-4e5d-94ef-ca7744ce78c1) I: Set the RESUME variable to override this.
shaw@p1:~$ nvidia-smi Sun Aug 22 14:03:06 2021 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 470.57.02 Driver Version: 470.57.02 CUDA Version: 11.4 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 Quadro T2000 Off | 00000000:01:00.0 Off | N/A | | N/A 55C P8 3W / N/A | 174MiB / 3911MiB | 6% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 1253 G /usr/lib/xorg/Xorg 97MiB | | 0 N/A N/A 1509 G /usr/bin/gnome-shell 74MiB | +-----------------------------------------------------------------------------+
1.3.安裝docker engine
shaw@p1:~$ sudo apt install docker.io ... Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service. Setting up bridge-utils (1.5-15ubuntu1) ... Setting up ubuntu-fan (0.12.10) ... Created symlink /etc/systemd/system/multi-user.target.wants/ubuntu-fan.service → /lib/systemd/system/ubuntu-fan.service. Setting up pigz (2.4-1) ... Setting up docker.io (20.10.7-0ubuntu1~18.04.1) ... Adding group `docker' (GID 127) ... Done. Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service. Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket. Processing triggers for systemd (237-3ubuntu10.51) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Processing triggers for ureadahead (0.100.0-21) ... ureadahead will be reprofiled on next reboot shaw@p1:~$ docker [tab] docker dockerd docker-init docker-proxy shaw@p1:~$ docker --version Docker version 20.10.7, build 20.10.7-0ubuntu1~18.04.1
shaw@p1:~$ sudo groupadd docker shaw@p1:~$ sudo usermod -aG docker $USE
shaw@p1:~$ systemctl start docker && systemctl enable docker shaw@p1:~$ docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world b8dfde127a29: Pull complete Digest: sha256:0fe98d7debd9049c50b597ef1f85b7c1e8cc81f59c8d623fcb2250e8bec85b38 Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly.
shaw@p1:~$ service docker start Failed to start docker.service: Unit docker.service is masked. shaw@p1:~$ systemctl unmask docker.service shaw@p1:~$ systemctl unmask docker.socket shaw@p1:~$ systemctl start docker.service shaw@p1:~$ service docker start docker run hello-world
1.4安裝NVIDIA Container Toolkit
distribution=$(. /etc/os-release;echo $ID$VERSION_ID) curl -s -L | sudo apt-key add - curl -s -L | sudo tee /etc/apt/sources.list.d/nvidia-docker.list sudo apt-get -y update sudo apt-get install -y nvidia-docker2
sudo systemctl restart docker
2.安裝apollo
2.1下載Apollo 6.0
git clone
git clone
Cloning into 'apollo'... remote: Enumerating objects: 329426, done. remote: Counting objects: 100% (337/337), done. remote: Compressing objects: 100% (336/336), done. fatal: The remote end hung up unexpectedly.22 GiB | 6.13 MiB/s fatal: early EOF fatal: index-pack failed
git clone --depth 1 --branch master
Cloning into 'apollo'... Warning: Permanently added the RSA host key for IP address '13.250.177.223' to the list of known hosts. remote: Enumerating objects: 313436, done. remote: Counting objects: 100% (127/127), done. remote: Compressing objects: 100% (77/77), done. remote: Total 313436 (delta 63), reused 95 (delta 50), pack-reused 313309 Receiving objects: 100% (313436/313436), 2.42 GiB | 246.00 KiB/s, done. Resolving deltas: 100% (234642/234642), done. Checking out files: 100% (9715/9715), done.
2.2設定origin分支
git checkout master git remote -v git remote set-url origin git@github.com:YOUR_GITHUB_USERNAME/apollo.git git remote add upstream git@github.com:ApolloAuto/apollo.git git remote add upstream git remote -v
2.3 拉取映象
bash docker/scripts/dev_start.sh
Adding user `xu' ... Adding new user `xu' (1000) with group `docker' ... Creating home directory `/home/xu' ... Copying files from `/etc/skel' ... [ OK ] Congratulations! You have successfully finished setting up Apollo Dev Environment. [ OK ] To login into the newly created apollo_dev_xu container, please run the following command: [ OK ] bash docker/scripts/dev_into.sh [ OK ] Enjoy!
bash docker/scripts/dev_into.sh
To run a command as administrator (user "root"), use "sudo <command>". See "man sudo_root" for details. [xu@in-dev-docker:/apollo]$
2.4編譯apollo
./apollo.sh build_opt_gpu
./apollo.sh build_opt
2.5下載資料包
cd docs/demo_guide/ python3 record_helper.py demo_3.5.record
rm demo_3.5.record
wget
bash scripts/bootstrap.sh
cyber_recorder play -f demo_3.5.record --loop
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70003733/viewspace-2893307/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 從開發到部署微服務保姆級視訊教程微服務
- VSCode安裝使用教程,保姆級!VSCode
- Dell Latitude 7300 安裝 Centos 7.6 保姆級教程CentOS
- 保姆級mysql安裝教程+下載教程-附視訊教程MySql
- 保姆級 | MySQL的安裝配置教程(非常詳細)MySql
- 手把手教你安裝Jupyter Notebook(保姆級教程)
- 如何在 Windows 上安裝SSMS,保姆級教程來了!WindowsSSM
- Luatools新手必看:從下載開始的保姆級教程!
- 正確的安裝方式thinkcmf6.0版本教程
- 從零基礎到精通,抓包神器fiddler保姆級使用教程(一)
- ADB 安裝 + 打驅動全教程
- Django 從啟動到請求到響應全過程分析-入門版Django
- 2020版全新Dart Flutter開發教程,從初級人才到前端精英的蛻變DartFlutter前端
- SpringCloud搭建保姆級教程SpringGCCloud
- Navicat15安裝啟用版教程
- 保姆級教程,帶你認識大資料,從0到1搭建 Hadoop 叢集大資料Hadoop
- SeaweedFS + TiKV 部署保姆級教程
- graspnet復現保姆級教程
- 前端開發神器Charles從入門到解除安裝前端
- Navicat Premium 15 永久啟用版安裝教程REM
- 開發互動直播應用很簡單:聲網 Android Demo保姆級跑通教程Android
- Supervisor安裝、配置、開啟啟動
- blog保姆級別開發流程七
- win10安裝vb6.0詳細教程_win10安裝vb6.0的方法Win10
- 2023年最新版Apollo保姆級使用手冊(超級詳盡版本)
- 保姆級的介面自動化教程,從思路到操作步驟,不用寫程式碼也能2小時搞定
- 保姆級教程:教你UniMRCP對接華為雲ASR(Linux版)Linux
- ROS通訊方式(保姆級教程)ROS
- RabbitMQ保姆級教程最佳實踐MQ
- 分散式事務保姆級教程分散式
- Linux安裝Apollo配置中心Linux
- Spark從入門到放棄——Spark2.4.7安裝和啟動(二)Spark
- elasticsearch6.0版本安裝head外掛Elasticsearch
- 寶塔Linux皮膚最新升級版安裝教程Linux
- 利用MySQL官方源安裝5.6版程式,以及降級安裝後無法啟動的問題MySql
- 《熬夜整理》保姆級系列教程-玩轉Wireshark抓包神器教程(2)-Wireshark在Windows系統上安裝部署Windows
- IDEA2024最新版的安裝-保姆級教學Idea
- 2023年windows DockerDeskTop最新款4.18.0 全程保姆級安裝WindowsDocker