Using XRDP to implement Windows Remote Desktop Connection Linux__linux

Source: Internet
Author: User
Tags windows remote desktop tightvnc mstsc

have been using MSTSC to connect to the Windows host, today I would like to use this to connect to the Linux host, found not connected ~ ... ~
After a long time with Niang, share a blog for everyone: Portal



In general, we use SSH Client remote login Linux system, as for the graphical interface of the Linux remote landing tools, we generally think of VNC, but its security is not enough,
Here, I will describe the installation configuration method for XRDP. We can easily through Windows Remote Desktop Linux. XRDP Installation Configuration method

Open Terminal: Install in sequence

sudo apt-get install xrdp
sudo apt-get install vnc4server tightvncserver
Set XRDP
echo "Gnome-session--session=gnome-classic" > ~/.xsession

This command is due to the installation of the GNOME desktop, ubuntu12.04 in the same time unity, gnome multiple desktop manager, need to start the time to specify a, or
Even after the remote login verification succeeds, it is only the background.
The XRDP configuration documents are Xrdp.ini and sesman.in in the/ETC/XRDP directory, and are generally selected by default. Restart XRDP

SUDO/ETC/INIT.D/XRDP restart
mstsc to run Windows



Windows Remote Desktop, open the input remote IP, connect, enter the user password can be remote Linux. the error encountered

1,XRDP access to Ubuntu only see the background, can't see the menu bar solution
Method: Install Gnome-panel

sudo apt-get install Gnome-panel

2,failed to load session "GNOME"
Desktop with ubuntu-2d test
Type the command: echo "gnome-session–session=ubuntu-2d" > ~/.xsession, and then restart XRDP.

3, error occurred:

Connecting to Sesman IP 127.0.0.1 port 3350
Sesman Connect OK
sending login info to Sesman 
login successful fo R display
started connecting
connecting to 127.0.0.1 5914 Error-problem
Xrdp-sesman.log error is:

[INFO] starting Xvnc session ...
[ERROR] X Server for display "startup Timeout[info] Starting xrdp-sessvc-xpid=2924-wmpid=2923
[ERROR] X server for disp Lay timeout
[ERROR] Another xserver is already active on display
[DEBUG] aborting Connection...
   If your log has a similar X server for display timeout and another xserver is already active on display 10

The source of the problem is TightVNC, the version of the problem conflicts with the X font, causing the connection Xserver error.

Workaround:

Apt-get purge TightVNC xrdp apt-get install tightvncserver xrdp

At last:
Start the XRDP service, SUDO/ETC/INIT.D/XRDP Restart, the appropriate port is enabled, and the configuration aspect defaults.
by command: NETSTAT-TNL
View 3350 3389 5910 These three ports are in listen, generally no problem.
Dpkg-l + The name of the package to know which files the package contains.

4,ubuntu 13.10 and later no background:
Thanks for the comments in the children's shoes proposed program:
XRDP can't support 13.10 Gnome, the solution is to install a XFCE interface,
sudo apt-get install Xubuntu-desktop
And then:
Echo Xfce4-session >~/.xsession

To set the configuration file again
sudo gedit/etc/xrdp/startwm.sh
Inserts a line before the./etc/x11/xsession
Xfce4-session
Restart XRDP
sudo service xrdp restart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.