μƒˆμ†Œμ‹

DevOps/OS

[Ubuntu] μœˆλ„μš°(Window)μ—μ„œ μš°λΆ„νˆ¬(Ubuntu) 원격접속

  • -

 

 

 

μš°λΆ„νˆ¬(Ubuntu)λ₯Ό 졜초 μ„€μΉ˜ 후에 원격 접속을 ν•˜κΈ° μœ„ν•΄ μ•„λž˜μ™€ 같이 섀정을 μ§„ν–‰ν•˜λ„λ‘ ν•˜κ² μŠ΅λ‹ˆλ‹€. κ°„λ‹¨ν•˜μ§€λ§Œ, 이런 μž‘μ—…μ΄ 자주 μžˆμ§€ μ•Šμ•„μ„œ 금방 μžŠμœΌλ‹ˆ 기둝 λͺ©μ μœΌλ‘œ μž‘μ„±λ˜μ—ˆμŠ΅λ‹ˆλ‹€.


 

 

xrdp μ„€μΉ˜

$ systemctl status xrdp
$ sudo apt install xrdp

μ„€μΉ˜ 확인

$ systemctl status xrdp

 

xrdp μ„€μ •

## λΆ€νŒ… ν›„ μžλ™μ‹€ν–‰
$ sudo systemctl enable --now xrdp

## 3389 포트 μ—΄κΈ°
$ sudo ufw allow from any to any port 3389 proto tcp

 

xrdp μ‚¬μš©μž ssl-cert κ·Έλ£Ή μΆ”κ°€

$ sudo adduser xrdp ssl-cert

 

접속 μ‹œ 검은화면 보이지 μ•Šλ„λ‘ startwm.sh 파일 μˆ˜μ •

xrdp μ„€μΉ˜ 후에 νŠΉλ³„ν•œ 섀정을 ν•˜μ§€ μ•Šμ•˜λ‹€λ©΄, ν•œ μ‚¬μš©μžκ°€ λ‘œκ·Έμ•„μ›ƒμ„ μ§„ν–‰ν•˜κΈ° μ „κΉŒμ§€ 검은화면이 λ³΄μ΄λŠ” ν˜„μƒμ΄ μžˆμŠ΅λ‹ˆλ‹€. sudo vi /etc/xrdp/startwm.sh λͺ…λ Ήμ–΄λ₯Ό μž…λ ₯ν•˜μ—¬ μ•„λž˜μ™€ 같이 변경사항을 μΆ”κ°€ν•˜μ‹œλ©΄ λ©λ‹ˆλ‹€.

#!/bin/sh
# xrdp X session start script (c) 2015, 2017 mirabilos
# published under The MirOS Licence

if test -r /etc/profile; then
	. /etc/profile
fi

if test -r /etc/default/locale; then
	. /etc/default/locale
	test -z "${LANG+x}" || export LANG
	test -z "${LANGUAGE+x}" || export LANGUAGE
	test -z "${LC_ADDRESS+x}" || export LC_ADDRESS
	test -z "${LC_ALL+x}" || export LC_ALL
	test -z "${LC_COLLATE+x}" || export LC_COLLATE
	test -z "${LC_CTYPE+x}" || export LC_CTYPE
	test -z "${LC_IDENTIFICATION+x}" || export LC_IDENTIFICATION
	test -z "${LC_MEASUREMENT+x}" || export LC_MEASUREMENT
	test -z "${LC_MESSAGES+x}" || export LC_MESSAGES
	test -z "${LC_MONETARY+x}" || export LC_MONETARY
	test -z "${LC_NAME+x}" || export LC_NAME
	test -z "${LC_NUMERIC+x}" || export LC_NUMERIC
	test -z "${LC_PAPER+x}" || export LC_PAPER
	test -z "${LC_TELEPHONE+x}" || export LC_TELEPHONE
	test -z "${LC_TIME+x}" || export LC_TIME
	test -z "${LOCPATH+x}" || export LOCPATH
fi

if test -r /etc/profile; then
	. /etc/profile
fi

###### μΆ”κ°€λ‘œ μž‘μ„± ######
unset DBUS_SESSION_BUS_ADDRESS
unset XDG_RUNTIME_DIR
#########################

test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession

 

κΆŒν•œ κ΄€λ ¨ μ΄μŠˆ-μƒ‰μƒν”„λ‘œνŒŒμΌ (Authentication Popup)

xrdp μ΅œμ΄ˆ μ„€μΉ˜ ν›„에 μ ‘μ†ν•˜λ‹ˆ κΆŒν•œ κ΄€λ ¨ νŒμ—…이 λ‚˜νƒ€λ‚˜λ©΄μ„œ κ³„속 λΉ„λ°€λ²ˆν˜Έλ₯Ό λ¬Όμ–΄λ΄…λ‹ˆλ‹€. μ‚¬μ‹€ κ³„속 λΉ„λ°€λ²ˆν˜Έμ„ λ„£μœΌλ©΄μ„œ μ‚¬μš©μ„ ν•΄λ„ ν° λ¬Έμ œλŠ” μ—†μ§€λ§Œ, λΆˆνŽΈν•˜λ‹ˆ μ„€μ •ν•΄μ£Όκ² μŠ΅λ‹ˆλ‹€.

[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes

 

 

 

Contents

ν¬μŠ€νŒ… μ£Όμ†Œλ₯Ό λ³΅μ‚¬ν–ˆμŠ΅λ‹ˆλ‹€. 😊

이 글이 도움이 λ˜μ—ˆλ‹€λ©΄ 곡감 λΆ€νƒλ“œλ¦½λ‹ˆλ‹€. πŸ‘