亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 系統 > Ubuntu > 正文

Ubuntu 14.04 – How to install xrdp in Ubuntu 14.04

2024-06-28 13:22:39
字體:
來源:轉載
供稿:網友
Ubuntu 14.04 – How to install xrdp in Ubuntu 14.04

http://c-nergy.be/blog/?p=5305

Hello World,

Ubuntu 14.04 has been released on APRil 17th 2014 and we already released the traditional post about how to perform a fresh install. We didn’t covered the upgrade process because it’s quite easy nowadays. Basically, you will be notified that a new version is available and you will be asked if you want to upgrade to the latest version.

Some readers and some of my colleagues have been asking for a post about XRDP functionality in Ubuntu 14.04. If you follow me, you know that we have been using xrdp package in order to connect to linux machines using the built-in remote desktop client available within Windows Operating System.

You probably also know that since the introduction of Unity Desktop Interface in Ubuntu you need to tweak the configuration in order to have it working. The most annoying part while using xrdp (with Ubuntu) is the fact that you have to install an alternate desktop environment.

So, in this post, we will describe the steps needed in order to install xrdp and the xfce alternate desktop that will be used while remoting into your Ubuntu 14.04 machine.

Let’s Go !

Install XRDP Package from Ubuntu Repository

In this post, we will be installing the standard xrdp package from the Ubuntu Repository. In order to perform the installation of the xrdp package, you will login into your ubuntu 14.04 machine.

Using the Dash button, in the search box, type Terminal

xrdp14.04_1

Click on Picture for Better Resolution

Click on the terminal icon and the Terminal console will open

In the Terminal, type the following command

sudo apt-get install xrdp

You will be prompted for your passWord

xrdp14.04_2

Click on Picture for Better Resolution

You will be then informed about the package size. To proceed with the installation, press Y

xrdp14.04_3

Click on Picture for Better Resolution

Wait for the completion

When done, you need to install an alternate desktop environment. In our scenario, we are using xfce4

Installing the xfce4 Desktop environment

In the Terminal console; type the following command

sudo apt-get update

sudo apt-get install xfce4

xrdp14.04_4

Click on Picture for Better Resolution

You might be prompted for a password.Enter the password and press enter

You will be then informed about the package size. To proceed with the installation, press Y

Wait for the completion

Configure xrdp to use xfce desktop environment

At this stage, you have to configure your Ubuntu machine in order for xrdp to know that the xfce desktop will be used instead of the Unity or Gnome (which are not working anymore in Ubuntu). To configure this, from the terminal console, you will issue the following command

echo xfce4-session >~/.xsession

xrdp14.04_5

Click on Picture for Better Resolution

Restart the xrdp service by issuing the following command

sudo service xrdp restart

Test your xrdp connection

At this stage, you should have a basic xrdp working solution. When I say basic, I mean that you can indeed connect to your remote Ubuntu machine but if you disconnect your session and try to connect again, you will each time open a new session. (Read below section in this post to see how you can reconnect to the same session)

To test your xrdp solution, find the ip address of your linux machine (or use the name if you have DNS Infrastructure in place). To find the ip address, issue the command

hostname -I

xrdp14.04_6

Click on Picture for Better Resolution

Now go to your windows machine, start remote Desktop client and enter the ip address/name of your ubuntu machine

xrdp14.04_7

Click on Picture for Better Resolution

You should see then the login screen of xrdp presented to you. Note that, at this screen (and because we have not configured keyboard layout yet), the keyboard layout is set to English by default.

xrdp14.04_8

Click on Picture for Better Resolution

Enter your username and password and Press OK

You will see a dialog box showing the login process

xrdp14.04_9

Click on Picture for Better Resolution

If everything is configured correctly,you should see your xfce desktop loading and you should be able to perform you work through this desktop environment.

xrdp14.04_10

Click on Picture for Better Resolution

To set Keyboard layout at the xrdp Login screen, perform the following steps

As explained above, with no special configuration, the xrdp login screen keyboard layout is set to english by default. if you need to change it to another keyboard layout, you should proceed with the following actions

This is the command you should issue in order to change the keyboard layout to be used during xrdp sessions…

Step 1 : You go to the /etc/xrdp directory

Step 2 : you issue the command setxkbmap -layout <%your layout%> to define which keyboard map/layout to use

Step 3 : 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

Step 4 : Check that you have a backup of your file by typing the dir or ls command

Step 5 : update the file by issuing the following command sudo xrdp-genkeymap km-0409.ini

Reconnect to the same session throug xrdp

