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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 從開發到部署微服務保姆級視訊教程微服務
- Pentaho 6.0 安裝與啟動教程
- VSCode安裝使用教程,保姆級!VSCode
- 保姆級mysql安裝教程+下載教程-附視訊教程MySql
- apollo1.7.1初探(一)安裝apollo、建立並啟動broker
- 保姆級 | MySQL的安裝配置教程(非常詳細)MySql
- Dell Latitude 7300 安裝 Centos 7.6 保姆級教程CentOS
- 如何在 Windows 上安裝SSMS,保姆級教程來了!WindowsSSM
- Luatools新手必看:從下載開始的保姆級教程!
- 手把手教你安裝Jupyter Notebook(保姆級教程)
- 【翻譯】Tomcat 6.0 安裝與啟動Tomcat
- Django 從啟動到請求到響應全過程分析-入門版Django
- 正確的安裝方式thinkcmf6.0版本教程
- 從零基礎到精通,抓包神器fiddler保姆級使用教程(一)
- 從tomcat到glashfish(glassfish的安裝啟動筆記)Tomcat筆記
- ADB 安裝 + 打驅動全教程
- Navicat15安裝啟用版教程
- SpringCloud搭建保姆級教程SpringGCCloud
- SeaweedFS + TiKV 部署保姆級教程
- 前端開發神器Charles從入門到解除安裝前端
- 保姆級教程,帶你認識大資料,從0到1搭建 Hadoop 叢集大資料Hadoop
- SlackWare10.1從(硬碟)安裝到配置(包括升級)全過程(轉)硬碟
- 保姆級的介面自動化教程,從思路到操作步驟,不用寫程式碼也能2小時搞定
- 開發互動直播應用很簡單:聲網 Android Demo保姆級跑通教程Android
- Navicat Premium 15 永久啟用版安裝教程REM
- 保姆級教程:教你UniMRCP對接華為雲ASR(Linux版)Linux
- blog保姆級別開發流程七
- 2020版全新Dart Flutter開發教程,從初級人才到前端精英的蛻變DartFlutter前端
- RabbitMQ保姆級教程最佳實踐MQ
- 分散式事務保姆級教程分散式
- ROS通訊方式(保姆級教程)ROS
- graspnet復現保姆級教程
- Supervisor安裝、配置、開啟啟動
- Tomcat手動啟動/部署[非安裝版]Tomcat
- Spark從入門到放棄——Spark2.4.7安裝和啟動(二)Spark
- Hive視窗函式保姆級教程Hive函式
- win10安裝vb6.0詳細教程_win10安裝vb6.0的方法Win10
- win8.1update升級版安裝圖文教程