Ubuntu

Win11+Ubuntu20.04双系统安装教程

安装教程

切换root登录

教程
cmd中切换用户方法:

sudo su - root(or others)

terminaltor安装

sudo apt install terminator

显卡驱动安装教程

安装教程

注意显卡驱动要在NVIDIA官网上重新下载,而不能直接使用原有的旧版本。

anaconda安装教程

安装教程

主要不要使用sudo,否则anaconda文件夹会被默认安装入root目录内。

更换国内源:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/

conda config --set show_channel_urls yes

pip更换国内源:

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

vscode插件列表

C/C++, CMake, code translate, github repositories, jupyter, Latex workshop, pylance, python, python debugger, tensorboard

CUDA、Cudnn安装教程

安装教程

cuda安装时不选择Driver和Kernel Ojbects。

多cuda版本切换

第二个版本的安装流程与第一个流程相同,切换时更改软链接即可。
切换方法

Pytorch安装

conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia

各种软件安装方式:

deb:

sudo dpkg -i path_to_deb_file

sh:

sudo sh path_to_sh_file

tar/tar.gz:

tar -xvf path_to_gz_file
tar -zxvf path_to_tar_gz_file

其他问题

x-server命令行模式中不断弹出pci报错:

kernel error pcieport AER: P pcieport: device [8086:a110] error status/mask=00000001/00002000

解决方法如下:

针对不同报错信息可能需要写入不同的pci=noxxx,需根据实际问题调整。

posted @ 2024-05-15 17:51  ilk012  阅读(17)  评论(0)    收藏  举报