๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Programming/Setting

[Ubuntu] Lab Environment Setting

( Last update: 2020.01.17)

 

 

 Finally I have finished all the setups that I need right these days. 

 There have been seven steps.

 

 1. Installing Linux....Ubuntu in my Server PC by USB

 2. Setting my Office PC (Window installed) in my desk

 3. Installing some applications I use (Chrome, MicroOffice, KakaoTalk, MobaXterm ...otherwise)

 4. Connecting to my server by MobaXterm

 5. Installing Nvidia driver and CUDA, CUDNN

 6. Installing Anaconda in my server

   6.1. Setting up the environment

 7. Installing tensorflow-gpu and opencv in Anaconda env

   + Keras

 

 

 In this page, I'm gonna describe 4 steps in order.


 

1. Installing Ubuntu in Server PC by USB

   I borrowed a USB already containing Ubuntu file from my colleague. 

 Connect all the lines to my server PC and inserted USB there.

 Reboot pc with pressing ESC and Delete buttons at the same time. I cannot certain which button is right one, but anyway administor mod came up properly.

 

 

 


2. Setting my Office PC (Window installed) in my desk

   There were few problems in this step. Just connect all the lines that were connected with server PC before.

 I moved server PC to outside desk and set my office pc in my desk.

 

 

 


3. Installing some applications I use

(Chrome, MicroOffice, KakaoTalk, MobaXterm ...otherwise)

skip

 

 

 


4. Connecting to my server by MobaXterm

 1) Install MobaXterm free ver and start it.

 

 2) Press Session button

 

 

 3) Click SSH and fill in Basic SSH settings section.

 (Check 'Specify username)

 I wrote these datas at SSH article (private post)

 

 

 4) Success

 

 


5. Installing Nvidia driver and CUDA, CUDNN

1) Nvidia driver

 First, check whick one might be suitable for my environment.

 $ ubuntu-drivers devices

 Then, it shows me which one is the best (with 'recommended' letters)

 

 Install a driver.

 I got a reference to this below web site.

https://codechacha.com/ko/install-nvidia-driver-ubuntu/

 

์šฐ๋ถ„ํˆฌ 18.04 - NVIDIA ๋“œ๋ผ์ด๋ฒ„๋ฅผ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ• | chacha

Ubuntu 18.04์—์„œ nvidia driver ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์†Œ๊ฐœํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋ž˜ํ”ฝ ๋“œ๋ผ์ด๋ฒ„๋ฅผ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ubuntu-drivers๋ฅผ ์ด์šฉํ•˜์—ฌ ์ž๋™์œผ๋กœ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•๊ณผ ๋“œ๋ผ์ด๋ฒ„ ํŒŒ์ผ์„ ์ง์ ‘ ๋‹ค์šด๋ฐ›์•„ ์ˆ˜๋™์œผ๋กœ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. ์ž์‹ ์˜ ๊ทธ๋ž˜ํ”ฝ์นด๋“œ๊ฐ€ ubuntu-drivers์—์„œ ์ง€์›๋˜์ง€ ์•Š๋Š”๋‹ค๋ฉด ์ˆ˜๋™์œผ๋กœ ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

codechacha.com

 

 

2) CUDA, CUDNN

 I finished installing CUDA in Ubuntu Environment with reference to this upper site.

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

 

CUDA ์„ค์น˜ ์šฐ๋ถ„ํˆฌ ํ™˜๊ฒฝ - HiSEON

CUDA ์„ค์น˜ ์šฐ๋ถ„ํˆฌ ํ™˜๊ฒฝ ์šฐ๋ถ„ํˆฌ ํ™˜๊ฒฝ์—์„œ ์ตœ์‹  ๋ฒ„์ „์˜ CUDA ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์„ค๋ช…๋“œ๋ฆฝ๋‹ˆ๋‹ค. NVIDIA ํŒจํ‚ค์ง€ ๋ฆฌ์ŠคํŠธ๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ cuDNN 7.0 ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์™€ ํ•จ๊ป˜ CUDA 9.0๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. ์ตœ์‹  ๋ฒ„์ „์˜ ํ…์„œํ”Œ๋กœ์šฐ ์„ค์น˜ ํ™˜๊ฒฝ์„ ์ค€๋น„ํ•ฉ๋‹ˆ๋‹ค.

hiseon.me

 

 

 


6. Installing Anaconda in my server

 

 I referred to this web site.

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

 

์šฐ๋ถ„ํˆฌ ์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜ - HiSEON

์šฐ๋ถ„ํˆฌ ์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜ ์šฐ๋ถ„ํˆฌ ํ™˜๊ฒฝ์—์„œ ์•„๋‚˜์ฝ˜๋‹ค(Anaconda) ์„ค์น˜ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์„ค๋ช…๋“œ๋ฆฝ๋‹ˆ๋‹ค. Anaconda ์„ค์น˜ ํŒจํ‚ค์ง€๋ฅผ ๋‹ค์šด๋กœ๋“œ ๋ฐ›๊ณ , ํ™˜๊ฒฝ์„ ์ƒ์„ฑํ•˜๋Š” ๋“ฑ conda env ์™€ ๊ด€๋ จ๋œ ๊ธฐ๋ณธ์ ์ธ ๋ช…๋ น์–ด์— ๋Œ€ํ•ด์„œ๋„ ์„ค๋ช…๋“œ๋ฆฝ๋‹ˆ๋‹ค.

hiseon.me

 

 

 


7. Installing tensorflow-gpu and opencv in Anaconda env

 

 7-1) OpenCV

 

 

 7-2) Tensorflow-gpu

 

 (+)

+) Keras

 

 

 

 

 


 

 It looks like simple and may seem like there might be no any problems but it was difficult and complex.

 I don't want to do it again.