You have mutliple ways to reconnect to the same session through xrdp. we have explained two of them. One method is based on performing a custom installation and use the X11VNC software. This is one is working well but requires a little bit more effort. (http://c-nergy.be/blog/?p=4168)

The other one is to use the xrdp package from ubuntu repository and tweak some configuration files whil connected to the session. This solution is really a workaround and it’s not our favourite one. (see http://c-nergy.be/blog/?p=4471)

Here, we will use a third method that can be used if you use the xrdp pakcage from the ubuntu repository. This method is much better than the one provided by us some time ago. In this method, we will tweak the xrdp login screen. We will add a field in the login box where the user can specify the port to be used when remoting to the ubuntu machine.

You will first need to edit xrdp.ini file located under the /etc/xrdp. To edit the file, issue the following command

sudo gedit /etc/xrdp/xrdp.ini

You might be prompted for a password. if this is the case, provide the password and Press enterWhen the file is open, locate the section [xrdp1] and replace the following line

port=-1with the lineport=ask-1

Save the file. The file should look like this

xrdp14.04_11

Click on Picture for Better Resolution

When done, restart the xrdp service by issuing the following command

sudo service xrdp restart.

You are done.

When trying to access your Ubuntu machine through via the remote desktop client, you will see that the xrdp login screen has indeed an additional field called port.

xrdp14.04_12

Click on Picture for Better Resolution

If this is your first connection, leave the default value in the port field (i.e. -1), you will be then connecting through xrdp to your ubuntu machine using a specified port that can be seen on the login process dialog box.

xrdp14.04_13

Click on Picture for Better Resolution

Take a note of this port.

When you need to reconnect, you will have to specify the same port as your first connection and you should see the same screen as you left it.

xrdp14.04_14

Click on Picture for Better Resolution

Note : This tip has been provided to us by one of our reader (Thank you Wei :-) )

This is it for this post. Using only the ubuntu xrdp package, we have been able to install and configure a remote access solution. By tweaking the xrdp.ini file, we even have been able to provide a simple and easy to use solution in order to reconnect to an existing session.

However, we still have a problem with xrdp used in conjunction with Ubuntu. In order to remote into your ubuntu machine, you have no other choice than using an alternate desktop environment (in our case its xfce). I find it quite irritating that we cannot have the xrdp package working with Unity or Gnome desktop environment.

We have installed fedora distribution and installed the xrdp package. And guess what ! I can connect through xrdp to fedora and have the gnome desktop environment working. Moreover, I can disconnect and when reconnecting I will be reconnecting to the existing session I just left. And all of this with no tweak in configuration files.

I would love to see the same functionality in Ubuntu. As one of our readers mentionned, it might be time for Ubuntu users to fill in a bug report about xrdp and try to have it fixed. If more and more users complains, maybe Ubuntu team will take the request into account.

Till next Time

See ya

-----------------------------------------------------------------------------------------------

X Server -- no display in range is available. xrdp_mm_process_login_response: login failed

X Server -- no display in range is available. xrdp_mm_process_login_response: login failed I was having this error xrdp_mm_process_login_response: login failed. I tried the solution from this blog entry, but the error remain xrdp_mm_process_login_response: login failedWhen I look into the /var/log/ xrdp-sesman.log, the error is followed:
[20130913-14:11:00] [INFO ] starting Xvnc session...[20130913-14:11:00] [ERROR] X server -- no display in range is available
I managed to solve the issue by changing /etc/xrdp/sesmain.ini - MaxSessions from 10 to 100
[Security]AllowRootLogin=1MaxLoginRetry=4#TerminalServerUsers=tsusers#TerminalServerAdmins=tsadmins[Sessions]X11DisplayOffset=10MaxSessions=100KillDisconnected=0IdleTimeLimit=0DisconnectedTimeLimit=0
Restart the Service
# service xrdp restart
Posted bykittycoolat2:50 PMLabels:CentOS,xrdp

3 comments:
Ghebaru Ionsaid...

for me worked very well...thanks

Shrey Mehrotrasaid...

Thanks a lot....worked for me..

Iain Eldersaid...

I solved this by changing X11DisplayOffset to 1 instead.


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
久久色精品视频| 中文字幕欧美专区| 视频直播国产精品| 亚洲欧美中文日韩在线| 久久久在线免费观看| 精品亚洲精品福利线在观看| 国产剧情日韩欧美| 亚洲免费精彩视频| 欧美亚洲免费电影| 久久精品成人欧美大片| 午夜精品福利视频| 久久久国产视频91| 成人午夜一级二级三级| 精品av在线播放| 中国china体内裑精亚洲片| 国产激情视频一区| xvideos国产精品| 国产精品永久免费在线| 亚洲精品久久久久中文字幕二区| 国产香蕉一区二区三区在线视频| 国产精品免费视频久久久| 国产精品日韩专区| 热门国产精品亚洲第一区在线| 国产亚洲欧美另类中文| 欧美一级淫片丝袜脚交| 日韩美女福利视频| 精品国产视频在线| 国产97在线|亚洲| 精品久久香蕉国产线看观看gif| 91日韩在线视频| 欧美大秀在线观看| 欧美极品美女电影一区| 日韩av免费观影| 亚洲男人天堂网| 国产精品视频免费在线观看| 97在线观看视频国产| 欧美午夜电影在线| 国产精品美女免费| 国产欧美精品在线| 久久久久久久久国产| 日韩欧美一区视频| 国产a级全部精品| 日韩理论片久久| 久久久爽爽爽美女图片| 日本一区二区三区在线播放| 青青青国产精品一区二区| 国产欧美一区二区三区视频| 大荫蒂欧美视频另类xxxx| 欧美激情视频三区| 色偷偷888欧美精品久久久| 色综合色综合网色综合| 97色在线视频| 久久九九全国免费精品观看| 午夜精品99久久免费| 亚洲在线免费观看| 国产日韩欧美在线视频观看| 精品亚洲国产视频| 欧美国产日韩中文字幕在线| 91久久精品国产91久久| 中文字幕精品久久久久| 久久夜精品香蕉| 国产欧美一区二区三区久久人妖| 91在线观看免费| 51ⅴ精品国产91久久久久久| 国产一区二区三区视频| 成人亚洲欧美一区二区三区| 国产精品激情av在线播放| 亚洲91精品在线观看| 亚洲丁香婷深爱综合| 欧美日韩不卡合集视频| 欧美日韩中文字幕| 国产精品激情av在线播放| 琪琪第一精品导航| 91在线观看免费高清完整版在线观看| 这里只有精品在线观看| 清纯唯美日韩制服另类| 国产在线观看精品| 北条麻妃一区二区三区中文字幕| 国产综合在线看| 国内精品视频在线| 日韩av免费看| 成人亚洲激情网| 日韩高清欧美高清| 日韩精品免费电影| 亚洲一区二区三区香蕉| 亚洲精品久久视频| 美女久久久久久久| 69视频在线播放| 91精品国产高清自在线| 国产成人精品日本亚洲| 2019中文字幕全在线观看| 成人高清视频观看www| 97久久精品人搡人人玩| 国产精品91在线| 欧美日本高清视频| 狠狠色狠色综合曰曰| 成人激情视频网| 国产在线高清精品| 成人福利在线视频| 在线视频日本亚洲性| 午夜精品久久久久久久久久久久久| 久久中文字幕国产| 亚洲一区二区三区777| 91精品国产91久久久| 亚洲91精品在线观看| 欧美日韩成人精品| 亚洲黄页网在线观看| 亚洲国产私拍精品国模在线观看| 亚洲人成电影网站| 国产精品女人网站| 日韩免费av一区二区| 日韩高清免费观看| 亚洲欧美日韩天堂| 欧美成年人在线观看| 久久精品国产久精国产思思| 欧美巨大黑人极品精男| 欧美日本国产在线| 久久久久久久97| 国产精品视频26uuu| 国产主播欧美精品| 国产在线a不卡| 日韩国产欧美区| 欧美精品国产精品日韩精品| 国产精品久久久久久久7电影| 亚洲精品美女在线观看| 色哟哟网站入口亚洲精品| 久久精品影视伊人网| 午夜精品一区二区三区在线播放| 亚洲视频日韩精品| 国产精品国产亚洲伊人久久| 国产国产精品人在线视| 久久久久久久久久久久av| 国产精品欧美一区二区三区奶水| 69av视频在线播放| 91高清视频在线免费观看| 午夜精品一区二区三区在线视| 日韩在线视频国产| 高跟丝袜欧美一区| 热门国产精品亚洲第一区在线| 欧美国产乱视频| 久久久之久亚州精品露出| 亚洲最大av在线| 在线播放日韩欧美| 欧美国产亚洲视频| 91美女高潮出水| 亚洲网在线观看| 亚洲第一视频网站| 尤物九九久久国产精品的特点| 亚洲欧美日本精品| 久久精品青青大伊人av| 人人爽久久涩噜噜噜网站| 精品久久久久久亚洲国产300| 久久中文字幕国产| 午夜精品福利电影| 国产视频精品久久久| 亚洲精品456在线播放狼人| 国产视频自拍一区| 亚洲资源在线看| 色综合久综合久久综合久鬼88| 国产精品第三页| 国产成人精品免高潮在线观看| 亚洲第一综合天堂另类专| 91色在线视频| 国产成人激情视频|