MATLab installation in Linux - eterpega/wiki GitHub Wiki

How to install MATLab in Linux

0. ์ฝ์–ด๋ณด๊ธฐ

  • ์„ค์น˜์‹œ์— superuser ๊ถŒํ•œ ์—†์ด๋„ ์„ค์น˜๊ฐ€ ๋˜์ง€๋งŒ, ํŠน์ • ์„ค์น˜ ์˜ต์…˜์ด ์ œํ•œ๋˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. (๊ธฐ๋ณธ ์„ค์น˜ ํด๋” /usr/local/ ๋Š” sudo ๊ถŒํ•œ์ด ์žˆ์–ด์•ผ ์ ‘๊ทผ ๊ฐ€๋Šฅ.)
  • 2016b๋ฒ„์ „๋ถ€ํ„ฐ๋Š” 32bit๋Š” ์ง€์›์ด ์•ˆ๋˜๋ฉฐ, 32bit์— ์„ค์น˜ํ•˜์‹œ๊ธฐ ์œ„ํ•ด์„œ๋Š” 2016a ์ด์ „๋ฒ„์ „์„ ์„ค์น˜ํ•˜์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค.
  • ๋ณด๋‹ค ์ž์„ธํ•œ ์„ค์น˜ ๋ฐฉ๋ฒ•์€ http://kr.mathworks.com/help/install/ug/install-mathworks-software.html ๋ฅผ ์ฐธ๊ณ ํ•˜ ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
  • Mathworks ๊ณ„์ • ๋ฐ ๋ผ์ด์„ผ์Šค ๊ด€๋ จ ์ž์„ธํ•œ ๋‚ด์šฉ์€ ์ƒ๋žตํ•ฉ๋‹ˆ๋‹ค.

1. ํ™˜๊ฒฝ

2. ์„ค์น˜

1. root ๊ถŒํ•œ ๊ฐ–๊ธฐ

$ sudo -s

2. Matlab์ด ์„ค์น˜๋  ํด๋” ์ƒ์„ฑ

# mkdir -p /usr/local/MATLAB/R2017a

3. iso ๋งˆ์šดํŠธ ๋  ํด๋”๋ฅผ ์ƒ์„ฑํ•œ๋‹ค.

# mkdir /media/isoimage

4. Add a Loadable Kernel Module and its dependencies to a running Linux system.

# modprobe loop

5. iso ํŒŒ์ผ์„ ๋งˆ์šดํŠธ ํ•œ๋‹ค.

# mount /(ISO ํŒŒ์ผ์˜ ์œ„์น˜)/[filename].iso /media/isoimage/ -t iso9660 -o loop

6. ์„ค์น˜ ํŒŒ์ผ ์‹คํ–‰

# cd && sh /media/isoimage/install

  • (์˜ค๋ฅ˜๋ฐœ์ƒ์‹œ-->) ๋งˆ์šดํŠธํ•œ ํด๋”์—์„œ ์„ค์น˜ ์‹คํ–‰์‹œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค.(๊ฐ€์ƒ๋“œ๋ผ์ด๋ธŒ write permission ๊ด€๋ จ)

    # cd /media/isoimage

    # ./install

  • (์˜ค๋ฅ˜๋ฐœ์ƒ์‹œ-->) eXecute ๊ถŒํ•œ์ด ์—†์„์‹œ์—” ์ถ”๊ฐ€ํ•œ๋‹ค. # chmod +x /media/isoimage/install

7. ์„ค์น˜ ์ง„ํ–‰

  • GUI์— ๋”ฐ๋ผ ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ•œ๋‹ค.

8. ์–ธ๋งˆ์šดํŠธ

  • ISO ์–ธ๋งˆ์šดํŠธ & superuser exit
    # unmount /media/isoimage 
    # exit 
    $ 
    

9. ๋ฐ”๋กœ๊ฐ€๊ธฐ ์ƒ์„ฑ

  • ์•„์ด์ฝ˜ ๋‹ค์šด๋กœ๋“œ

$ sudo wget http://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png -O /usr/share/icons/matlab.png

  • ์‹ฌ๋ณผ๋ฆญ ๋งํฌ ์ƒ์„ฑ

$ sudo ln -s /usr/local/MATLAB/R2017a/bin/matlab /usr/bin

  • ๋ฐ”ํƒ•ํ™”๋ฉด ๋ฐ”๋กœ๊ฐ€๊ธฐ

$ sudo gedit /usr/share/applications/matlab.desktop

  • matlab.desktop ํŽธ์ง‘
[Desktop Entry]
Type=Application
Name=Matlab
Comment=Matlab Development Environment
Icon=/opt/matlab.png
Exec=matlab
Terminal=false
Categories=Development;IDE;Matlab;

3. ์ฃผ์„์ฒ˜๋ฆฌ

<---์ฃผ์„!-->

4. ์‹คํ–‰

  • Desktop icon ํด๋ฆญ ์‹คํ–‰

  • terminal ๋ช…๋ น์–ด ์ž…๋ ฅ ์‹คํ–‰

    $ sudo /usr/local/MATLab/R2017a/bin/matlab

  • ์ดˆ๊ธฐ ์‹คํ–‰์‹œ license activation ํ•œ๋‹ค.

    • license file ๊ฒฝ๋กœ (/usr/local/MATLAB/R2017a/)

5. Setting display Resolution

$ sudo matlab

>> s=setiings; >> s.matlab.desktop.DisplayScaleFactor.PersonalValue=2.0 >> exit

$ matlab

โš ๏ธ **GitHub.com Fallback** โš ๏ธ