ksh0165 / ReactStudy

업무에 필요한 내용 기록
http://github.com/ksh0165/works.git
0 stars 0 forks source link

ubuntu gpu 설치 해보기 #331

Open ksh0165 opened 1 year ago

ksh0165 commented 1 year ago

https://meme2.tistory.com/115

lshw -C display apt install -y ubuntu-drivers-common ubuntu-drivers devices

apt list --upgradable apt update apt upgrade

apt update && apt install -yqq daemonize dbus-user-session fontconfig

daemonize /usr/bin/unshare --fork --pid --mount-pr oc /lib/systemd/systemd --system-unit=basic.target

apt install cgroupfs-mount

apt-cache search NVIDIA driver metapackage apt-get install nvidia-driver-470

reboot -f

nvidia-smi

https://velog.io/@cychoi74/%EC%9A%B0%EB%B6%84%ED%88%AC-18.04-NVIDIA-%EB%93%9C%EB%9D%BC%EC%9D%B4%EB%B2%84-%EC%84%A4%EC%B9%98

ksh0165 commented 1 year ago

A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau from loading. This can be reverted by deleting the following file: /etc/modprobe.d/nvidia-graphics-drivers.conf

A new initrd image has also been created. To revert, please regenerate your initrd by running the following command after deleting the modprobe.d file: /usr/sbin/initramfs -u


Reboot your computer and verify that the NVIDIA graphics driver can be loaded.


INFO:Enable nvidia DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here Loading new nvidia-470.182.03 DKMS files... It is likely that 5.10.102.1-microsoft-standard-WSL2 belongs to a chroot's host

ksh0165 commented 1 year ago

docker run -it -d --privileged=true --name ks6 -p 3232:22 -p 3233:23 -p 3231:21 -p 380:80 -p 3577:7577 -p 3571:7571 -p 3581:7581 -p 3574:7574 -p 3614:7614 -e container=docker -v /sys/fs/cgroup:/sys/fs/cgroup:ro akashrawat01/nvidia-cuda-11-ubuntu18:1 /bin/sh

ksh0165 commented 1 year ago

add-apt-repository ppa:graphics-drivers/ppa

ksh0165 commented 1 year ago

apt install --only-upgrade

ksh0165 commented 1 year ago

우분투 패키지 설치 관련 : apt install --only-upgrade

ksh0165 commented 1 year ago

드라이버 삭제 관련 :https://meme2.tistory.com/115

ksh0165 commented 1 year ago

https://velog.io/@cychoi74/%EC%9A%B0%EB%B6%84%ED%88%AC-18.04-NVIDIA-%EB%93%9C%EB%9D%BC%EC%9D%B4%EB%B2%84-%EC%84%A4%EC%B9%98