Notice
Recent Posts
Recent Comments
Link
04-19 10:42
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
04-19 10:42
관리 메뉴

GoopyAspirin

ubuntu 에서 nvidia 드라이버 클린설치하기 본문

카테고리 없음

ubuntu 에서 nvidia 드라이버 클린설치하기

두시오분 2017. 8. 4. 17:12
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

ubuntu 에서 nvidia 드라이버 클린 재설치하기


nvidia driver clean reinstall in ubuntu




이 내용은 ubuntu 16 과 14 에서 동일 코드로 정상동작을 확인하였습니다.


This is confirmed in ubuntu 16 and 14 with the same code.





(옵션) 미리 다운받은 Nvidia 드라이버가 없을 경우 아래 링크에서 최신 버전의 Nvidia 드라이버를 다운받으시기 바랍니다.

다운 받으신 뒤에는 접근하기 편한 /home  디렉토리 등으로 이동하시는 것을 권장합니다. 간혹 다운로드 폴더에 그대로 둔 경우 CUI 모드에서 한국어로 다운로드 치기 힘들어집니다.


(Optional) If you do not have the Nvidia driver already downloaded, please download the latest version of Nvidia driver from the link below. After downloading, it is recommended to go to /home directory which is easy to access. Sometimes it is difficult to download in CUI mode in Korean if you leave it in the download folder.


http://www.nvidia.co.kr/Download/index.aspx?lang=kr




1. 기존에 설치된 nvidia 드라이버 삭제


First. Delete nvidia driver in your server.



먼저, 아래 명령어로 nvidia 관련 설치 패키지들을 확인하세요.


Search what packages from nvidia you have installed.

dpkg -l | grep -i nvidia


만약 지금 GUI 모드에서 접근중이거나 다른 1개이상의 세션에서 GUI 모드를 사용하고 있는 경우 제거가 완벽하게 진행되지 않을 수 있습니다. 그렇기 때문에 Control + Alt + F1 을 눌러 CUI 콘솔 모드로 전환합니다. F1~F8 아무거나 상관없으며, F4 는 GUI 모드(윈도우 모드)입니다.

If you are currently in GUI mode or are using GUI mode in one or more other sessions, the removal may not be complete. So press Control + Alt + F1 to switch to CUI console mode. F1 ~ F8 No matter what, F4 is GUI mode (window mode).


nvidia와 관련된 모든 패키지들을 제거하고 싶다면, 아래 명령어를 사용하시면 됩니다.

If you want to be sure that you will purge everything related to nvidia you can give this command

sudo apt-get remove --purge nvidia-*




2. 서버에 nvidia 드라이버 설치


Second, Install nvidia driver in your server.



nano 편집기를 사용하여 아래 설정파일을 열어줍니다.

Use the nano editor to open the configuration file below.


sudo nano /etc/modprobe.d/blacklist.conf


아래 내용들을 설정파일 맨 아래에 붙여줍니다.
Add the following to the bottom of the configuration file.

blacklist amd76x_edac #this might not be required for x86 32 bit users.
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv


관리자 권한을 사용하여 지금 사용하고 있는 그래픽 매니저를 종료시킵니다.
Use administrator privileges to shut down the graphics manager you are using.

sudo service lightdm stop 


다운받은 Nvidia 드라이버 .run 파일의 권한을 수정해줍니다.
본 게시글 상단의 옵션에서 처럼 미리 /home 디렉토리로 옮겨둔 경우 chmod +x NV 를 입력하고 키보드의 Tap을 누르면 자동완성이 됩니다.

Modify the permissions of the downloaded Nvidia driver .run file.
If you moved to the /home directory as in the options at the top of this post, type chmod + x NV and hit Tap on the keyboard to auto-complete.









chmod +x NVIDIA-Linux-x86_64-361.42.run



아래 명령어로 서비스를 시작합니다. Start 실행시 오류가 발생할 경우 restart를 시도해보시기 바랍니다.

Start the service with the following command. If an error occurs during execution of Start, please try restart command.

sudo service lightdm start



올바르게 설치가 되었다면 아래 명령어로 부착된 GPU와 실행중인 프로세스들을 확인하실 수 있습니다.


If it is installed properly, you can check attached GPU and running processes with the following command.

nvidia-smi


Comments