๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๊ฐœ๋ฐœํ™˜๊ฒฝ

Ubuntu 20.04 xrdp ์„ค์น˜ ๋ฐ ์ ‘์†

by forestlim 2023. 7. 14.
728x90
๋ฐ˜์‘ํ˜•

๐Ÿ’ป ํ™˜๊ฒฝ

์ ‘์†: mac m1 pro

linux: ubuntu 20.04

 

1. Microsoft Remote Desktop ์„ค์น˜

https://apps.apple.com/kr/app/microsoft-remote-desktop/id1295203466?mt=12

 

‎Microsoft Remote Desktop

‎Use Microsoft Remote Desktop for Mac to connect to Azure Virtual Desktop, Windows 365, admin-provided virtual apps and desktops, or remote PCs. With Microsoft Remote Desktop, you can be productive no matter where you are. GET STARTED Configure your PC f

apps.apple.com

 

2. sudo apt update

 

3. sudo apt install ubuntu-desktop

 

4. sudo apt-get install xrdp

 

5. sudo apt-get install xfce4

๊ทธ๋Ÿผ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ™”๋ฉด์ด ๋œฌ๋‹ค. lightdm ์„ ์„ ํƒํ•˜๋ฉด ๋œ๋‹ค.

 

6. xfce4์˜ "Gnome" ํ™˜๊ฒฝ์œผ๋กœ ์—ฐ๊ฒฐ

echo "xfce4-session" > ~/.xsession

 

7. ๋งˆ์ง€๋ง‰์œผ๋กœ /etc/xrdp/startwm.sh

ํŒŒ์ผ์—์„œ ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์ถ”๊ฐ€ํ•ด์ค๋‹ˆ๋‹ค.

test -x /usr/bin/startxfce4 && exec /usr/bin/startxfce4
exec /bin/sh /usr/bin/startxfce4

 

8. ์žฌ์‹œ์ž‘

sudo systemctl restart xrdp

 

9. ์ด์ œ mac ์— ์„ค์น˜๋œ remote desktop ์„ ํ†ตํ•ด ip ๋ฅผ ๋“ฑ๋กํ•˜๊ณ  ์—ฐ๊ฒฐํ•ด์ฃผ๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํ™”๋ฉด์ด ๋œฌ๋‹ค.

 

10. ์ฐธ๊ณ ๋กœ xrdp ์˜ ๊ธฐ๋ณธ ์ ‘์† ํฌํŠธ๋Š” 3389 ์ด๋‹ค. ํฌํŠธ๋ฅผ ๋ณ€๊ฒฝํ•˜๊ณ ์ž ํ•  ๋•Œ๋Š” 

/etc/xrdp/xrdp.ini ์—์„œ port=3389 ๋ถ€๋ถ„์„ ์ˆ˜์ •ํ•˜๋ฉด ๋œ๋‹ค.

 

 

 

 


xrdp ๋Š” cpu ๋ฅผ ๋งŽ์ด ์žก์•„ ๋จน๋Š”๋‹ค...

๊ธฐ์กด: CPU2, 4GB

 

์œ„ ์ŠคํŽ™์ด์—ˆ๋Š”๋ฐ CPU ๋ฅผ 100% ๋‹ค ์“ฐ๋ฉด์„œ ๋„ˆ๋ฌด ๋Š๋ ค์ง€๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ์–ด์„œ CPU4, 16GB๋กœ ์ŠคํŽ™์„ ๋Š˜๋ ธ๋‹ค!

 

์•„๋‹ˆ๋ฉด ์—ฐ๊ฒฐ ์‹œ Display ์„ค์ •์„ High ๊ฐ€ ์•„๋‹Œ Medium ์œผ๋กœ ํ•ด์ฃผ๋ฉด ์กฐ๊ธˆ ๋‚˜์•„์ง„๋‹ค.

 

728x90
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€