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/

 

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
134 How to Use the wget Linux Command to Download Web Pages and Files : 리눅스 wget으로 사이트 다운로드(저장) 졸리운_곰 2018.09.12 472
133 우분투 16.04 원격 데스크탑 설정 ubuntu 16.04 xrdp file 졸리운_곰 2018.08.12 495
132 Connect To Ubuntu 16.04 / 17.10 / 18.04 Desktop Via Remote Desktop Connection (RDP) With Xrdp file 졸리운_곰 2018.06.22 254
» ubuntu 18.04 원격데스크톱 xrdp 그놈접속 : Ubuntu 18.04: Connect to GNOME desktop environment via XRDP file 졸리운_곰 2018.05.13 1442
130 MSI 외장그래픽 노트북에 Ubuntu 설치 : How to Install Ubuntu 16.04 on MSI GE62 6QC 졸리운_곰 2018.05.06 499
129 Ubuntu 16.04에서 Docker 설치 졸리운_곰 2018.05.04 351
128 Docker: Docker image which runs XRDP on Ubuntu 16.04 desktop file 졸리운_곰 2018.05.03 387
127 [유전알고리즘] 자동 그림생성 프로그램 - Evolving Image file 졸리운_곰 2018.03.04 910
126 대화 프로그램 - ELIZA 졸리운_곰 2018.03.04 360
125 zlib msvc로 포팅하기 2 졸리운_곰 2018.02.23 356
124 zlib msvc로 포팅하기 1 졸리운_곰 2018.02.23 288
123 zlib 개요 졸리운_곰 2018.02.23 572
122 [zlib] API 사용법 졸리운_곰 2018.02.23 502
121 [zlib] DEFLATE algorithm (2) - Huffman coding 졸리운_곰 2018.02.23 352
120 [zlib] DEFLATE algorithm (1) - LZ77 졸리운_곰 2018.02.23 504
119 zlib 입문 file 졸리운_곰 2018.02.23 629
118 [펌] zlib를 사용법 졸리운_곰 2018.02.23 783
117 Create Custom Binary File Formats for Your Game's Data file 졸리운_곰 2018.02.23 373
116 Caffe 설치하기 ๑•‿•๑ (2) file 졸리운_곰 2018.02.21 337
115 Caffe 설치하기 ๑•‿•๑ (1) file 졸리운_곰 2018.02.21 427
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED