하면서 이런이런것을 공부했다[연구노트]/Python, Ubuntu

[ubuntu] 몇번째 설치 중 인지 모르겠을 Ubuntu

junha1125 2020. 2. 24. 16:04

 

 

0. SSD 포멧하기

우분투 설치 USB로 포멧이 가능하다고 믿지만, 사실은 아니다. 

SSD에 원래 우분투가 있었다면, 그 곳에 덮어쓰기하면서 문제가 발생할 수 있다. 

따라서 꼭 포멧하고 설치하기 

 

1. 바이오스 환경설정

  • fast bootup & fast setup : OFF
  • UEFI booting으로 설정
  • securiry boot : OFF

 

2. 우분투 설치

하드 2개 이용해서 설치하기 : 

https://askubuntu.com/questions/1033497/dual-boot-windows-10-and-linux-ubuntu-on-separate-ssd

$ sudo update-grub         
# 모든 우분투 설치가 완료되고 마지막에 할 것. 
# 결과는 Microsoft의 새로운 EFI가 감지되었다고 하며, 새로운 EFI를 add처리한다.

설정 방법 : 

/dev/nvmeOn1p1 : 134MB

/dev/nvmeOn1p1 swap : 12287MB

/dev/nvmeOn1p1 efi : 500MB   #legacy boot first로 하면 이것으로 설정 불가능

/dev/nvmeOn1p1 ext4 / : 나머지MB

 

 

3. 잘 설치 되었나 확인

a. apt-get 잘되는지 확인

sudo apt-get update
sudo apt-get install kolourpaint4
kolourpaint

 

b. 문제 발생시 서버 사이트 변경

koreaUbuntu  -> daum.kakao

https://twpower.github.io/99-change-apt-get-source-server

 

 

c. 한영키 전환

언어 설정 고급관리에서 -> 언어팩 자동 다운로드

ibus-setup https://tobelinuxer.tistory.com/15

이거 하고 재부팅!

그리고 ibut-setup 설정을 위 사이트처럼 하기

 

d. chrome 설치

 

e. chrome 북마크등 synchronizing하기

 

 

 

4. docker설치 & git config하기

$ git config --global user.name "junha1125"
$ git config --global user.email sb020518@naver.com

 

5. graphic driver설치

이 사이트 이용

Nvidia driver를 설치하지 않으면 Dual Moniter에 문제가 발생할 수 있다. -> black screen

$ sudo apt-get update
$ ubuntu-drivers devices
$ sudo ubuntu-drivers autoinstall
$ sudo reboot 

 

 

6. anaconda 설치

https://hiseon.me/python/ubuntu-anaconda-install/

https://pytorch.org/get-started/locally/

 

7. visual studio code 설치

https://code.visualstudio.com/docs/setup/linux

$ sudo snap install --classic code
$ code   # VScode 실행하기  [항상 터미널로 code실행]

 

8. cuda&cudnn 설치

https://hiseon.me/linux/ubuntu/cuda-install/

 

 

 

9.