ubuntu 18.04 원격데스크톱 xrdp 그놈접속

Ubuntu 18.04: Connect to GNOME desktop environment via XRDP

This article will describe connecting to GNOME desktop environment via XRDP.

 

1 Install XRDP

Install xrdp package. If using Xorg as session type, TigerVNC is not needed.

$ sudo apt install -y xrdp

Disable newcursors because black background around cursor is displayed if using Xorg as session type.

$ sudo sed -e 's/^new_cursors=true/new_cursors=false/g' -i /etc/xrdp/xrdp.ini
$ sudo systemctl restart xrdp

2 Create ~/.xsessionrc

create ~/.xsessionrc which will export the environment variable for customized settings for Ubuntu.

$ D=/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop
$ cat <<EOF > ~/.xsessionrc
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_DATA_DIRS=${D}
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
EOF

3 Authentication Required dialog

If using Xorg as session type, Authentication Required dialog will be displayed after creating session.

0001_AuthenticationRequiredDialog.png

If you success this authentication twice, colord and gsd-color will causes error and XRDP connection will be lost. So add rule which makes this authentication to be failed.

$ cat <<EOF | \
  sudo tee /etc/polkit-1/localauthority/50-local.d/xrdp-color-manager.pkla
[Netowrkmanager]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device
ResultAny=no
ResultInactive=no
ResultActive=yes
EOF
$ sudo systemctl restart polkit

4 Connect to GNOME desktop environment via XRDP

Use Xorg as a session type. Windows Remote Desktop Connection is as the following.

경축! 아무것도 안하여 에스천사게임즈가 새로운 모습으로 재오픈 하였습니다.
어린이용이며, 설치가 필요없는 브라우저 게임입니다.
https://s1004games.com

0002_xrdp-gnome.png

4.1 rdesktop client with clipboard makes nautilus hang

There is no problem when using Windows Remote Desktop Connection or Remmina.

But rdesktop has a problem. If using rdesktop with enabling clipboard, nautilus on XRDP server will be hang (CPU usage will be high).

So if using rdesktop, please disable clipboard with "-r clipboard:off".

$ rdesktop -r clipboard:off XRDPSERVER
 

 

[출처] https://www.hiroom2.com/2018/04/29/ubuntu-1804-xrdp-gnome-en/

 

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED