sudo apt update
sudo apt install openssh-server
sudo apt install lvm2
sudo lvdisplay #####查看VGname
sudo vgchange -ay lcldata ##### lcldata就是 vgname
sudo mount /dev/lcldata/lvol0 /home ##### /dev/lcldata/lvol0 是 LVpath ;/home是挂载目录
###################################挂载后原home文件消失:
mkdir /new
sudo mount /dev/lcldata/lvol0 /new
sudo cp -R /home/* /new
sudo rm -rf /home/*
sudo umount /new
sudo rm -rf /new
sudo mount /dev/lcldata/lvol0 /home
安装Nvida驱动:软件与更新 525-server
安装CUDA: wegt +
sudo sh +
vim ~/.bashrc
插入以下两部分内容:
!!CUDA环境!!
export PATH=
P
A
T
H
:
/
u
s
r
/
l
o
c
a
l
/
c
u
d
a
−
11.4
/
b
i
n
e
x
p
o
r
t
L
D
L
I
B
R
A
R
Y
P
A
T
H
=
PATH:/usr/local/cuda-11.4/bin export LD_LIBRARY_PATH=
PATH:/usr/local/cuda−11.4/binexportLDLIBRARYPATH=LD_LIBRARY_PATH:/usr/local/cuda-11.4/1ib64
export LIBRARY_PATH=
L
I
B
R
A
R
Y
P
A
T
H
:
/
u
s
r
/
1
o
c
a
l
/
c
u
d
a
−
11.4
/
1
i
b
64
e
x
p
o
r
t
P
A
T
H
=
/
h
o
m
e
/
z
h
a
a
x
i
a
o
w
e
i
/
C
o
n
d
a
/
b
i
n
:
LIBRARY_PATH:/usr/1ocal/cuda-11.4/1ib64 export PATH=/home/zhaaxiaowei/Conda/bin:
LIBRARYPATH:/usr/1ocal/cuda−11.4/1ib64exportPATH=/home/zhaaxiaowei/Conda/bin:PATH
export CUDA_HOME=/usr/local/cuda-11.4
!!CONDA环境!!
__conda_setup=“$(‘/home/zhaoxiaowei/Conda/bin/conda’ ‘shell.bash’ ‘hook’ 2> /dev/null)”
if [
?
−
e
q
0
]
;
t
h
e
n
e
v
a
l
"
? -eq 0 ]; then eval "
?−eq0];theneval"__conda_setup"
else
if [ -f “/home/zhaoxiaowei/Conda/etc/profile.d/conda.sh” ]; then
. “/home/zhaoxiaowei/Conda/etc/profile.d/conda.sh”
else
export PATH=“/home/zhaoxiaowei/Conda/bin:$PATH”
fi
fi
unset __conda_setup
插入后 source ~/.bashrc即可使用原始conda环境
zxw@zxw-X11DPi-N-T:/home/mmic3090/cuda-11.4$ sudo blkid /dev/sda
/dev/sda: UUID=“7I1ZK5-6QFS-93mU-B2gM-1UQF-0Aod-XKia4y” TYPE=“LVM2_member”
zxw@zxw-X11DPi-N-T:/home/mmic3090/cuda-11.4$ sudo blkid /dev/sdb
/dev/sdb: UUID=“mIXOmm-qkHv-3jXV-0Nw2-H8gv-UHIZ-QMxlIN” TYPE=“LVM2_member”