112 lines
3.2 KiB
Markdown
112 lines
3.2 KiB
Markdown
```shell
|
|
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
|
|
sudo dpkg -i cuda-keyring_1.1-1_all.deb
|
|
sudo apt-get update
|
|
sudo apt-get -y install cuda-toolkit-12-8
|
|
sudo apt-get install -y cuda-drivers
|
|
```
|
|
|
|
```
|
|
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble InRelease
|
|
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates InRelease
|
|
Hit:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports InRelease
|
|
```
|
|
|
|
```
|
|
cat <<EOF | sudo tee /etc/apt/sources.list
|
|
deb https://mirrors.ustc.edu.cn/ubuntu/ noble main restricted universe multiverse
|
|
deb https://mirrors.ustc.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
|
|
deb https://mirrors.ustc.edu.cn/ubuntu/ noble-backports main restricted universe multiverse
|
|
deb http://security.ubuntu.com/ubuntu noble-security main restricted universe multiverse
|
|
EOF
|
|
```
|
|
|
|
```shell
|
|
nvidia-smi
|
|
```
|
|
|
|
```shell
|
|
nvcc -V
|
|
```
|
|
|
|
```
|
|
(base) root@ss-IdeaPad-PC:/etc/apt/apt.conf.d# cat /etc/netplan/*.yaml
|
|
network:
|
|
version: 2
|
|
wifis:
|
|
NM-032d418b-ec9c-4adc-8f9d-77c613045f3f:
|
|
renderer: NetworkManager
|
|
match:
|
|
name: "wlp0s20f3"
|
|
dhcp4: true
|
|
dhcp6: true
|
|
access-points:
|
|
"LCFC":
|
|
auth:
|
|
key-management: "eap"
|
|
method: "peap"
|
|
identity: "V-LiuShuang@lcfuturecenter.com"
|
|
phase2-auth: "gtc"
|
|
password: "OPad@048BY"
|
|
networkmanager:
|
|
uuid: "032d418b-ec9c-4adc-8f9d-77c613045f3f"
|
|
name: "LCFC"
|
|
passthrough:
|
|
ipv6.addr-gen-mode: "default"
|
|
ipv6.ip6-privacy: "-1"
|
|
proxy._: ""
|
|
networkmanager:
|
|
uuid: "032d418b-ec9c-4adc-8f9d-77c613045f3f"
|
|
name: "LCFC"
|
|
network:
|
|
version: 2
|
|
wifis:
|
|
NM-13c40b03-0fec-4922-b31b-6e3f1758bc19:
|
|
renderer: NetworkManager
|
|
match:
|
|
name: "wlp0s20f3"
|
|
dhcp4: true
|
|
dhcp6: true
|
|
access-points:
|
|
"THM-15F":
|
|
auth:
|
|
key-management: "psk"
|
|
networkmanager:
|
|
uuid: "13c40b03-0fec-4922-b31b-6e3f1758bc19"
|
|
name: "THM-15F"
|
|
passthrough:
|
|
wifi-security.auth-alg: "open"
|
|
ipv6.addr-gen-mode: "default"
|
|
ipv6.ip6-privacy: "-1"
|
|
proxy._: ""
|
|
networkmanager:
|
|
uuid: "13c40b03-0fec-4922-b31b-6e3f1758bc19"
|
|
name: "THM-15F"
|
|
network:
|
|
version: 2
|
|
ethernets:
|
|
NM-52e41500-51e1-33d6-9f80-a40159cb96d2:
|
|
renderer: NetworkManager
|
|
match:
|
|
name: "enp118s0"
|
|
addresses:
|
|
- "100.100.231.21/22"
|
|
nameservers:
|
|
addresses:
|
|
- 114.114.114.114
|
|
dhcp6: true
|
|
wakeonlan: true
|
|
networkmanager:
|
|
uuid: "52e41500-51e1-33d6-9f80-a40159cb96d2"
|
|
name: "Wired connection 1"
|
|
passthrough:
|
|
connection.autoconnect-priority: "-999"
|
|
connection.timestamp: "1755854451"
|
|
ethernet._: ""
|
|
ipv4.address1: "100.100.231.21/22,100.100.231.254"
|
|
ipv4.method: "manual"
|
|
ipv6.addr-gen-mode: "default"
|
|
ipv6.ip6-privacy: "-1"
|
|
proxy._: ""
|
|
(base) root@ss-IdeaPad-PC:/etc/apt/apt.conf.d
|
|
``` |