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 | +-----------------------------------------------------------------------------+
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
distribution=$(. /etc/os-release;echo $ID$VERSION_ID) curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | 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
git clone https://github.com/ApolloAuto/apollo.git
git clone https://gitee.com/ApolloAuto/apollo.git
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 https://gitee.com/ApolloAuto/apollo.git
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.
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 https://github.com/ApolloAuto/apollo.git git remote -v
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". See "man sudo_root" for details. [xu@in-dev-docker:/apollo]$
./apollo.sh build_opt_gpu
./apollo.sh build_opt
cd docs/demo_guide/ python3 record_helper.py demo_3.5.record
rm demo_3.5.record
wget https://apollo-system.cdn.bcebos.com/dataset/6.0_edu/demo_3.5.record
bash scripts/bootstrap.sh
cyber_recorder play -f demo_3.5.record --loop