Raspberry Pi_Eng_18.3.1 Remote Desktop Connection Using XRDP Program


Published Book on Amazon


All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1
All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2


출판된 한글판 도서


최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)
최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)


Original Book Contents


18.3   Remote Desktop GUI connection

 

18.3.1  Remote Desktop Connection Using <XRDP> Program

 

As a way to connect to Raspberry Pi system from MS Windows, you can use "Remote desktop connection" method which is used as standard when connecting to remote system from MS Windows.

 

To support this connection, the <XRDP> server program is included in the Raspberry Pi system by default, but you need to install the program in order to use it. The <XRDP> server program is installed in the following manner.

 

pi@raspberrypi ~ $ sudo apt-get install xrdp

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

  vnc4server x11-apps x11-session-utils xbase-clients xbitmaps xfonts-base

Suggested packages:

  vnc-java mesa-utils x11-xfs-utils

The following NEW packages will be installed:

  vnc4server x11-apps x11-session-utils xbase-clients xbitmaps xfonts-base

  xrdp

0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.

Need to get 8,468 kB of archives.

After this operation, 17.1 MB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main x11-apps armhf 7.7+4 [529 kB]

 

~ Skip

~ Skip

~ Skip

 

update-alternatives: using /usr/bin/vnc4config to provide /usr/bin/vncconfig (vncconfig) in auto mode

Setting up xbitmaps (1.1.1-2) ...

Setting up xfonts-base (1:1.0.3) ...

Setting up xrdp (0.6.1-2) ...

Processing triggers for systemd (215-17+deb8u2) ...

 

In MS Windows, you can also use the standard program [Remote desktop Connection] as a client program for remote connection. If you connect to the Raspberry Pi system using this, you will be connected to the Desktop GUI window of Raspberry Pi system. [Remote desktop connection uses default port "3389". If other port is used, it can be specified in the format of "IP-address:port" directly.

 

When Remote desktop Connection is executed in MS Windows, the following screen to  input connection parameter appears. Basically you just need to enter the same information as connecting to another MS Windows computer. After entering the required items and running the program, you will be connected to the Raspberry Pi system and the <XRDP> program access screen appears. You can choose from a variety of modules, and please try learn more details for each module by yourself.


Figure 18‑2 Remote Desktop connection using <XRDP> program

 

 

If you input necessary data in <XRDP> server connection screen and press [Enter] button, you will connect Raspberry Pi's Desktop window environment as follows.