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>\n2.\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
<\/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<\/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>\nubuntu\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>\n3\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>\n4\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c54.1\u5e38\u7528\u8f6f\u4ef6\u5b89\u88c5<\/p>\n
<\/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>\n4.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>\n4.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>\n4.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>\n4.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>\n4.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>\n4.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>\n4.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>\n4.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>\n4.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>\n4.11\u5b89\u88c5tree<\/p>\n
\n
<\/span>sudo\u00a0apt\u00a0install\u00a0tree
<\/code><\/pre>\n<\/p>\n4.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>