Linux ¼¹ö¸¦ ¿ø°ÝÀ¸·Î Á¢¼ÓÇÏ¸é¼ X11 forwardingÀÇ GUI¸¦ »ç¿ëÇÏ´Â ¹æ¹ýÀº ¾Æ·¡¿Í °°½À´Ï´Ù.
[GPU ¼¹ö]
[Ubuntu]
1. ¼¹ö¿¡¼ ¿ìºÐÅõ GUI ÆÐÅ°Áö ¼³Ä¡
# apt-get update
# apt-get install -y ubuntu-desktop xorg xrdp xserver-xorg mesa-utils xauth gdm3
// display manager popup ½Ã, gdm3·Î ¼±ÅÃÇÏ°í Enter
# dpkg-reconfigure xserver-xorg
2. X ¸ðµå - NVIDIA ±×·¡ÇÈ Ä«µå ȯ°æ ¼³Á¤ ·Îµå
# nvidia-xconfig
// NVIDIA ±×·¡ÇÈÄ«µå ¼³Á¤ ¾÷µ¥ÀÌÆ®, /etc/X11/xorg.conf ÆÄÀÏÀÌ Àß »ý¼ºµÇ¾ú´ÂÁö È®ÀÎ
3. X11 server mode ¼³Á¤ (/etc/ssh/sshd_config ¼³Á¤)
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalHost no => Ãß°¡·Î »ðÀÔ
UseLogin no => ÁÖ¼® ó¸® »èÁ¦
4. X11 ¼¼¼Ç ÀÎÁõ ±â·ÏÆÄÀÏ »ý¼º ¹× ±ÇÇÑ Á¶Á¤
# touch /root/.Xauthority;chmod 600
5. /etc/hosts ÆÄÀÏ¿¡ - xauth display session Á¤º¸¸¦ ã¾Æ°¡±â À§ÇÑ default Á¤º¸ Ãß°¡
127.0.0.1 È£½ºÆ®¸í // (¿¹) 127.0.0.1 gpu-test-01
6. Display ±¸¼º ¾÷µ¥ÀÌÆ®¸¦ À§ÇÑ reboot
# reboot
7. Desktop¿¡¼ X11 forwarding Á¢¼ÓÀ» À§ÇÑ client ÇÁ·Î±×·¥À¸·Î Xming ¼³Ä¡ ¹× ±¸µ¿
(1) Xming ´Ù¿î·Îµå
(2) Xming ¼³Ä¡ & ½ÇÇà
(3) ¿ø°Ý Á¢¼Ó ÇÁ·Î±×·¥ ¼³Á¤(¿¹: Putty)
(4) ¼¹ö·Î ssh Á¢¼Ó
8. X11 display Æ÷¿öµù µ¿ÀÛ Ã¼Å©
# xdpyinfo // µð½ºÇ÷¹ÀÌ Á¤º¸°¡ ³ª¿À¸é Á¤»ó
9. ¹é±×¶ó¿îµå ½ÇÇà Å×½ºÆ®
# libreoffice & ¶Ç´Â xclock & // libreoffice, xclock ½ÇÇà Å×½ºÆ®
[CentOS]
1. ¼¹ö¿¡¼ gnome desktop package ¼³Ä¡
# yum -y groups install "GNOME Desktop"
# yum install -y xorg-x11-apps
2. X ¸ðµå - NVIDIA ±×·¡ÇÈ Ä«µå ȯ°æ ¼³Á¤ ·Îµå
# nvidia-xconfig
// NVIDIA ±×·¡ÇÈÄ«µå ¼³Á¤ ¾÷µ¥ÀÌÆ®, /etc/X11/xorg.conf ÆÄÀÏÀÌ Àß »ý¼ºµÇ¾ú´ÂÁö È®ÀÎ
3. X11 server mode ¼³Á¤ (/etc/ssh/sshd_config ¼³Á¤)
AddressFamily any -> AddressFamily inet ·Î ¼öÁ¤
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no
UseLogin no
4. X11 ¼¼¼Ç ÀÎÁõ ±â·ÏÆÄÀÏ »ý¼º ¹× ±ÇÇÑ Á¶Á¤
# touch /root/.Xauthority;chmod 600 /root/.Xauthority
5. /etc/hosts ÆÄÀÏ¿¡ - xauth display session Á¤º¸¸¦ ã¾Æ°¡±â À§ÇÑ default Á¤º¸ Ãß°¡
127.0.0.1 È£½ºÆ®¸í // (¿¹) 127.0.0.1 gpu-test-01
6. Display ±¸¼º ¾÷µ¥ÀÌÆ®¸¦ À§ÇÑ reboot
# reboot
7. Desktop¿¡¼ X11 forwarding Á¢¼ÓÀ» À§ÇÑ client ÇÁ·Î±×·¥À¸·Î Xming ¼³Ä¡ ¹× ±¸µ¿
(1) Xming ´Ù¿î·Îµå
(2) Xming ¼³Ä¡ & ½ÇÇà
(3) ¿ø°Ý Á¢¼Ó ÇÁ·Î±×·¥ ¼³Á¤(¿¹: Putty)
(4) ¼¹ö·Î ssh Á¢¼Ó
8. X11 display Æ÷¿öµù µ¿ÀÛ Ã¼Å©
# xdpyinfo // µð½ºÇ÷¹ÀÌ Á¤º¸°¡ ³ª¿À¸é Á¤»ó
9. ¹é±×¶ó¿îµå ½ÇÇà Å×½ºÆ®
# xclock & // xclock ½ÇÇà Å×½ºÆ®
[ÀÏ¹Ý ¼¹ö]
[Ubuntu]
1. ¼¹ö¿¡¼ ¿ìºÐÅõ GUI ÆÐÅ°Áö ¼³Ä¡
# apt-get update
# apt-get install -y ubuntu-desktop xorg xrdp xserver-xorg mesa-utils xauth gdm3
// display manager popup ½Ã, gdm3·Î ¼±ÅÃÇÏ°í Enter
# dpkg-reconfigure xserver-xorg
2. X11 server mode ¼³Á¤ (/etc/ssh/sshd_config ¼³Á¤)
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalHost no => Ãß°¡·Î »ðÀÔ
UseLogin no => ÁÖ¼® ó¸® »èÁ¦
3. X11 ¼¼¼Ç ÀÎÁõ ±â·ÏÆÄÀÏ »ý¼º ¹× ±ÇÇÑ Á¶Á¤
# touch /root/.Xauthority;chmod 600
4. /etc/hosts ÆÄÀÏ¿¡ - xauth display session Á¤º¸¸¦ ã¾Æ°¡±â À§ÇÑ default Á¤º¸ Ãß°¡
127.0.0.1 È£½ºÆ®¸í // (¿¹) 127.0.0.1 gpu-test-01
5. Display ±¸¼º ¾÷µ¥ÀÌÆ®¸¦ À§ÇÑ reboot
# reboot
6. Desktop¿¡¼ X11 forwarding Á¢¼ÓÀ» À§ÇÑ client ÇÁ·Î±×·¥À¸·Î Xming ¼³Ä¡ ¹× ±¸µ¿
(1) Xming ´Ù¿î·Îµå
(2) Xming ¼³Ä¡ & ½ÇÇà
(3) ¿ø°Ý Á¢¼Ó ÇÁ·Î±×·¥ ¼³Á¤(¿¹: Putty)
(4) ¼¹ö·Î ssh Á¢¼Ó
7. X11 display Æ÷¿öµù µ¿ÀÛ Ã¼Å©
# xdpyinfo // µð½ºÇ÷¹ÀÌ Á¤º¸°¡ ³ª¿À¸é Á¤»ó
8. ¹é±×¶ó¿îµå ½ÇÇà Å×½ºÆ®
# libreoffice & ¶Ç´Â xclock & // libreoffice, xclock ½ÇÇà Å×½ºÆ®
[CentOS]
1. ¼¹ö¿¡¼ gnome desktop package ¼³Ä¡
# yum -y groups install "GNOME Desktop"
# yum install -y xorg-x11-apps
2. X11 server mode ¼³Á¤ (/etc/ssh/sshd_config ¼³Á¤)
AddressFamily any -> AddressFamily inet ·Î ¼öÁ¤
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no
UseLogin no
3. X11 ¼¼¼Ç ÀÎÁõ ±â·ÏÆÄÀÏ »ý¼º ¹× ±ÇÇÑ Á¶Á¤
# touch /root/.Xauthority;chmod 600 /root/.Xauthority
4. /etc/hosts ÆÄÀÏ¿¡ - xauth display session Á¤º¸¸¦ ã¾Æ°¡±â À§ÇÑ default Á¤º¸ Ãß°¡
127.0.0.1 È£½ºÆ®¸í // (¿¹) 127.0.0.1 gpu-test-01
5. Display ±¸¼º ¾÷µ¥ÀÌÆ®¸¦ À§ÇÑ reboot
# reboot
6. Desktop¿¡¼ X11 forwarding Á¢¼ÓÀ» À§ÇÑ client ÇÁ·Î±×·¥À¸·Î Xming ¼³Ä¡ ¹× ±¸µ¿
(1) Xming ´Ù¿î·Îµå
(2) Xming ¼³Ä¡ & ½ÇÇà
(3) ¿ø°Ý Á¢¼Ó ÇÁ·Î±×·¥ ¼³Á¤(¿¹: Putty)
(4) ¼¹ö·Î ssh Á¢¼Ó
7. X11 display Æ÷¿öµù µ¿ÀÛ Ã¼Å©
# xdpyinfo // µð½ºÇ÷¹ÀÌ Á¤º¸°¡ ³ª¿À¸é Á¤»ó
8. ¹é±×¶ó¿îµå ½ÇÇà Å×½ºÆ®
# xclock & // xclock ½ÇÇà Å×½ºÆ®
|