{"id":293187,"date":"2024-09-25T20:04:11","date_gmt":"2024-09-25T12:04:11","guid":{"rendered":"https:\/\/lrxjmw.cn\/uqfwhxtzncxt.html"},"modified":"2024-09-25T20:04:11","modified_gmt":"2024-09-25T12:04:11","slug":"uqfwhxtzncxt","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/uqfwhxtzncxt.html","title":{"rendered":"Ubuntu20.04 \u5168\u65b9\u4f4d\u6362\u7cfb\u7edf\u6307\u5357\uff1a\u4ece\u7cfb\u7edf\u66f4\u65b0\u5230\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5"},"content":{"rendered":"

[\u7ecf\u9a8c]Ubuntu20.04\u5168\u65b9\u4f4d\u6362\u7cfb\u7edf<\/p>\n

ubuntu\u5b89\u88c5gcc_ubuntu \u5b89\u88c5 gcc 4.6_ubuntu\u5b89\u88c5gcc<\/p>\n

1.\u88c5\u673a\u7136\u540e\u7cfb\u7edf\u66f4\u65b0\uff0c\u8bbe\u7f6e\u8f6f\u4ef6\u6e90<\/p>\n

2.\u5b89\u88c5\u7cfb\u7edf\u9a71\u52a8<\/p>\n

3\u5b89\u88c5CUDA\u53caCuDNN<\/p>\n

4\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5<\/p>\n

Reference<\/p>\n

0.\u539f\u59cb\u7cfb\u7edf\u5907\u4efd0.1\u6587\u4ef6\u5907\u4efd<\/p>\n

\u63a8\u8350\u4f7f\u7528bcompare\u8f6f\u4ef6\uff0c\u8fd9\u6837\u539f\u5148\u65e9\u5df2\u5907\u4efd\u7684\u6587\u4ef6\uff0c\u5982\u4eca\u8981\u589e\u91cf\u66f4\u65b0\u7684\u8bdd\uff0c\u7528\u8fd9\u4e2a\u8f6f\u4ef6\u5c31\u4fbf\u6377\u7684\u3002<\/p>\n

ubuntu\u5b89\u88c5gcc_ubuntu \u5b89\u88c5 gcc 4.6_ubuntu\u5b89\u88c5gcc<\/p>\n

ubuntu\u5b89\u88c5gcc_ubuntu\u5b89\u88c5gcc_ubuntu \u5b89\u88c5 gcc 4.6<\/p>\n

operations\u4e2d\uff1a<\/p>\n

\u53ef\u4ee5\u5148\u901a\u8fc7compare\u4fdd\u7559\u4e00\u4e2a\u6700\u7ec8\u7684\u6587\u4ef6\u5939\uff0c\u4e4b\u540e\u901a\u8fc7\u540c\u6b65\u6309\u952e\u540c\u6b65\u6587\u4ef6\u5939\u3002<\/p>\n

\u82e5\u679c\u662f\u4e0d\u540c\u7528\u6237\u4e4b\u95f4\u8fdb\u884c\u540c\u6b65\uff0c\u987b\u8981\u4f7f\u7528root\u8eab\u5206\u8fd0\u884cbcompare:<\/p>\n

\n

<\/span>sudo\u00a0QT_GRAPHICSSYSTEM=native\u00a0bcompare
<\/code><\/pre>\n<\/p>\n

root\u6a21\u5f0f\u4e0b\u754c\u9762\u4e0e\u666e\u901a\u7528\u6237\u754c\u9762\u7565\u6709\u4e0d\u540c\uff0c\u800c\u4e14\u5c06\u5c31\u7528\u6ca1\u95ee\u9898\u3002<\/p>\n

0.2.bashrc\u5907\u4efd<\/p>\n

\u8be5\u6587\u4ef6\u4e2d\u4f1a\u6709\u597d\u591a\u540e\u52a0\u6253\u7cfb\u7edf\u53d8\u91cf\uff0c\u5982QT\uff0c\u81ea\u5b9a\u4e49\u7a0b\u5e8f\u7684\u8def\u5f84\u7b49<\/p>\n

\n

<\/span>$<\/span>\u00a0cat\u00a0\/home\/randy\/.bashrc<\/span>
#<\/span>\u00a0~\/.bashrc:\u00a0executed\u00a0by\u00a0bash(1)\u00a0for<\/span>\u00a0non-login\u00a0shells.<\/span>
#<\/span>\u00a0see\u00a0\/usr\/share\/doc\/bash\/examples\/startup-files\u00a0(in<\/span>\u00a0the\u00a0package\u00a0bash-doc)<\/span>
#<\/span>\u00a0for<\/span>\u00a0examples<\/span>

...

export\u00a0PATH=\"\/usr\/local\/cuda\/bin:$PATH\"
export\u00a0CUDA_HOME=\/usr\/local\/cuda
#<\/span>\u00a0export<\/span>\u00a0LD_LIBRARY_PATH=\"\/usr\/local\/cuda\/lib64:$LD_LIBRARY_PATH<\/span>\"<\/span><\/span>

#<\/span>\u00a0>>>\u00a0conda\u00a0initialize\u00a0>>><\/span>
#<\/span>\u00a0!!\u00a0Contents\u00a0within\u00a0this\u00a0block\u00a0are\u00a0managed\u00a0by\u00a0'conda\u00a0init'<\/span>\u00a0!!<\/span>
__conda_setup=\"$('\/home\/randy\/anaconda3\/bin\/conda'\u00a0'shell.bash'\u00a0'hook'\u00a02>\u00a0\/dev\/null)\"
if\u00a0[\u00a0$?\u00a0-eq\u00a00\u00a0];\u00a0then
\u00a0\u00a0\u00a0\u00a0eval\u00a0\"$__conda_setup\"
else
\u00a0\u00a0\u00a0\u00a0if\u00a0[\u00a0-f\u00a0\"\/home\/randy\/anaconda3\/etc\/profile.d\/conda.sh\"\u00a0];\u00a0then
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0.\u00a0\"\/home\/randy\/anaconda3\/etc\/profile.d\/conda.sh\"
\u00a0\u00a0\u00a0\u00a0else
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0export\u00a0PATH=\"\/home\/randy\/anaconda3\/bin:$PATH\"
\u00a0\u00a0\u00a0\u00a0fi
fi
unset\u00a0__conda_setup
#<\/span>\u00a0<<<\u00a0conda\u00a0initialize\u00a0<<<<\/span>

source\u00a0\/opt\/ros\/noetic\/setup.bash

npm\u00a0set\u00a0prefix\u00a0~\/.npm
PATH=\"$HOME\/.npm\/bin:$PATH\"
PATH=\".\/node_modules\/.bin:$PATH\"
PATH=\"$PATH:\/home\/randy\/Downloads\/Zotero_linux-x86_64\/\"

#<\/span>\u00a0export<\/span>\u00a0LD_LIBRARY_PATH=\/usr\/local<\/span>\/lib:$LD_LIBRARY_PATH<\/span><\/span>

#<\/span>\u00a0LD_LIBRARY_PATH=\/home\/randy\/anaconda3\/lib\/python3.9\/site-packages\/PySide2\/Qt\/lib\/:\/home\/randy\/anaconda3\/lib\/:$LD_LIBRARY_PATH<\/span><\/span>

ulimit\u00a0-c\u00a0unlimited

#<\/span>add\u00a0QT\u00a0ENV<\/span>
#<\/span>\u00a0export<\/span>\u00a0QT_DEBUG_PLUGINS=1<\/span>
#<\/span>\u00a0export<\/span>\u00a0PATH=\/opt\/Qt5.14.2\/5.14.2\/gcc_64\/bin:$PATH<\/span><\/span>
#<\/span>\u00a0export<\/span>\u00a0LD_LIBRARY_PATH=\/opt\/Qt5.14.2\/5.14.2\/gcc_64\/lib:$LD_LIBRARY_PATH<\/span><\/span>
#<\/span>\u00a0export<\/span>\u00a0QT_PLUGIN_PATH=\/opt\/Qt5.14.2\/5.14.2\/gcc_64\/plugins:$QT_PLUGIN_PATH<\/span><\/span>
#<\/span>\u00a0export<\/span>\u00a0QML2_IMPORT_PATH=\/opt\/Qt5.14.2\/5.14.2\/gcc_64\/qml:$QML2_IMPORT_PATH<\/span><\/span>

alias\u00a0randy='source\u00a0\/home\/randy\/codes\/scripts_randy\/shell\/happyRandy.sh'
if\u00a0[\u00a0-f\u00a0\/home\/randy\/codes\/scripts_randy\/shell\/happyRandy-completion.bash\u00a0];\u00a0then
\u00a0\u00a0\u00a0\u00a0.\u00a0\/home\/randy\/codes\/scripts_randy\/shell\/happyRandy-completion.bash
fi

___MY_VMOPTIONS_SHELL_FILE=\"${HOME}\/.jetbrains.vmoptions.sh\";\u00a0if\u00a0[\u00a0-f\u00a0\"${___MY_VMOPTIONS_SHELL_FILE}\"\u00a0];\u00a0then\u00a0.\u00a0\"${___MY_VMOPTIONS_SHELL_FILE}\";\u00a0fi
<\/code><\/pre>\n<\/p>\n

0.3\u7f16\u8bd1\u597d\u7684\u4ee3\u7801\u3001\u4e0b\u8f7d\u7684\u8f6f\u4ef6\u3001\u6570\u636e\u5e93\u5907\u4efd\u6587\u4ef6\u5907\u4efd<\/p>\n

\u5982\u7f16\u8bd1\u597d\u7684pcl\u4ee3\u7801linux qq\uff0cSourcetrail_2014_4_19_Linux<\/a>_64bit\u7a0b\u5e8fubuntu \u5b89\u88c5 gcc 4.6<\/strong>\uff0cZotero\u7a0b\u5e8f<\/p>\n

\u6570\u636e\u5e93\u6587\u4ef6<\/p>\n

\n

<\/span>$<\/span>\u00a0ll\u00a0db_randy\/<\/span>
total\u00a0743436
drwxrwxrwx\u00a01\u00a0randy\u00a0randy\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00\u00a03\u6708\u00a0\u00a019\u00a018:45\u00a0.\/
drwxrwxrwx\u00a01\u00a0randy\u00a0randy\u00a0\u00a0\u00a0\u00a0\u00a0\u00a04096\u00a03\u6708\u00a0\u00a020\u00a012:36\u00a0..\/
-rwxrwxrwx\u00a01\u00a0randy\u00a0randy\u00a0761269678\u00a03\u6708\u00a0\u00a019\u00a018:45\u00a0l4_db.sql*
-rwxrwxrwx\u00a01\u00a0randy\u00a0randy\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01055\u00a03\u6708\u00a0\u00a019\u00a018:45\u00a0secret.sql*
<\/code><\/pre>\n<\/p>\n

0.4\u865a\u62df\u673a\u5b89\u88c5\u540e\u7684\u7cfb\u7edf\u6587\u4ef6<\/p>\n

\u4f8b\u5982VirtualBox\u865a\u62df\u673a\u4f1a\u5728~\/VirtualBoxVMs\u76ee\u5f55\u4e0b\u4fdd\u5b58\u5df2\u5728\u865a\u62df\u673a\u4e2d\u5b89\u88c5\u7684\u7cfb\u7edf\uff0c\u53ef\u6253\u5305<\/p>\n

0.5FileZilla\u7ad9\u70b9\u4fdd\u5b58<\/p>\n

\u6253\u5f00FileZilla\u540eFile->Export->Exportsettings\u9009\u62e9\u7ad9\u70b9\u5bfc\u5165<\/p>\n

ubuntu\u5b89\u88c5gcc_ubuntu \u5b89\u88c5 gcc 4.6_ubuntu\u5b89\u88c5gcc<\/p>\n

0.6docker\u73af\u5883\u3001cuda\u6587\u4ef6\u5939\u548cconda\u73af\u5883\u6253\u53050.7\u8f6f\u4ef6\u5b89\u88c5\u6e90\u6587\u4ef6\u5907\u4efd<\/p>\n

\n

<\/span>\/etc\/apt\/sources.list

deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse
deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse
deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-security\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse
deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-security\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse
deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-updates\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse
deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-updates\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse
deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-proposed\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse
deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-proposed\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse
deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-backports\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse
deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-backports\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse
#<\/span>\u00a0deb\u00a0http:\/\/typora.io\u00a0linux\/<\/span>
#<\/span>\u00a0deb-src\u00a0http:\/\/typora.io\u00a0linux\/<\/span>
deb\u00a0https:\/\/qgis.org\/ubuntu\u00a0jammy\u00a0main
deb-src\u00a0https:\/\/qgis.org\/ubuntu\u00a0jammy\u00a0main
<\/code><\/pre>\n<\/p>\n

0.8\u4e91\u8ba4\u8bc1\u6587\u4ef6\u5907\u4efd0.9docker\u914d\u7f6e<\/p>\n

\n

<\/span>$\u00a0cat\u00a0\/etc\/docker\/daemon.json
{
\u00a0\u00a0\"registry-mirrors\"<\/span>:\u00a0[\"https:\/\/docker.mirrors.ustc.edu.cn\"<\/span>],
\u00a0\u00a0\"insecure-registries\"<\/span>:\u00a0[\"10.78.40.163:8080\"<\/span>,\u00a0\"10.79.88.162:33123\"<\/span>],
\u00a0\u00a0\"runtimes\"<\/span>:\u00a0{
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"nvidia\"<\/span>:\u00a0{
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"path\"<\/span>:\u00a0\"nvidia-container-runtime\"<\/span>,
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"runtimeArgs\"<\/span>:\u00a0[]
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}
\u00a0\u00a0}
}
<\/code><\/pre>\n<\/p>\n

0.10\u4e3b\u677f\u9a71\u52a8\u7248\u672c<\/p>\n

\n

<\/span>$<\/span>\u00a0nvidia-smi<\/span>
Wed\u00a0Mar\u00a020\u00a016:26:16\u00a02024\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0
+-----------------------------------------------------------------------------+
|\u00a0NVIDIA-SMI\u00a0525.147.05\u00a0\u00a0\u00a0Driver\u00a0Version:\u00a0525.147.05\u00a0\u00a0\u00a0CUDA\u00a0Version:\u00a012.0\u00a0\u00a0\u00a0\u00a0\u00a0|
|-------------------------------+----------------------+----------------------+
|\u00a0GPU\u00a0\u00a0Name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Persistence-M|\u00a0Bus-Id\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Disp.A\u00a0|\u00a0Volatile\u00a0Uncorr.\u00a0ECC\u00a0|
|\u00a0Fan\u00a0\u00a0Temp\u00a0\u00a0Perf\u00a0\u00a0Pwr:Usage\/Cap|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Memory-Usage\u00a0|\u00a0GPU-Util\u00a0\u00a0Compute\u00a0M.\u00a0|
|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0MIG\u00a0M.\u00a0|
|===============================+======================+======================|
|\u00a0\u00a0\u00a00\u00a0\u00a0NVIDIA\u00a0GeForce\u00a0...\u00a0\u00a0Off\u00a0\u00a0|\u00a000000000:01:00.0\u00a0Off\u00a0|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0N\/A\u00a0|
|\u00a0N\/A\u00a0\u00a0\u00a057C\u00a0\u00a0\u00a0\u00a0P8\u00a0\u00a0\u00a0\u00a024W\u00a0\/\u00a0\u00a080W\u00a0|\u00a0\u00a0\u00a0\u00a0547MiB\u00a0\/\u00a0\u00a08192MiB\u00a0|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a02%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Default\u00a0|
|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0N\/A\u00a0|
+-------------------------------+----------------------+----------------------+
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0
+-----------------------------------------------------------------------------+
|\u00a0Processes:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|
|\u00a0\u00a0GPU\u00a0\u00a0\u00a0GI\u00a0\u00a0\u00a0CI\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0PID\u00a0\u00a0\u00a0Type\u00a0\u00a0\u00a0Process\u00a0name\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0GPU\u00a0Memory\u00a0|
|\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ID\u00a0\u00a0\u00a0ID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Usage\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|
|=============================================================================|
|\u00a0\u00a0\u00a0\u00a00\u00a0\u00a0\u00a0N\/A\u00a0\u00a0N\/A\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01885\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0G\u00a0\u00a0\u00a0\/usr\/lib\/xorg\/Xorg\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a045MiB\u00a0|
|\u00a0\u00a0\u00a0\u00a00\u00a0\u00a0\u00a0N\/A\u00a0\u00a0N\/A\u00a0\u00a0\u00a0\u00a0\u00a0\u00a02832\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0G\u00a0\u00a0\u00a0\/usr\/lib\/xorg\/Xorg\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0370MiB\u00a0|
|\u00a0\u00a0\u00a0\u00a00\u00a0\u00a0\u00a0N\/A\u00a0\u00a0N\/A\u00a0\u00a0\u00a0\u00a0\u00a0\u00a03031\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0G\u00a0\u00a0\u00a0\/usr\/bin\/gnome-shell\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a061MiB\u00a0|
|\u00a0\u00a0\u00a0\u00a00\u00a0\u00a0\u00a0N\/A\u00a0\u00a0N\/A\u00a0\u00a0\u00a0\u00a0\u00a017821\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0G\u00a0\u00a0\u00a0...800993256175944622,262144\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a039MiB\u00a0|
|\u00a0\u00a0\u00a0\u00a00\u00a0\u00a0\u00a0N\/A\u00a0\u00a0N\/A\u00a0\u00a0\u00a0\u00a0\u00a022321\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0G\u00a0\u00a0\u00a0...RendererForSitePerProcess\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a019MiB\u00a0|
+-----------------------------------------------------------------------------+

sudo\u00a0dpkg\u00a0--list\u00a0|\u00a0grep\u00a0nvidia-*
randy@Randy-HP-ZBook-G8:~\/codes\/scripts_randy\/shell$\u00a0sudo\u00a0dpkg\u00a0--list\u00a0|\u00a0grep\u00a0nvidia-*
[sudo]\u00a0password\u00a0for\u00a0randy:\u00a0
ii\u00a0\u00a0libnvidia-cfg1-525:amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0binary\u00a0OpenGL\/GLX\u00a0configuration\u00a0library
ii\u00a0\u00a0libnvidia-common-525\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Shared\u00a0files\u00a0used\u00a0by\u00a0the\u00a0NVIDIA\u00a0libraries
ii\u00a0\u00a0libnvidia-compute-525:amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0libcompute\u00a0package
ii\u00a0\u00a0libnvidia-compute-525:i386\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0i386\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0libcompute\u00a0package
rc\u00a0\u00a0libnvidia-compute-535-server:amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0535.161.07-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0libcompute\u00a0package
rc\u00a0\u00a0libnvidia-compute-550:amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0550.54.14-0ubuntu0~gpu20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0libcompute\u00a0package
ii\u00a0\u00a0libnvidia-decode-525:amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0Video\u00a0Decoding\u00a0runtime\u00a0libraries
ii\u00a0\u00a0libnvidia-decode-525:i386\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0i386\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0Video\u00a0Decoding\u00a0runtime\u00a0libraries
ii\u00a0\u00a0libnvidia-encode-525:amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVENC\u00a0Video\u00a0Encoding\u00a0runtime\u00a0library
ii\u00a0\u00a0libnvidia-encode-525:i386\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0i386\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVENC\u00a0Video\u00a0Encoding\u00a0runtime\u00a0library
ii\u00a0\u00a0libnvidia-extra-525:amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Extra\u00a0libraries\u00a0for\u00a0the\u00a0NVIDIA\u00a0driver
ii\u00a0\u00a0libnvidia-fbc1-525:amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0OpenGL-based\u00a0Framebuffer\u00a0Capture\u00a0runtime\u00a0library
ii\u00a0\u00a0libnvidia-fbc1-525:i386\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0i386\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0OpenGL-based\u00a0Framebuffer\u00a0Capture\u00a0runtime\u00a0library
ii\u00a0\u00a0libnvidia-gl-525:amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0OpenGL\/GLX\/EGL\/GLES\u00a0GLVND\u00a0libraries\u00a0and\u00a0Vulkan\u00a0ICD
ii\u00a0\u00a0libnvidia-gl-525:i386\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0i386\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0OpenGL\/GLX\/EGL\/GLES\u00a0GLVND\u00a0libraries\u00a0and\u00a0Vulkan\u00a0ICD
rc\u00a0\u00a0linux-modules-nvidia-535-server-open-5.15.0-101-generic\u00a05.15.0-101.111~20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Linux\u00a0kernel\u00a0nvidia\u00a0modules\u00a0for\u00a0version\u00a05.15.0-101
ii\u00a0\u00a0nvidia-compute-utils-525\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0compute\u00a0utilities
rc\u00a0\u00a0nvidia-compute-utils-535-server\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0535.161.07-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0compute\u00a0utilities
rc\u00a0\u00a0nvidia-compute-utils-550\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0550.54.14-0ubuntu0~gpu20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0compute\u00a0utilities
ii\u00a0\u00a0nvidia-dkms-525\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0DKMS\u00a0package
rc\u00a0\u00a0nvidia-dkms-550\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0550.54.14-0ubuntu0~gpu20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0DKMS\u00a0package
ii\u00a0\u00a0nvidia-driver-525\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0driver\u00a0metapackage
ii\u00a0\u00a0nvidia-firmware-535-server-535.161.07\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0535.161.07-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Firmware\u00a0files\u00a0used\u00a0by\u00a0the\u00a0kernel\u00a0module
ii\u00a0\u00a0nvidia-kernel-common-525\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Shared\u00a0files\u00a0used\u00a0with\u00a0the\u00a0kernel\u00a0module
rc\u00a0\u00a0nvidia-kernel-common-535-server\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0535.161.07-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Shared\u00a0files\u00a0used\u00a0with\u00a0the\u00a0kernel\u00a0module
rc\u00a0\u00a0nvidia-kernel-common-550\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0550.54.14-0ubuntu0~gpu20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Shared\u00a0files\u00a0used\u00a0with\u00a0the\u00a0kernel\u00a0module
ii\u00a0\u00a0nvidia-kernel-source-525\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0kernel\u00a0source\u00a0package
ii\u00a0\u00a0nvidia-prime\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00.8.16~0.20.04.2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Tools\u00a0to\u00a0enable\u00a0NVIDIA's\u00a0Prime
ii\u00a0\u00a0nvidia-settings\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0470.57.01-0ubuntu0.20.04.3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Tool\u00a0for\u00a0configuring\u00a0the\u00a0NVIDIA\u00a0graphics\u00a0driver
ii\u00a0\u00a0nvidia-utils-525\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0driver\u00a0support\u00a0binaries
ii\u00a0\u00a0screen-resolution-extra\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00.18build1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Extension\u00a0for\u00a0the\u00a0nvidia-settings\u00a0control\u00a0panel
ii\u00a0\u00a0xserver-xorg-video-nvidia-525\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0525.147.05-0ubuntu0.20.04.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0amd64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVIDIA\u00a0binary\u00a0Xorg\u00a0driver
<\/code><\/pre>\n<\/p>\n

1.\u88c5\u673a\u7136\u540e\u7cfb\u7edf\u66f4\u65b0\uff0c\u8bbe\u7f6e\u8f6f\u4ef6\u6e90<\/p>\n

\u9996\u5148\u8fdb\u884c\u7cfb\u7edf\u66f4\u65b0\uff0c\u4ee5\u53ca\u8bbe\u7f6e\u8f6f\u4ef6\u66f4\u65b0\u6e90<\/p>\n

\u53ef\u4ee5\u6309\u4e0b\u8ff0\u914d\u7f6e\u8bbe\u7f6esetup_part1.sh\u5e76\u8fd0\u884c\u3002<\/p>\n

\u7531\u4e8e\u524d\u9762\u8981\u5b89\u88c5\u4e3b\u677f\u9a71\u52a8\uff0c\u6240\u4ee5\u5c06\u7cfb\u7edf\u81ea\u5e26\u7684nouveau\u9a71\u52a8\u5c4f\u853d\uff0c\u5426\u5219Nvidia\u9a71\u52a8\u96be\u4ee5\u5b89\u88c5\u3002<\/p>\n

\n

<\/span>#<\/span>!\/usr\/bin\/env\u00a0bash<\/span>

sudo\u00a0apt-get\u00a0update
sudo\u00a0apt-get\u00a0upgrade
sudo\u00a0apt-get\u00a0dist-upgrade


SelectOS()
{
\u00a0\u00a0echo\u00a0-e\u00a0\"e[1;35mselect\u00a0OS:e[0m\"
\u00a0\u00a0echo\u00a0-e\u00a0\"\u00a0\u00a0\u00a0\u00a0\u00a01)\u00a0Ubuntu18.04\"
\u00a0\u00a0echo\u00a0-e\u00a0\"\u00a0\u00a0\u00a0\u00a0\u00a02)\u00a0Ubuntu20.04\"
}

#<\/span>\u00a0\u4fee\u6539\u8f6f\u4ef6\u6e90<\/span>
echo\u00a0-e\u00a0\"e[1;32m\u4fee\u6539\u8f6f\u4ef6\u6e90e[0m\"
#<\/span>\u00a0sudo\u00a0gedit\u00a0\/etc\/apt\/sources.list<\/span>
SelectOS
read\u00a0-p\u00a0\"Choose\u00a0OS\u00a0system,\u00a0please:\u00a0\"\u00a0sysType
if\u00a0[\u00a0sysType\u00a0==\u00a01\u00a0];\u00a0then
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0bionic\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0bionic-security\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0bionic-updates\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0bionic-proposed\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0bionic-backports\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0bionic\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0bionic-security\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0bionic-updates\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0bionic-proposed\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0bionic-backports\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
elif\u00a0[\u00a0sysType\u00a0==\u00a02\u00a0];\u00a0then
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-security\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-security\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-updates\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-updates\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-proposed\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-proposed\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-backports\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
\u00a0\u00a0\u00a0\u00a0sudo\u00a0echo\u00a0\"deb-src\u00a0http:\/\/mirrors.aliyun.com\/ubuntu\/\u00a0focal-backports\u00a0main\u00a0restricted\u00a0universe\u00a0multiverse\"\u00a0>>\u00a0\/etc\/apt\/sources.list
fi

#<\/span>\u00a0\u5b89\u88c5\u9a71\u52a8<\/span>
echo\u00a0-e\u00a0\"e[1;32m\u7981\u7528\u7cfb\u7edf\u81ea\u5e26\u9a71\u52a8nouveaue[0m\"
#<\/span>\u00a0sudo\u00a0gedit\u00a0\/etc\/modprobe.d\/blacklist.conf<\/span>
sudo\u00a0echo\u00a0\"blacklist\u00a0nouveau\"\u00a0>>\u00a0\/etc\/modprobe.d\/blacklist.conf
sudo\u00a0echo\u00a0\"options\u00a0nouveau\u00a0modeset=0\"\u00a0>>\u00a0\/etc\/modprobe.d\/blacklist.conf
sudo\u00a0echo\u00a0\"alias\u00a0nouveau\u00a0off\"\u00a0>>\u00a0\/etc\/modprobe.d\/blacklist.conf
sudo\u00a0echo\u00a0\"alias\u00a0lbm-nouveau\u00a0off\"\u00a0>>\u00a0\/etc\/modprobe.d\/blacklist.conf

sudo\u00a0cat\u00a0\/etc\/modprobe.d\/blacklist.conf

sudo\u00a0update-initramfs\u00a0-u

echo\u00a0-e\u00a0\"e[1;32m\u8bf7\u91cd\u542f\u7535\u8111:reboote[0m\"

#<\/span>\u00a0\u91cd\u542f\u7cfb\u7edf\uff08\u4e00\u5b9a\u8981\u91cd\u542f\uff09<\/span>
#<\/span>\u00a0vertification\u00a0,\u00a0no\u00a0\u00a0output\u00a0is\u00a0well<\/span>
lsmod\u00a0|\u00a0grep\u00a0nouveau
<\/code><\/pre>\n<\/p>\n

\n

<\/span>sed\u00a0-i\u00a0s@\/archive.ubuntu.com\/@\/mirrors.aliyun.com\/@g\u00a0\/etc\/apt\/sources.list
sed\u00a0-i\u00a0s@\/security.ubuntu.com\/@\/mirrors.aliyun.com\/@g\u00a0\/etc\/apt\/sources.list
apt-get\u00a0clean
apt-get\u00a0update
<\/code><\/pre>\n<\/p>\n

2.\u5b89\u88c5\u7cfb\u7edf\u9a71\u52a8\u53ef\u901a\u8fc7ubuntuSoftware&Updates\u4e2d\u7684AdditionalDrivers\u5b89\u88c5<\/p>\n

\u4f8b\u5982\u53ef\u9009\u62e9460\u6216470\u9a71\u52a8\uff0c\u7b14\u8005\u9009\u62e9\u4e86460\u3002\u6b64\u6b65\u9aa4\u4e0d\u88c5\u4e5f\u884c\uff0cCUDA\u5b89\u88c5\u5305\u4e2d\u5305\u542b\u5b89\u88c5\u9a71\u52a8\u3002\u9009\u62e9\u7684\u65f6\u4faf\u4e0d\u8981\u9009\u62e9tested\u7248\u672c\uff0c\u4e0d\u7a33\u5b9a\u3002<\/p>\n

ubuntu\u5b89\u88c5gcc_ubuntu \u5b89\u88c5 gcc 4.6_ubuntu\u5b89\u88c5gcc<\/p>\n

\u70b9\u51fbApplyChanges\u53ef\u8fdb\u884c\u5b89\u88c5,\u5b89\u88c5\u5b8c\u53ef\u8f93\u5165\u4e0b\u8fb9\u547d\u4ee4\u67e5\u770b\u662f\u5426\u5b89\u88c5\u6210\u529f<\/p>\n

\n

<\/span>#<\/span>\u00a0\u67e5\u770b\u9a71\u52a8\u662f\u5426\u5b89\u88c5\u6210\u529f<\/span>
nvidia-smi

#<\/span>\u00a010s\u663e\u793a\u4e00\u6b21<\/span>
watch\u00a0-n\u00a010\u00a0nvidia-smi

nvidia-smi\u00a0-l
<\/code><\/pre>\n<\/p>\n

ubuntu \u5b89\u88c5 gcc 4.6_ubuntu\u5b89\u88c5gcc_ubuntu\u5b89\u88c5gcc<\/p>\n

\u4f7f\u7528\u547d\u4ee4\u641c\u7d22\u53ef\u7528\u7684\u9a71\u52a8<\/p>\n

\n

<\/span>ubuntu-drivers\u00a0devices

randy@Randy-HP-ZBook-G8:~\/codes\/scripts_randy\/shell$\u00a0ubuntu-drivers\u00a0devices
==\u00a0\/sys\/devices\/pci0000:00\/0000:00:01.0\/0000:01:00.0\u00a0==
modalias\u00a0:\u00a0pci:v000010DEd0000249Dsv0000103Csd00008873bc03sc00i00
vendor\u00a0\u00a0\u00a0:\u00a0NVIDIA\u00a0Corporation
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-550\u00a0-\u00a0third-party\u00a0non-free\u00a0recommended
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-470-server\u00a0-\u00a0distro\u00a0non-free
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-525-server\u00a0-\u00a0distro\u00a0non-free
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-545\u00a0-\u00a0third-party\u00a0non-free
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-550-open\u00a0-\u00a0third-party\u00a0non-free
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-535\u00a0-\u00a0distro\u00a0non-free
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-535-server-open\u00a0-\u00a0distro\u00a0non-free
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-535-server\u00a0-\u00a0distro\u00a0non-free
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-535-open\u00a0-\u00a0distro\u00a0non-free
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-525\u00a0-\u00a0distro\u00a0non-free
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-525-open\u00a0-\u00a0distro\u00a0non-free
driver\u00a0\u00a0\u00a0:\u00a0nvidia-driver-545-open\u00a0-\u00a0third-party\u00a0non-free
driver\u00a0\u00a0\u00a0:\u00a0xserver-xorg-video-nouveau\u00a0-\u00a0distro\u00a0free\u00a0builtin

==\u00a0\/sys\/devices\/pci0000:00\/0000:00:1f.4\u00a0==
modalias\u00a0:\u00a0pci:v00008086d000043A3sv0000103Csd00008873bc0Csc05i00
vendor\u00a0\u00a0\u00a0:\u00a0Intel\u00a0Corporation
driver\u00a0\u00a0\u00a0:\u00a0oem-stella.cmit-mamoswine-meta\u00a0-\u00a0third-party\u00a0free
<\/code><\/pre>\n<\/p>\n

\u5b89\u88c5\u9a71\u52a8<\/p>\n

\n

<\/span>sudo\u00a0apt\u00a0install\u00a0nvidia-driver-XXX
sudo\u00a0apt\u00a0install\u00a0nvidia-driver-525
<\/code><\/pre>\n<\/p>\n

\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8f93\u5165nvidia-smi\uff0c<\/p>\n

Notice<\/p>\n

\u540c\u4e00\u5927\u7248\u672c\u7cfb\u7edf\uff08\u5982Ubuntu20.04\uff09ubuntu \u5b89\u88c5 gcc 4.6<\/strong>\uff0c\u4e0d\u540c\u5c0f\u7248\u672c\u7684\u7cfb\u7edf\u5b89\u88c5\u5305\uff0c\u4f1a\u9020\u6210\u7cfb\u7edf\u63a8\u8350\u7684\u4e3b\u677f\u9a71\u52a8\u4e5f\u4e0d\u5c3d\u76f8\u540c\uff0c\u9a71\u52a8\u7684\u7248\u672c\u53f7\u4e0d\u4e00\u81f4\u3002<\/p>\n

ubuntu\u672a\u80fd\u5728\u9644\u52a0\u9a71\u52a8\u91cc\u9009\u62e9\u5176\u4ed6\u4e3b\u677f\u9a71\u52a8\uff0c\u53ea\u6709\u7ee7\u7eed\u4f7f\u7528\u81ea\u52a8\u5b89\u88c5\u7684\u9a71\u52a8\u9009\u9879<\/p>\n

\u7ec8\u7aef\u8f93\u5165\u4e0b\u8fb9\u547d\u4ee4\uff0c\u4e4b\u540e\u91cd\u542f\u3002<\/p>\n

\n

<\/span>sudo\u00a0ubuntu-drivers\u00a0install
<\/code><\/pre>\n<\/p>\n

\u5047\u5982\u91cc\u9762\u754c\u9762\u4e3a\u7a7a\uff0c\u663e\u793a\u65e0\u9644\u52a0\u9a71\u52a8<\/p>\n

\n

<\/span>sudo\u00a0add-apt-repository\u00a0ppa:graphics-drivers
sudo\u00a0apt-get\u00a0update
<\/code><\/pre>\n<\/p>\n

\u6709\u65f6\u4faf\u5b89\u88c5\u7684\u65f6\u4faf\u4f1a\u62a5\u9519linux\u5b89\u88c5\u6559\u7a0b\uff0c\u975e\u5e38\u6ce8\u610f\/boot\u6587\u4ef6[1]<\/p>\n

\u770b\/boot\u5206\u533a\u662f\u4e0d\u662f\u6ee1\u4e86\uff0c\u82e5\u679c\u6ee1\u4e86\u7684\u8bdd\u901a\u5e38\u6e05\u9664\u5185\u6838\u6587\u4ef6<\/p>\n

\n

<\/span>sudo\u00a0apt-get\u00a0autoremove\u00a0\u00a0\u00a0#\u4e00\u822c\u60c5\u51b5\u8fd0\u884c\u8fd9\u4e2a\u5c31\u53ef\u4ee5\uff0c\u5982\u679c\/boo\u5206\u533a\u5360\u7528\u51cf\u5c11\u5c31\u4e0d\u80fd\u5f80\u4e0b\u5f04\u4e86<\/span>
<\/code><\/pre>\n<\/p>\n

\u5047\u5982\u8fd8\u4e0d\u884c\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4<\/p>\n

\n

<\/span>df\u00a0-h\u00a0\u00a0\u00a0#\u67e5\u770b\/boot\u5206\u533a\u5360\u7528<\/span>
sudo\u00a0apt-get\u00a0clean\u00a0\u00a0\u00a0#\u4e0b\u547d\u4ee4\u5148\u6e05\u9664\u7a7a\u95f4\uff0c\u786e\u8ba4\/boot\u5206\u533a\u5df2\u6709\u8db3\u591f\u7a7a\u4f59\u3002<\/span>
uname\u00a0-a\u00a0\u00a0#\u67e5\u770b\u5f53\u524dLinux\u7cfb\u7edf\u7684\u5185\u6838\u7248\u672c\u00a0\u00a0\u00a0\u6216\u8005\u00a0\u4f7f\u7528\u00a0uname\u00a0-r<\/span>
dpkg\u00a0--get-selections\u00a0|\u00a0grep\u00a0linux-image\u00a0\u00a0\u00a0\u00a0\u00a0#\u67e5\u770b\u5df2\u7ecf\u5b89\u88c5\u7684\u5185\u6838\u7248\u672c\u00a0\u00a0\u9009\u62e9\u72b6\u6001\u4e3ainstall\u7684\u5378\u8f7d<\/span>
sudo\u00a0apt-get\u00a0remove\u00a0linux-image-unsigned-5.4.0-110-generic\u00a0\u00a0\u00a0#\u8f93\u5165\u540d\u5b57\u5168\u79f0\u5378\u8f7d\u5c31\u884c<\/span>
sudo\u00a0\u00a0apt-get\u00a0autoremove\u00a0\u00a0\u00a0#\u00a0\u6e05\u7a7a\u4e0d\u7528\u7684\u5305,\u6e05\u9664\u4e0d\u9700\u8981\u7684\u5185\u6838\u6587\u4ef6<\/span>
<\/code><\/pre>\n<\/p>\n

3\u5b89\u88c5CUDA\u53caCuDNN<\/p>\n

\u6309\u7167\u81ea\u5df1\u7b14\u8bb0\u672c\u4e3b\u677f\u914d\u7f6e\u53ca\u529f\u80fd\u987b\u8981\u5b89\u88c5\u5bf9\u5e94\u7248\u672c\u7684CUDA\uff0c\u5047\u5982\u987b\u8981\u795e\u7ecf\u7f51\u8def\u5904\u7406\uff0c\u5c31\u5b89\u88c5CuDNN\u3002<\/p>\n

\u76f8\u5173\u7248\u672c\u4e0b\u8f7d\u811a\u672c\uff1a<\/p>\n

\n

<\/span>#<\/span>!\/usr\/bin\/env\u00a0bash<\/span>

wget\u00a0https:\/\/developer.download.nvidia.com\/compute\/cuda\/11.4.0\/local_installers\/cuda_11.4.0_470.42.01_linux.run
wget\u00a0https:\/\/developer.download.nvidia.com\/compute\/cuda\/11.6.0\/local_installers\/cuda_11.6.0_510.39.01_linux.run
wget\u00a0https:\/\/developer.download.nvidia.com\/compute\/cuda\/11.7.0\/local_installers\/cuda_11.7.0_515.43.04_linux.run
<\/code><\/pre>\n<\/p>\n

\u5177\u4f53\u5b89\u88c5\u65b9\u5f0f\uff0c\u53ef\u53c2\u8003\u3010Ubuntu20.04\u5b89\u88c5CUDA\u3001cuDNN\u3011[2]<\/p>\n

\u5378\u8f7d\u9a71\u52a8<\/p>\n

\n

<\/span>sudo\u00a0\/usr\/bin\/nvidia-uninstall
sudo\u00a0apt-get\u00a0--purge\u00a0remove\u00a0nvidia-*
sudo\u00a0apt-get\u00a0purge\u00a0nvidia*
sudo\u00a0apt-get\u00a0purge\u00a0libnvidia*
<\/code><\/pre>\n<\/p>\n

4\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c54.1\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5<\/p>\n

ubuntu\u5b89\u88c5gcc_ubuntu\u5b89\u88c5gcc_ubuntu \u5b89\u88c5 gcc 4.6<\/p>\n

\u9996\u5148\u5b89\u88c5\u641c\u72d7\u8f93\u5165\u6cd5\uff0c\u63d0\u65e9\u4e0b\u597d\u5b89\u88c5\u5305sogoupinyin_4.0.1.2800_x86_64.deb\uff0c\u518d\u901a\u8fc7\u4e0b\u8fb9\u7684\u811a\u672c\u4e00\u952e\u7a76\u7adf\uff0c\u6c89\u6eba\u5f0f\u4eab\u53d7\u57fa\u672c\u7a0b\u5e8f\u5b89\u88c5\u3002<\/p>\n

\u641c\u72d7\u62fc\u97f3\u5b89\u88c5\u6bd4\u8f83\u9ebb\u70e6\uff0c\u5efa\u8bae\u5b89\u88c5GooglePinyin[3]<\/p>\n

\n

<\/span>sudo\u00a0apt-get\u00a0install\u00a0language-pack-zh-hans
sudo\u00a0apt-get\u00a0install\u00a0fcitx-googlepinyin
sudo\u00a0apt-get\u00a0install\u00a0fcitx
im-config\u00a0#\u00a0\u6ce8\u610f\u9009\u62e9\u00a0fcitx<\/span>
#\u00a0\u91cd\u542f<\/span>
fcitx-config-gtk3
<\/code><\/pre>\n<\/p>\n

\u57fa\u672c\u7a0b\u5e8f\u5305\u62ec\uff1a\u641c\u72d7\u8f93\u5165\u6cd5\u3001git\u3001locate\u3001cmake\u3001flameshot\u3001axel\u3001nfs\u3001cloudcompare\u3001clang\u3001filezilla\u3001pcap\u73af\u5883\u7b49\u3002<\/p>\n

setup_part2.sh<\/p>\n

\n

<\/span>#<\/span>!\/usr\/bin\/env\u00a0bash<\/span>

#<\/span>\u00a0\u5e38\u7528\u8f6f\u4ef6<\/span>
#<\/span>#\u00a0\u641c\u72d7\u8f93\u5165\u6cd5<\/span><\/span>
sudo\u00a0apt-get\u00a0install\u00a0fcitx
sudo\u00a0dpkg\u00a0-i\u00a0sogoupinyin_4.0.1.2800_x86_64.deb\u00a0
sudo\u00a0cp\u00a0\/usr\/share\/applications\/fcitx.desktop\u00a0\/etc\/xdg\/autostart\/
sudo\u00a0apt\u00a0purge\u00a0ibus
sudo\u00a0apt\u00a0install\u00a0libqt5qml5\u00a0libqt5quick5\u00a0libqt5quickwidgets5\u00a0qml-module-qtquick2
sudo\u00a0apt\u00a0install\u00a0libgsettings-qt1

echo\u00a0-e\u00a0\u00a0\"e[1;32msetup\u00a0gite[0m\"
sudo\u00a0apt\u00a0install\u00a0git\u00a0-y

echo\u00a0-e\u00a0\"e[1;32msetup\u00a0mlocatee[0m\"
sudo\u00a0apt\u00a0install\u00a0mlocate

echo\u00a0-e\u00a0\"e[1;32msetup\u00a0cmakee[0m\"
sudo\u00a0apt\u00a0\u00a0install\u00a0cmake\u00a0-y

echo\u00a0-e\u00a0\"e[1;32msetup\u00a0flameshote[0m\"
sudo\u00a0apt-get\u00a0install\u00a0flameshot

echo\u00a0-e\u00a0\"e[1;32msetup\u00a0axele[0m\"
sudo\u00a0apt-get\u00a0install\u00a0axel

echo\u00a0-e\u00a0\"e[1;32msetup\u00a0nfse[0m\"
sudo\u00a0apt-get\u00a0install\u00a0nfs-common\u00a0-y

echo\u00a0-e\u00a0\"e[1;32msetup\u00a0cloudcomparee[0m\"
snap\u00a0install\u00a0cloudcompare

echo\u00a0-e\u00a0\"e[1;32msetup\u00a0clang-formate[0m\"
sudo\u00a0apt-get\u00a0install\u00a0clang-format

echo\u00a0-e\u00a0\"e[1;32msetup\u00a0filezillae[0m\"
sudo\u00a0apt-get\u00a0install\u00a0filezilla

echo\u00a0-e\u00a0\"e[1;32msetup\u00a0pcape[0m\"
sudo\u00a0apt-get\u00a0install\u00a0libpcap-dev

#<\/span>\u00a0GNC\u00a0C\u00a0Compiler<\/span>
#<\/span>\u00a0GNC\u00a0C++\u00a0Compiler<\/span>
#<\/span>\u00a0GNC\u00a0C\u00a0Library<\/span>
#<\/span>\u00a0GNC\u00a0make<\/span>
echo\u00a0-e\u00a0\"e[1;32msetup\u00a0GNC\u00a0C\/C++\u00a0Compiler,\u00a0C\u00a0Library,\u00a0makee[0m\"
sudo\u00a0apt\u00a0install\u00a0build-essential


sudo\u00a0apt\u00a0install\u00a0python-pip
sudo\u00a0apt\u00a0install\u00a0python3-pip
<\/code><\/pre>\n<\/p>\n

4.2Typora\u5b89\u88c5<\/p>\n

\n

<\/span>#<\/span>!\/usr\/bin\/env\u00a0bash<\/span>

sudo\u00a0apt-key\u00a0adv\u00a0--keyserver\u00a0keyserver.ubuntu.com\u00a0--recv-keys\u00a0BA300B7755AFCFAE
#<\/span>\u00a0or\u00a0use\u00a0wget\u00a0-qO\u00a0-\u00a0https:\/\/typora.io\/linux\/public-key.asc\u00a0|\u00a0sudo\u00a0apt-key\u00a0add\u00a0-<\/span>

sudo\u00a0add-apt-repository\u00a0'deb\u00a0http:\/\/typora.io\u00a0linux\/'
sudo\u00a0apt-get\u00a0update
sudo\u00a0apt-get\u00a0install\u00a0typora
sudo\u00a0snap\u00a0install\u00a0typora
<\/code><\/pre>\n<\/p>\n

4.3docker\u5b89\u88c5<\/p>\n

setup_docker.sh<\/p>\n

\n

<\/span>#<\/span>!\/usr\/bin\/env\u00a0bash<\/span>

green=\"e[1;32m\"
reset=\"e[0m\"
purple=\"e[1;35m\"
bold=\"e[1m\"
yellow=\"e[1;33m\"


echo\u00a0-e\u00a0\"${green}\u5378\u8f7d\u6389\u7cfb\u7edf\u91cc\u7684docker${reset}\"
sudo\u00a0apt-get\u00a0remove\u00a0docker\u00a0docker-engine\u00a0docker.io\u00a0containerd\u00a0runc
sudo\u00a0rm\u00a0-rf\u00a0\/var\/lib\/docker

sudo\u00a0apt-get\u00a0update
echo\u00a0-e\u00a0\"${green}\u6dfb\u52a0HTTPS\u534f\u8bae\u548cCA\u8bc1\u4e66\u00a0${reset}\"
sudo\u00a0apt-get\u00a0install\u00a0\u00a0apt-transport-https\u00a0\u00a0ca-certificates\u00a0curl\u00a0\u00a0software-properties-common

echo\u00a0-e\u00a0\"${green}Add\u00a0Docker\u2019s\u00a0official\u00a0GPG\u00a0key:${reset}\"
sudo\u00a0mkdir\u00a0-p\u00a0\/etc\/apt\/keyrings
curl\u00a0-fsSL\u00a0https:\/\/download.docker.com\/linux\/ubuntu\/gpg\u00a0|\u00a0sudo\u00a0gpg\u00a0--dearmor\u00a0-o\u00a0\/etc\/apt\/keyrings\/docker.gpg

\u00a0echo\u00a0
\u00a0\u00a0\"deb\u00a0[arch=$(dpkg\u00a0--print-architecture)\u00a0signed-by=\/etc\/apt\/keyrings\/docker.gpg]\u00a0https:\/\/download.docker.com\/linux\/ubuntu\u00a0
\u00a0\u00a0$<\/span>(lsb_release\u00a0-cs)\u00a0stable\"\u00a0|\u00a0sudo\u00a0tee\u00a0\/etc\/apt\/sources.list.d\/docker.list\u00a0>\u00a0\/dev\/null<\/span><\/span>


sudo\u00a0chmod\u00a0a+r\u00a0\/etc\/apt\/keyrings\/docker.gpg
sudo\u00a0apt-get\u00a0update

echo\u00a0-e\u00a0\"${green}Install\u00a0Docker\u00a0Engine,\u00a0containerd,\u00a0and\u00a0Docker\u00a0Compose${reset}\"
sudo\u00a0apt-get\u00a0install\u00a0docker-ce\u00a0docker-ce-cli\u00a0containerd.io\u00a0docker-compose-plugin


echo\u00a0-e\u00a0\"${yellow}\u4e0b\u5217\u8bed\u53e5\u5199\u5165\u00a0\/etc\/docker\/daemon.json\u00a0\u6587\u4ef6\u4e2d\u3002\u5982\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u5219\u521b\u5efa\u4e00\u4e2a\u00a0${reset}\"
echo\u00a0\"{\"
echo\u00a0\"\u00a0\u00a0\"registry-mirrors\":\u00a0[\"https:\/\/docker.mirrors.ustc.edu.cn\"]\"
echo\u00a0\"}\"

read\u00a0-p\u00a0\"modify\u00a0the\u00a0file\u00a0\u00a0from\u00a0upper\u00a0tips,\u00a0then\u00a0input\u00a0any\u00a0key.\"\u00a0user_status

echo\u00a0-e\u00a0\"${green}\u5efa\u7acbdocker\u7528\u6237\u7ec4\u00a0${reset}\"
sudo\u00a0groupadd\u00a0docker
echo\u00a0-e\u00a0\"${green}\u5c06\u5f53\u524d\u7528\u6237\u52a0\u5165\u00a0docker\u00a0\u7ec4\u00a0${reset}\"
sudo\u00a0usermod\u00a0-aG\u00a0docker\u00a0$USER
sudo\u00a0gpasswd\u00a0-a\u00a0$USER\u00a0docker
echo\u00a0-e\u00a0\"${green}\u66f4\u65b0\u7528\u6237\u7ec4\u00a0${reset}\"
newgrp\u00a0docker

echo\u00a0-e\u00a0\"${green}\u4fee\u6539docker\u6743\u9650\u00a0${reset}\"
sudo\u00a0chmod\u00a0a+rw\u00a0\/var\/run\/docker.sock

echo\u00a0-e\u00a0\"${green}\u91cd\u542f\u7ec8\u7aef\u6216\u91cd\u542fdocker${reset}\"
sudo\u00a0systemctl\u00a0restart\u00a0docker

echo\u00a0-e\u00a0\"${green}\u67e5\u770bdocker\u7248\u672c\u00a0${reset}\"
docker\u00a0version
<\/code><\/pre>\n<\/p>\n

4.4nvidia-docker\u5b89\u88c5<\/p>\n

setup_nvidia-docker.sh<\/p>\n

\n

<\/span>#<\/span>!\/usr\/bin\/env\u00a0bash<\/span>

echo\u00a0-e\u00a0\"e[1;32m\u5b89\u88c5NVIDIA\u00a0Docker2:e[0m\"

curl\u00a0-s\u00a0-L\u00a0https:\/\/nvidia.github.io\/nvidia-docker\/gpgkey\u00a0|\u00a0sudo\u00a0apt-key\u00a0add\u00a0-
curl\u00a0-s\u00a0-L\u00a0https:\/\/nvidia.github.io\/nvidia-docker\/ubuntu18.04\/nvidia-docker.list\u00a0|\u00a0sudo\u00a0tee\u00a0\/etc\/apt\/sources.list.d\/nvidia-docker.list
sudo\u00a0apt-get\u00a0update

echo\u00a0-e\u00a0\"e[1;32m\u5b89\u88c52.0e[0m\"
sudo\u00a0apt-get\u00a0install\u00a0nvidia-docker2

echo\u00a0-e\u00a0\"e[1;32m\u91cd\u65b0\u52a0\u8f7ddocker\u5b88\u62a4\u8fdb\u7a0b\u914d\u7f6ee[0m\"
sudo\u00a0pkill\u00a0-SIGHUP\u00a0dockerd

echo\u00a0-e\u00a0\"e[1;32mnvidia-docker\u00a0versione[0m\"
nvidia-docker\u00a0--version
<\/code><\/pre>\n<\/p>\n

4.5pypcd\u5b89\u88c5<\/p>\n

setup_pypcd.sh<\/p>\n

\n

<\/span>#<\/span>!\/usr\/bin\/env\u00a0bash<\/span>
git\u00a0clone\u00a0https:\/\/github.com\/dimatura\/pypcd
cd\u00a0pypcd
git\u00a0fetch\u00a0origin\u00a0pull\/9\/head:python3
git\u00a0checkout\u00a0python3
python\u00a0setup.py\u00a0install
<\/code><\/pre>\n<\/p>\n

4.6PCL\u5b89\u88c5\u73af\u5883\u5b89\u88c5setup_pcl.sh<\/p>\n

\n

<\/span>#<\/span>!\/usr\/bin\/env\u00a0bash<\/span>
echo\u00a0\"setup\u00a0pcl\u00a0environment\u00a0of\u00a0pcl\"
sudo\u00a0apt-get\u00a0update\u00a0\u00a0
sudo\u00a0apt-get\u00a0install\u00a0git\u00a0build-essential\u00a0linux-libc-dev
sudo\u00a0apt-get\u00a0install\u00a0cmake\u00a0cmake-gui
sudo\u00a0apt-get\u00a0install\u00a0libusb-1.0-0-dev\u00a0libusb-dev\u00a0libudev-dev
sudo\u00a0apt-get\u00a0install\u00a0mpi-default-dev\u00a0openmpi-bin\u00a0openmpi-common\u00a0
sudo\u00a0apt-get\u00a0install\u00a0libflann1.9\u00a0libflann-dev
sudo\u00a0apt-get\u00a0install\u00a0libeigen3-dev
sudo\u00a0apt-get\u00a0install\u00a0libboost-all-dev
sudo\u00a0apt-get\u00a0install\u00a0libvtk7.1p-qt
sudo\u00a0apt-get\u00a0install\u00a0libvtk7.1p\u00a0
sudo\u00a0apt-get\u00a0install\u00a0libvtk7-qt-dev
sudo\u00a0apt-get\u00a0install\u00a0libqhull*\u00a0libgtest-dev
sudo\u00a0apt-get\u00a0install\u00a0freeglut3-dev\u00a0pkg-config
sudo\u00a0apt-get\u00a0install\u00a0libxmu-dev\u00a0libxi-dev
sudo\u00a0apt-get\u00a0install\u00a0mono-complete
sudo\u00a0apt-get\u00a0install\u00a0openjdk-8-jdk\u00a0openjdk-8-jre

echo\u00a0\"\u4e0b\u8f7dpcl\u4ee3\u7801\"
git\u00a0clone\u00a0https:\/\/github.com\/PointCloudLibrary\/pcl.git\u00a0
cd\u00a0pcl\u00a0
mkdir\u00a0release\u00a0
cd\u00a0release

echo\u00a0\"compile\"
cmake\u00a0-DCMAKE_BUILD_TYPE=None\u00a0-DCMAKE_INSTALL_PREFIX=\/usr\u00a0\u00a0-DBUILD_GPU=ON-DBUILD_apps=ON\u00a0-DBUILD_examples=ON\u00a0\u00a0-DCMAKE_INSTALL_PREFIX=\/usr\u00a0..\u00a0
make
sudo\u00a0make\u00a0install
<\/code><\/pre>\n<\/p>\n

4.7Eigen\u5b89\u88c5<\/p>\n

\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5<\/p>\n

\n

<\/span>sudo\u00a0apt-get\u00a0install\u00a0libeigen3-dev
<\/code><\/pre>\n<\/p>\n

\u53ef\u4ee5\u901a\u8fc7\u811a\u672c\u5b89\u88c5setup_eigen.sh<\/p>\n

\n

<\/span>git\u00a0clone\u00a0https:\/\/github.com\/eigenteam\/eigen-git-mirror
cd\u00a0eigen-git-mirror
mkdir\u00a0build
cd\u00a0build
cmake\u00a0-DCMAKE_INSTALL_PREFIX=\/usr\u00a0..
sudo\u00a0make\u00a0install
<\/code><\/pre>\n<\/p>\n

\u4e0d\u4ec5install\uff0c\u8fd8\u53ef\u4ee5\u67e5\u770b\u5176\u4ed6\u4fe1\u606f\uff1a<\/p>\n

\n

<\/span>--\u00a0************************************************************
--\u00a0
--\u00a0Configured\u00a0Eigen\u00a03.3.90
--\u00a0
--\u00a0Some\u00a0things\u00a0you\u00a0can\u00a0do<\/span>\u00a0now:
--\u00a0--------------+--------------------------------------------------------------
--\u00a0Command\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0Description
--\u00a0--------------+--------------------------------------------------------------
--\u00a0make\u00a0install\u00a0\u00a0|\u00a0Install\u00a0Eigen.\u00a0Headers\u00a0will\u00a0be\u00a0installed\u00a0to:
--\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0\u00a0\u00a0\/
--\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0Using\u00a0the\u00a0following\u00a0values:
--\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0\u00a0\u00a0CMAKE_INSTALL_PREFIX:\u00a0\/usr
--\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0\u00a0\u00a0INCLUDE_INSTALL_DIR:\u00a0\u00a0include\/eigen3
--\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0Change\u00a0the\u00a0install\u00a0location\u00a0of\u00a0Eigen\u00a0headers\u00a0using:
--\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0\u00a0\u00a0cmake\u00a0.\u00a0-DCMAKE_INSTALL_PREFIX=yourprefix
--\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0Or:
--\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0\u00a0\u00a0cmake\u00a0.\u00a0-DINCLUDE_INSTALL_DIR=yourdir
--\u00a0make\u00a0doc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0Generate\u00a0the\u00a0API\u00a0documentation,\u00a0requires\u00a0Doxygen\u00a0&\u00a0LaTeX
--\u00a0make\u00a0check\u00a0\u00a0\u00a0\u00a0|\u00a0Build\u00a0and\u00a0run\u00a0the\u00a0unit-tests.\u00a0Read\u00a0this\u00a0page:
--\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0\u00a0\u00a0http:\/\/eigen.tuxfamily.org\/index.php?title=Tests
--\u00a0make\u00a0blas\u00a0\u00a0\u00a0\u00a0\u00a0|\u00a0Build\u00a0BLAS\u00a0library\u00a0(not\u00a0the\u00a0same\u00a0thing\u00a0as\u00a0Eigen)
--\u00a0make\u00a0uninstall|\u00a0Removes\u00a0files\u00a0installed\u00a0by\u00a0make\u00a0install
--\u00a0--------------+--------------------------------------------------------------
<\/code><\/pre>\n<\/p>\n

\u6ce8\u610f<\/p>\n

\u5f53\u8c03\u7528eigen\u5e93\u65f6\uff0c\u4f1a\u62a5\u9519\uff1afatalerror:Eigen\/Core:Nosuchfileordirectory<\/p>\n

\u8fd9\u662f\u7531\u4e8eeigen\u5e93\u9ed8\u8ba4\u5b89\u88c5\u5728\u4e86\/usr\/include\/eigen3\/Eigen\u8def\u5f84\u4e0b\uff0c\u9700\u4f7f\u7528\u4e0b\u8fb9\u547d\u4ee4\u6620\u5c04\u5230\/usr\/include\u8def\u5f84\u4e0b<\/p>\n

\n

<\/span>sudo\u00a0ln\u00a0-s\u00a0\/usr\/include\/eigen3\/Eigen\u00a0\/usr\/include\/Eigen
<\/code><\/pre>\n<\/p>\n

4.8yaml\u5b89\u88c5<\/p>\n

setup_yaml.sh<\/p>\n

\n

<\/span>git\u00a0clone\u00a0https:\/\/github.com\/jbeder\/yaml-cpp
mkdir\u00a0build
cd\u00a0build
cmake\u00a0..

cmake\u00a0-DBUILD_SHARED_LIBS=ON\u00a0..
\u8fd9\u91cc\u7684\u53c2\u6570on\u4ee3\u8868\u521b\u5efa\u52a8\u6001\u94fe\u63a5\u5e93\uff0c\u9ed8\u8ba4\u662foff\uff0c\u5373\u521b\u5efa\u9759\u6001\u94fe\u63a5\u5e93

make
make\u00a0install

sudo\u00a0make\u00a0install
sudo\u00a0ldconfig
<\/code><\/pre>\n<\/p>\n

4.9\u5378\u8f7dlibreoffice<\/p>\n

remove_libreoffice.sh<\/p>\n

\n

<\/span>#<\/span>!\/usr\/bin\/env\u00a0bash<\/span>

sudo\u00a0apt\u00a0remove\u00a0libreoffice-calc
sudo\u00a0apt\u00a0remove\u00a0libreoffice-draw
sudo\u00a0apt\u00a0remove\u00a0libreoffice-impress
sudo\u00a0apt\u00a0remove\u00a0libreoffice-writer
sudo\u00a0apt\u00a0remove\u00a0libreoffice*
sudo\u00a0apt\u00a0\u00a0purge\u00a0libreoffice*
<\/code><\/pre>\n<\/p>\n

4.10\u5b89\u88c5\u5f55\u5c4f\u8f6f\u4ef6<\/p>\n

\u5b89\u88c5kazam\u8fd9\u6b3e\u8f6f\u4ef6\u3002<\/p>\n

\n

<\/span>sudo\u00a0apt-get\u00a0install\u00a0kazam
<\/code><\/pre>\n<\/p>\n

4.11\u5b89\u88c5tree<\/p>\n

\n

<\/span>sudo\u00a0apt\u00a0install\u00a0tree
<\/code><\/pre>\n<\/p>\n

4.12\u5b89\u88c5ROS<\/p>\n

\n

<\/span>sudo\u00a0sh\u00a0-c\u00a0'echo\u00a0\"deb\u00a0http:\/\/packages.ros.org\/ros\/ubuntu\u00a0$(lsb_release\u00a0-sc)\u00a0main\"\u00a0>\u00a0\/etc\/apt\/sources.list.d\/ros-latest.list'<\/span>
sudo\u00a0apt\u00a0install\u00a0curl\u00a0#\u00a0if\u00a0you\u00a0haven't\u00a0already\u00a0installed\u00a0curl<\/span>
curl\u00a0-s\u00a0https:\/\/raw.githubusercontent.com\/ros\/rosdistro\/master\/ros.asc\u00a0|\u00a0sudo\u00a0apt-key\u00a0add\u00a0-
sudo\u00a0apt\u00a0update\u00a0\u00a0#\u00a0\u66f4\u65b0apt\u8f6f\u4ef6\u6e90<\/span>
sudo\u00a0apt\u00a0install\u00a0ros-noetic-desktop-full\u00a0\u00a0#\u00a0\u5b89\u88c5ROS<\/span>
echo<\/span>\u00a0\"source\u00a0\/opt\/ros\/noetic\/setup.bash\"<\/span>\u00a0>>\u00a0~\/.bashrc\u00a0\u00a0#\u00a0\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/span>
source<\/span>\u00a0~\/.bashrc\u00a0\u00a0#\u00a0\u4f7f\u8bbe\u7f6e\u751f\u6548<\/span>
sudo\u00a0apt\u00a0install\u00a0python3-rosdep\u00a0python3-rosinstall\u00a0python3-rosinstall-generator\u00a0python3-wstool\u00a0build-essential
sudo\u00a0apt\u00a0install\u00a0python3-rosdep
sudo\u00a0rosdep\u00a0init
rosdep\u00a0update

##############\u00a0\u90e8\u5206\u64cd\u4f5c\u00a0\u00a0##############<\/span>
(base)\u00a0randy@Randy-HP-ZBook-G8:~\/Downloads$\u00a0sudo\u00a0apt\u00a0install\u00a0python3-rosdep\u00a0python3-rosinstall\u00a0python3-rosinstall-generator\u00a0python3-wstool\u00a0build-essential
Reading\u00a0package\u00a0lists...\u00a0Done
Building\u00a0dependency\u00a0tree\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0
Reading\u00a0state\u00a0information...\u00a0Done
python3-rosinstall\u00a0is\u00a0already\u00a0the\u00a0newest\u00a0version\u00a0(0.7.8-4).
python3-wstool\u00a0is\u00a0already\u00a0the\u00a0newest\u00a0version\u00a0(0.1.18-2).
build-essential\u00a0is\u00a0already\u00a0the\u00a0newest\u00a0version\u00a0(12.8ubuntu1.1).
The\u00a0following\u00a0NEW\u00a0packages\u00a0will\u00a0be\u00a0installed:
\u00a0\u00a0python3-rosdep
The\u00a0following\u00a0packages\u00a0will\u00a0be\u00a0upgraded:
\u00a0\u00a0python3-rosinstall-generator
1\u00a0upgraded,\u00a01\u00a0newly\u00a0installed,\u00a00\u00a0to\u00a0remove\u00a0and\u00a022\u00a0not\u00a0upgraded.
Need\u00a0to\u00a0get\u00a015.3\u00a0kB\u00a0of\u00a0archives.
After\u00a0this\u00a0operation,\u00a022.5\u00a0kB\u00a0of\u00a0additional\u00a0disk\u00a0space\u00a0will\u00a0be\u00a0used.
Do\u00a0you\u00a0want\u00a0to\u00a0continue<\/span>?\u00a0[Y\/n]\u00a0y
Get:1\u00a0http:\/\/packages.ros.org\/ros\/ubuntu\u00a0focal\/main\u00a0amd64\u00a0python3-rosdep\u00a0all\u00a00.22.2-1\u00a0[3,532\u00a0B]
Get:2\u00a0http:\/\/packages.ros.org\/ros\/ubuntu\u00a0focal\/main\u00a0amd64\u00a0python3-rosinstall-generator\u00a0all\u00a00.1.23-1\u00a0[11.8\u00a0kB]
Fetched\u00a015.3\u00a0kB\u00a0in<\/span>\u00a01s\u00a0(14.1\u00a0kB\/s)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0
Selecting\u00a0previously\u00a0unselected\u00a0package\u00a0python3-rosdep.
(Reading\u00a0database\u00a0...\u00a0307887\u00a0files\u00a0and\u00a0directories\u00a0currently\u00a0installed.)
Preparing\u00a0to\u00a0unpack\u00a0...\/python3-rosdep_0.22.2-1_all.deb\u00a0...
Unpacking\u00a0python3-rosdep\u00a0(0.22.2-1)\u00a0...
Preparing\u00a0to\u00a0unpack\u00a0...\/python3-rosinstall-generator_0.1.23-1_all.deb\u00a0...
Unpacking\u00a0python3-rosinstall-generator\u00a0(0.1.23-1)\u00a0over\u00a0(0.1.18-1)\u00a0...
Setting\u00a0up\u00a0python3-rosinstall-generator\u00a0(0.1.23-1)\u00a0...
Setting\u00a0up\u00a0python3-rosdep\u00a0(0.22.2-1)\u00a0...
(base)\u00a0randy@Randy-HP-ZBook-G8:~\/Downloads$\u00a0sudo\u00a0rosdep\u00a0init
Wrote\u00a0\/etc\/ros\/rosdep\/sources.list.d\/20-default.list
Recommended:\u00a0please\u00a0run

\u00a0\u00a0\u00a0\u00a0rosdep\u00a0update

(base)\u00a0randy@Randy-HP-ZBook-G8:~\/Downloads$\u00a0rosdep\u00a0update
reading\u00a0in<\/span>\u00a0sources\u00a0list\u00a0data\u00a0from\u00a0\/etc\/ros\/rosdep\/sources.list.d
Hit\u00a0https:\/\/raw.githubusercontent.com\/ros\/rosdistro\/master\/rosdep\/osx-homebrew.yaml
Hit\u00a0https:\/\/raw.githubusercontent.com\/ros\/rosdistro\/master\/rosdep\/base.yaml
Hit\u00a0https:\/\/raw.githubusercontent.com\/ros\/rosdistro\/master\/rosdep\/python.yaml
Hit\u00a0https:\/\/raw.githubusercontent.com\/ros\/rosdistro\/master\/rosdep\/ruby.yaml
Hit\u00a0https:\/\/raw.githubusercontent.com\/ros\/rosdistro\/master\/releases\/fuerte.yaml
Query\u00a0rosdistro\u00a0index\u00a0https:\/\/raw.githubusercontent.com\/ros\/rosdistro\/master\/index-v4.yaml
Skip\u00a0end-of-life\u00a0distro\u00a0\"ardent\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"bouncy\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"crystal\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"dashing\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"eloquent\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"foxy\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"galactic\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"groovy\"<\/span>
Add\u00a0distro\u00a0\"humble\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"hydro\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"indigo\"<\/span>
Add\u00a0distro\u00a0\"iron\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"jade\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"kinetic\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"lunar\"<\/span>
Skip\u00a0end-of-life\u00a0distro\u00a0\"melodic\"<\/span>
Add\u00a0distro\u00a0\"noetic\"<\/span>
Add\u00a0distro\u00a0\"rolling\"<\/span>
updated\u00a0cache\u00a0in<\/span>\u00a0\/home\/randy\/.ros\/rosdep\/sources.cache

<\/code><\/pre>\n<\/p>\n

\u5728ROS\u4e2d\u6709\u8bb8\u591a\u529f\u80fd\u5305\uff0c\u53ef\u4ee5\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u6307\u7684\u529f\u80fd\u5305\uff1a<\/p>\n

\n

<\/span>sudo\u00a0apt\u00a0install\u00a0ros-noetic-PACKAGE
#<\/span>\u00a0\u4f8b\u5982<\/span>
sudo\u00a0apt\u00a0install\u00a0ros-noetic-slam-gmapping
<\/code><\/pre>\n<\/p>\n

\u67e5\u770b\u53ef\u4ee5\u5b89\u88c5\u7684\u529f\u80fd\u5305\uff1a<\/p>\n

\n

<\/span>apt\u00a0search\u00a0ros-noetic
<\/code><\/pre>\n<\/p>\n

\u4e0a\u8ff0\u5b89\u88c5\u8fc7\u7a0b\u5018\u82e5\u9047\u89c1E:Unmetdependencies.\u9519\u8bef<\/p>\n

ubuntu\u5b89\u88c5gcc_ubuntu\u5b89\u88c5gcc_ubuntu \u5b89\u88c5 gcc 4.6<\/p>\n

\n

<\/span>(base)\u00a0randy@Randy-HP-ZBook-G8:~\/Downloads$\u00a0sudo\u00a0apt\u00a0install\u00a0ros-noetic-desktop-full
Reading\u00a0package\u00a0lists...\u00a0Done
Building\u00a0dependency\u00a0tree\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0
Reading\u00a0state\u00a0information...\u00a0Done
ros-noetic-desktop-full\u00a0is\u00a0already\u00a0the\u00a0newest\u00a0version\u00a0(1.5.0-1focal.20240125.205120).
You\u00a0might\u00a0want\u00a0to\u00a0run\u00a0'apt\u00a0--fix-broken\u00a0install'<\/span>\u00a0to\u00a0correct\u00a0these.
The\u00a0following\u00a0packages\u00a0have\u00a0unmet\u00a0dependencies:
\u00a0python3-rosdep-modules\u00a0:\u00a0Depends:\u00a0python3-rospkg-modules\u00a0(>=\u00a01.4.0)\u00a0but\u00a0it\u00a0is\u00a0not\u00a0going\u00a0to\u00a0be\u00a0installed
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Depends:\u00a0python3-catkin-pkg-modules\u00a0(>=\u00a00.4.0)\u00a0but\u00a0it\u00a0is\u00a0not\u00a0going\u00a0to\u00a0be\u00a0installed
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Depends:\u00a0python3-rosdistro-modules\u00a0(>=\u00a00.7.5)\u00a0but\u00a0it\u00a0is\u00a0not\u00a0going\u00a0to\u00a0be\u00a0installed
\u00a0ros-noetic-rospack\u00a0:\u00a0Depends:\u00a0python3-catkin-pkg-modules\u00a0but\u00a0it\u00a0is\u00a0not\u00a0going\u00a0to\u00a0be\u00a0installed
\u00a0ros-noetic-rqt-gui\u00a0:\u00a0Depends:\u00a0python3-rospkg-modules\u00a0but\u00a0it\u00a0is\u00a0not\u00a0going\u00a0to\u00a0be\u00a0installed
\u00a0ros-noetic-rqt-robot-monitor\u00a0:\u00a0Depends:\u00a0python3-rospkg-modules\u00a0but\u00a0it\u00a0is\u00a0not\u00a0going\u00a0to\u00a0be\u00a0installed
E:\u00a0Unmet\u00a0dependencies.\u00a0Try\u00a0'apt\u00a0--fix-broken\u00a0install'<\/span>\u00a0with\u00a0no\u00a0packages\u00a0(or\u00a0specify\u00a0a\u00a0solution).

<\/code><\/pre>\n<\/p>\n

\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n

\u73b0\u5c06info\u6587\u4ef6\u5939\u6539\u540d<\/p>\n

\n

<\/span>sudo\u00a0mv\u00a0\/var\/lib\/dpkg\/info\u00a0\/var\/lib\/dpkg\/info.bk
<\/code><\/pre>\n<\/p>\n

\u65b0\u5efa\u4e00\u4e2a\u65b0\u7684info\u6587\u4ef6\u5939<\/p>\n

\n

<\/span>sudo\u00a0mkdir\u00a0\/var\/lib\/dpkg\/info
<\/code><\/pre>\n<\/p>\n

\u5b89\u88c5\u4fee\u8865<\/p>\n

\n

<\/span>sudo\u00a0apt-get\u00a0update
sudo\u00a0apt-get\u00a0install\u00a0-f\u00a0
<\/code><\/pre>\n<\/p>\n

\u5728info\u6587\u4ef6\u5939\u4e0b\u751f\u6210\u4e00\u4e9b\u6587\u4ef6\uff0c\u73b0\u5c06\u8fd9\u79cd\u6587\u4ef6\u5168\u90e8\u79fb\u5230info.bk\u6587\u4ef6\u5939\u4e0b<\/p>\n

\n

<\/span>sudo\u00a0mv\u00a0\/var\/lib\/dpkg\/info\/*\u00a0\/var\/lib\/dpkg\/info.bk
<\/code><\/pre>\n<\/p>\n

\u5220\u6389\u81ea\u5df1\u65b0\u5efa\u7684info\u6587\u4ef6\u5939<\/p>\n

\n

<\/span>sudo\u00a0rm\u00a0-rf\u00a0\/var\/lib\/dpkg\/info
<\/code><\/pre>\n<\/p>\n

\u6062\u590d\u539f\u6709info\u6587\u4ef6\u5939<\/p>\n

\n

<\/span>sudo\u00a0mv\u00a0\/var\/lib\/dpkg\/info.bk\u00a0\/var\/lib\/dpkg\/info
<\/code><\/pre>\n<\/p>\n

Reference\u53c2\u8003\u8d44\u6599<\/p>\n

[1]<\/p>\n

\u6709\u65f6\u4faf\u5b89\u88c5\u7684\u65f6\u4faf\u4f1a\u62a5\u9519\uff0c\u975e\u5e38\u6ce8\u610f\/boot\u6587\u4ef6:<\/p>\n

[2]<\/p>\n

\u3010Ubuntu20.04\u5b89\u88c5CUDA\u3001cuDNN\u3011:<\/p>\n

[3]<\/p>\n

\u5b89\u88c5GooglePinyin:<\/p>\n

[4]<\/p>\n

Ubuntu20.04\u6df1\u5ea6\u5b66\u4e60\u5f00\u53d1\u73af\u5883\u5b89\u88c5\u6559\u7a0b\u5b8c\u5168\u7248[CUDA\/TensorRT\/Docker\/OpenCV...]:<\/p>\n

[5]<\/p>\n

E:Sub-process\/usr\/bin\/dpkgreturnedanerrorcode(1)\u89e3\u51b3\u529e\u6cd5:<\/p>\n","protected":false},"excerpt":{"rendered":"

Ubuntu20.04\u5168\u65b9\u4f4d\u6362\u7cfb\u7edf1.\u88c5\u673a\u4e4b\u540e\u7cfb\u7edf\u66f4\u65b0\uff0c\u8bbe\u7f6e\u8f6f\u4ef6\u6e902.\u5b89\u88c5\u7cfb\u7edf\u9a71\u52a80.\u539f\u59cb\u7cfb\u7edf\u5907\u4efd0.1\u6587\u4ef6\u5907\u4efd1.\u88c5\u673a\u4e4b\u540e\u7cfb\u7edf\u66f4\u65b0\uff0c\u8bbe\u7f6e\u8f6f\u4ef6\u6e90\u5177\u4f53\u5b89\u88c5\u65b9\u6cd5\uff0c\u53ef\u53c2\u8003\u3010Ubuntu20.04\u5b89\u88c5CUDA\u3001cuDNN\u3011[2]<\/p>\n","protected":false},"author":1,"featured_media":293188,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[3209,3210,3211,1436],"class_list":["post-293187","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-pdm","tag-s-39","tag-z-9","tag-wb"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=293187"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/293187\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/293188"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=293187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=293187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=293187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}

\u6216\u52192\u884c\u547d\u4ee4<\/a>\u6362\u6e90<\/p>\n