Free and open-source Linux distribution based on Debian

Work Instruction

Download Ubuntu

  • https://releases.ubuntu.com/focal/

  • Select desktop image

Make Bootup USB using Rufus

  • https://rufus.ie/ko/

Boot with USB

  • Press Del key to enter Bios and Select USB (for each PC vendor)

  • Select English

  • Select 한국어 keyboard layout

한/영 인식이 안되는 현상

  • https://mryeo.tistory.com/18

  • Settings > Region and language
  • Install language support
  • Delete 한국어(101/104키 호환) > 한국어(Hangul) Setting Icon > 한영전환키 모두 삭제 > Hangul 추가

Disable Ubuntu Update

  • 설정이 다 꼬이는 수가 있다.. 일단 disable
sudo systemctl disable unattended-upgrades
sudo systemctl stop unattended-upgrades

Install NVIDIA Graphic Driver

Ubuntu package manager update

  • Open terminal
sudo apt update

Option 1) Auto-install (old graphic card)

  • Open terminal
ubuntu-drivers devices
  • (recommended 확인)
sudo apt install nvidia-driver-*
  • 재부팅
sudo reboot
  • 확인
nvidia-smi
  • 결과
  • 2023-08-13_17-58-install-nvidia-driver

기타 오류 상황

Option 2) Manual

  • GPU가 최신이라 아직 자동설치를 지원하지 않는 경우

  • NVIDIA Driver Download https://www.nvidia.co.kr/Download/index.aspx?lang=kr

실행권한 할당

  • chmod +x NVIDA-*

실행

  • sudo ./NVIDA-*

Reboot

  • sudo reboot

기존에 설치된 driver와 충돌나는 경우, 기존 것을 disable하는 과정이 추가되어야 함

Install TensorRT

  • https://developer.nvidia.com/nvidia-tensorrt-8x-download
  • Download depend on Ubuntu, CUDA version
    • TensorRT 8.6 GA for Ubuntu 20.04 and CUDA 12.0 and 12.1 DEB local repo Package
    • nv-tensorrt-local-repo-ubuntu2004-8.6.1-cuda-12.0_1.0-1_amd64.deb
  • Go to download folder and install .deb
    sudo dpkg -i nv-tensorrt-local-repo-ubuntu2004-8.6.1-cuda-12.0_1.0-1_amd64.deb 
    

Install NVIDIA Docker

  • https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html

  • install docker

    • copy and paste
curl https://get.docker.com | sh \
    && sudo systemctl --now enable docker
  • Setup NVIDIA Container Toolkit
    • 각 저장소의 공개키 추가
    • sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys (에러메시지에서 나온 공개키)
    • 우분투 패키지 관리자 업데이트
    • sudo apt update
    • nvidia continer toolkit package 설치
      • nvidia-container-toolkit-base (기본기능) 혹은 nvidia-container-toolkit (확장)

Hot keys

  • File copy and paste: cntrl + C, cntrl + V

Ubuntu update 이후 부팅되지 않을 때

  • reboot
  • shift
  • 밑에서 두 번째 줄, 스페이스, nomodeset, F10