安裝雙系統ubuntu22.04
【雙系統】如何安裝ubuntu22.04系統_ubuntu安裝教程-CSDN博客
更換清華源
打開清華源官網,搜索對應系統版本的鏡像源碼
https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
原文件備份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
編輯源文件?
sudo gedit /etc/apt/sources.list
將原來內容刪除,添加清華源源碼
# tsinghua
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
更新鏡像源
sudo apt-get update
sudo apt-get upgrade
安裝顯卡驅動?
?Ubuntu22.04 安裝顯卡驅動_ubuntu安裝nvidia顯卡驅動_Chenxu_Wen的博客-CSDN博客
安裝CUDA11.7.1、cudnn8.9.4?
Ubuntu22.04安裝CUDA和cuDNN詳細過程記錄_ubuntu22.04安裝cudnn-CSDN博客
安裝opencv4
ubuntu22.04安裝opencv4和opencv_contrib-CSDN博客
在opencv4的基礎上安裝opencv3?
ubuntu22.04在opencv4的基礎上安裝opencv3-CSDN博客
安裝anaconda
Ubuntu安裝Anaconda詳細步驟(Ubuntu22.04.1,Anaconda3-2023.03)-CSDN博客
安裝TensorRT?
查看和CUDA對應的版本tensorrt cuda版本對應_tensorrt和cuda版本對應-CSDN博客
安裝過程是在conda虛擬環境中進行,所以需要提前安裝好anaconda并激活虛擬環境,這里對虛擬環境的python有要求,需要安裝tensorrt/python文件中包含的python版本;
本文安裝的是cuda11.7+cudnn8.9.4.25+python3.7的虛擬環境+TensorRT8.4.3.1;
安裝過程參考【Ubuntu版】TensorRT安裝教程(tar包方式)_ubuntu安裝tensorrt-CSDN博客
文中添加環境參考下文?
gedit ~/.bashrc# 添加#TensorRT
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/software/TensorRT-8.4.3.1/lib
export PATH=$PATH:/home/user/software/TensorRT-8.4.3.1/bin
export LD_LIBRARY_PATH=/home/user/software/TensorRT-8.4.3.1/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=/home/user/software/TensorRT-8.4.3.1/lib:$LIBRARY_PATH# 更新
source ~/.bashrc
安裝eigen3
Ubuntu16.04安裝Eigen3-CSDN博客
安裝Glog
最好命令行安裝,安裝包安裝會報很多依賴的問題
sudo apt-get install -y libgoogle-glog-dev
后續陸續更新~