{"id":894,"date":"2016-01-27T23:19:22","date_gmt":"2016-01-28T06:19:22","guid":{"rendered":"http:\/\/homepages.uc.edu\/~yaozo\/wordpress\/?p=894"},"modified":"2022-11-22T05:52:54","modified_gmt":"2022-11-22T05:52:54","slug":"xrdp-installing-xrdp-on-ubuntu-15-04","status":"publish","type":"post","link":"https:\/\/zhuoyao.net\/index.php\/2016\/01\/27\/xrdp-installing-xrdp-on-ubuntu-15-04\/","title":{"rendered":"XRDP \u2013 Installing XRDP on Ubuntu 15.04"},"content":{"rendered":"<blockquote><p><strong>Note :&nbsp;<\/strong><\/p>\n<p><em>The instructions provided hereafter are working and <strong>valid for ubuntu 15.04 systems using the systemd component.<\/strong> &nbsp;You can still use this setup guide to perform you xrdp installation<\/em><\/p>\n<p>&nbsp;<\/p><\/blockquote>\n<p>Hello World,<\/p>\n<p>Ubuntu 15.04 is coming soon. So, we have decided to already update the information about using xRDP software on Ubuntu 15.04. &nbsp;As you can expected, there is not much changes since the last version. &nbsp;The procedure described for Ubuntu 14.04 and 14.10 should still be working.<\/p>\n<p>If you have performed xrdp installation in the past (using the standard package provided by Ubuntu), you should not encountered any major issues.<\/p>\n<h1>Assumptions<\/h1>\n<p>For this post, we have make some assumptions.<\/p>\n<ul>\n<li>We are using Ubuntu 15.04 Beta 1 version<\/li>\n<li>We will install as alternative Desktop the Mate-Desktop<\/li>\n<li>We will configure our system to match on localized version (i.e. we are using a Belgian french keyboard)<\/li>\n<li>No additional configuration is needed to reconnect to the same session if you are using the latest version of the xrdp package found in the Ubuntu Repository<\/li>\n<\/ul>\n<h1>Step By Step installation<\/h1>\n<h2><strong>Install XRDP Package from Ubuntu Repository<\/strong><\/h2>\n<p>Installing xRDP package is quite straight forward. &nbsp;However, in order to have it working, you will need to perform some post configuration actions. &nbsp;In this step, we will simply install the xrdp package on our system by issuing the following command in a terminal console :<\/p>\n<blockquote><p><strong>sudo apt-get install xrdp&nbsp;<\/strong><\/p><\/blockquote>\n<p>You will be prompted for a password and you will need to confirm your selection by Pressing Y (see screenshot below)<\/p>\n<p><a class=\"ngg-fancybox\" title=\" \" href=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_1.PNG\" target=\"_self\" rel=\"5f9737c24e5392a0af2f2bfe69fbda51 noopener\" data-image-id=\"2071\" data-src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_1.PNG\" data-thumbnail=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_1.PNG-nggid042071-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" data-title=\"XRDP_15.04_1.PNG\" data-description=\" \"><img decoding=\"async\" class=\"ngg-singlepic ngg-center\" title=\"XRDP_15.04_1.PNG\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_1.PNG-nggid042071-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" alt=\"XRDP_15.04_1.PNG\"><\/a><\/p>\n<p><em>Click on Picutre for better Resolution&nbsp;<\/em><\/p>\n<h2><strong>Install&nbsp;MATE-Desktop as alternative Desktop&nbsp;<\/strong><\/h2>\n<p>In this post, we assume that we want to use MATE-Desktop environment to be used in conjunction with xrdp software. You can use other desktop interface such as xfce,LXDE,LXQT or KDE as well). &nbsp;To install the Mate-desktop, issue the following command from the Terminal Session<\/p>\n<blockquote><p><em><strong>sudo apt-get update<\/strong><\/em><\/p>\n<p><em><strong>sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon<\/strong><\/em><\/p><\/blockquote>\n<p><a class=\"ngg-fancybox\" title=\" \" href=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_2.PNG\" target=\"_self\" rel=\"b53cc0c1d6af04e02954122d8525ed9a noopener\" data-image-id=\"2072\" data-src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_2.PNG\" data-thumbnail=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_2.PNG-nggid042072-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" data-title=\"XRDP_15.04_2.PNG\" data-description=\" \"><img decoding=\"async\" class=\"ngg-singlepic ngg-center\" title=\"XRDP_15.04_2.PNG\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_2.PNG-nggid042072-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" alt=\"XRDP_15.04_2.PNG\"><\/a><\/p>\n<p><em>Click on Picutre for better Resolution&nbsp;<\/em><\/p>\n<p>As you can see from the screenshot, I do not need to add any additional repository. Ubuntu is officially supporting Ubuntu Remix version which is using the Mate-desktop<\/p>\n<h2>Configuring xRDP to use your desktop environment<\/h2>\n<p>At this stage, you have to tell xRDP that it needs to use the<strong> MATE-Desktop<\/strong> while performing your remote desktop connection.<\/p>\n<p><em>Important Note :&nbsp;<\/em><\/p>\n<p><em>If you have installed another Desktop alternative, the content of the .xsession file needs to be adapted to meet your infrastructure. See below for links on how to use other desktops with xRDP<\/em><\/p>\n<h3>Single User on the System<\/h3>\n<p>If you are the only user that needs to connect to the system via xrdp, you can simply create\/update the .xsession file. &nbsp;To configure your system and tell xrdp to use mate-desktop, from a terminal console, you will issue the following command (while connected with the user who needs xrdp access)<\/p>\n<blockquote><p><strong>echo mate-session &gt;~\/.xsession&nbsp;<\/strong><\/p><\/blockquote>\n<p><a class=\"ngg-fancybox\" title=\" \" href=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_3.PNG\" target=\"_self\" rel=\"7502bd03665ed80299905335b9957f3e noopener\" data-image-id=\"2073\" data-src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_3.PNG\" data-thumbnail=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_3.PNG-nggid042073-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" data-title=\"XRDP_15.04_3.PNG\" data-description=\" \"><img decoding=\"async\" class=\"ngg-singlepic ngg-center\" title=\"XRDP_15.04_3.PNG\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_3.PNG-nggid042073-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" alt=\"XRDP_15.04_3.PNG\"><\/a><\/p>\n<p><em>Click on Picutre for better Resolution&nbsp;<\/em><\/p>\n<h3>Multiple&nbsp;Users on the System<\/h3>\n<p>If you have multiple users that needs to access the system via xrdp,instead of manually configure for each users the .xsession file, you can update the \/etc\/xrdp\/startwm.sh file so the system will update the file for every user automatically. (for more information see&nbsp;<a title=\"Permanent link to XRDP \u2013 Enable multiple users to connect via xrdp \u2013 HowTo Configuration\" href=\"http:\/\/c-nergy.be\/blog\/?p=6050\" rel=\"bookmark\">XRDP \u2013 Enable multiple users to connect via xrdp \u2013 HowTo Configuration<\/a>).&nbsp;&nbsp;To configure this, issue the following command in your Terminal console<\/p>\n<blockquote><p><strong>sudo sed -i.bak \u2018\/fi\/a #xrdp multiple users configuration \\n echo mate-session &gt;~\/.xsession \\n\u2019 \/etc\/xrdp\/startwm.sh<\/strong><\/p><\/blockquote>\n<p><a class=\"ngg-fancybox\" title=\" \" href=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_4.PNG\" target=\"_self\" rel=\"c9826d6effa34e6c233cb13a0e6f36f4 noopener\" data-image-id=\"2074\" data-src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_4.PNG\" data-thumbnail=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_4.PNG-nggid042074-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" data-title=\"XRDP_15.04_4.PNG\" data-description=\" \"><img decoding=\"async\" class=\"ngg-singlepic ngg-center\" title=\"XRDP_15.04_4.PNG\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_4.PNG-nggid042074-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" alt=\"XRDP_15.04_4.PNG\"><\/a><\/p>\n<p><em>Click on Picutre for better Resolution&nbsp;<\/em><\/p>\n<h2><\/h2>\n<p><em>Note:<\/em><\/p>\n<p><em>If you want to use another Desktop Environment, you have to update your .xsession file. The following links will provide you the necessary information to configure your system accordingly&nbsp;<\/em><\/p>\n<ul>\n<li><a title=\"Permanent link to Ubuntu 14.10 \u2013 KDE as alternative Desktop for XRDP sessions\" href=\"http:\/\/c-nergy.be\/blog\/?p=6717\" rel=\"bookmark\">Ubuntu 14.10 \u2013 KDE as alternative Desktop for XRDP sessions<\/a><\/li>\n<li><a title=\"Permanent link to Ubuntu 14.10 \u2013 LXQT as alternative Desktop for XRDP\" href=\"http:\/\/c-nergy.be\/blog\/?p=6692\" rel=\"bookmark\">Ubuntu 14.10 \u2013 LXQT as alternative Desktop for XRDP<\/a><\/li>\n<li><a title=\"Permanent link to Ubuntu 14.04 \u2013 LXDE Desktop Alternative for XRDP\" href=\"http:\/\/c-nergy.be\/blog\/?p=5357\" rel=\"bookmark\">Ubuntu 14.04 \u2013 LXDE Desktop Alternative for XRDP<\/a><\/li>\n<li><a title=\"Permanent link to Ubuntu 14.04 \u2013 How to install xrdp in Ubuntu 14.04\" href=\"http:\/\/c-nergy.be\/blog\/?p=5305\" rel=\"bookmark\">Ubuntu 14.04 \u2013 How to install xrdp in Ubuntu 14.04<\/a><\/li>\n<\/ul>\n<h2>Configuring xRDP&nbsp;Keyboard<\/h2>\n<p>As in the past, the xRDP login screen will use by default an en-us keyboard layout. You remote session will also be using the en-us keyboard layout. &nbsp;This can be changed. &nbsp;In my case, I\u2019m using a Belgian French keyboard, so I had to tell xrdp to use the belgian french keyboard as well. &nbsp;To do that, you need to perform the following actions :<\/p>\n<p><strong>Step 1<\/strong> : You go to the \/etc\/xrdp directory<\/p>\n<p><strong>Step 2<\/strong> : you issue the command setxkbmap -layout &lt;%your layout%&gt; to define which keyboard map\/layout to use<\/p>\n<p><a class=\"ngg-fancybox\" title=\" \" href=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_5.PNG\" target=\"_self\" rel=\"27482350bf37ebab998a95b9c178ee35 noopener\" data-image-id=\"2075\" data-src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_5.PNG\" data-thumbnail=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_5.PNG-nggid042075-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" data-title=\"XRDP_15.04_5.PNG\" data-description=\" \"><img decoding=\"async\" class=\"ngg-singlepic ngg-center\" title=\"XRDP_15.04_5.PNG\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_5.PNG-nggid042075-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" alt=\"XRDP_15.04_5.PNG\"><\/a><\/p>\n<p><em>Click on Picutre for better Resolution&nbsp;<\/em><\/p>\n<p><strong>Step 3<\/strong> : create a copy of the km-0409.ini file into the same directory. It seems that this is the default file used by xrdp to define the keyboard layout. You will need to use sudo in order to be able to write into the directory<\/p>\n<p><strong>Step 4<\/strong> : Check that you have a backup of your file by typing the dir or ls command<\/p>\n<p><strong>Step 5<\/strong> : update the file by issuing the following command sudo xrdp-genkeymap km-0409.ini<\/p>\n<p>&nbsp;<\/p>\n<p><a class=\"ngg-fancybox\" title=\" \" href=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_6.PNG\" target=\"_self\" rel=\"1558a9567294593848d289be83c43207 noopener\" data-image-id=\"2076\" data-src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/XRDP_15.04_6.PNG\" data-thumbnail=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_6.PNG-nggid042076-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" data-title=\"XRDP_15.04_6.PNG\" data-description=\" \"><img decoding=\"async\" class=\"ngg-singlepic ngg-center\" title=\"XRDP_15.04_6.PNG\" src=\"http:\/\/c-nergy.be\/blog\/wp-content\/gallery\/ubuntu15-04\/dynamic\/XRDP_15.04_6.PNG-nggid042076-ngg0dyn-320x240x100-00f0w010c010r110f110r010t010.PNG\" alt=\"XRDP_15.04_6.PNG\"><\/a><\/p>\n<p><em>Click on Picutre for better Resolution&nbsp;<\/em><\/p>\n<h2>Reconnect to the Same Session<\/h2>\n<p>Since Ubuntu 14.10, a new xrdp package has been made available in the Ubuntu repository. This package fixes a long time issue related to the fact that users could not reconnect to the same session. &nbsp;If you are using the package xrdp 0.6.1-1, you do not need to perform any customization, you will reconnect automatically to the same session.<\/p>\n<p>If you are using an older version of the package, you can always perform a custom installation of xrdp and achieve the same results. We will update the post about custom installation of xrdp for Ubuntu 15.04 in the near future.<\/p>\n<h2>Final Notes<\/h2>\n<p>As you can see the process has not changed that much when using xrdp and remote desktop client tool. The processes described for ubuntu 14.04 are still applicable for ubunt 15.04. &nbsp;So, if you are used to install and configure xrdp with Ubuntu, this version should not be a problem for you.<\/p>\n<p>In the coming weeks, we will update the post related to the custom xrdp installation.<\/p>\n<p>Till next time<\/p>\n<p>&nbsp;<\/p>\n<div class=\"nav-previous\"><a href=\"http:\/\/c-nergy.be\/blog\/?p=7982\" rel=\"prev\">Ubuntu 15.04 \u2013 How to perform a new Install<\/a><\/div>\n<div class=\"nav-next\"><a href=\"http:\/\/c-nergy.be\/blog\/?p=7986\" rel=\"next\">XRDP- Perform a Custom installation on Ubuntu 15.04<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Note :&nbsp; The instructions provided hereafter are working and valid for ubuntu 15.04 systems using the systemd component. &nbsp;You can still use this setup guide&hellip; <\/p>\n","protected":false},"author":1,"featured_media":963,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-894","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/comments?post=894"}],"version-history":[{"count":1,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/894\/revisions"}],"predecessor-version":[{"id":972,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/posts\/894\/revisions\/972"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/media\/963"}],"wp:attachment":[{"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/media?parent=894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/categories?post=894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhuoyao.net\/index.php\/wp-json\/wp\/v2\/tags?post=894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}