Slime: Learning Ubuntu Remote Desktop (i): Configuring Remote Desktop

Source: Internet
Author: User

This article consists of Su Yi Lin Feng provide friendship sponsorship, starting in the mud row of the world

The company servers are currently installed in Ubuntu 14.04 system, and because of business needs, the use of Remote Desktop features to Ubuntu. So this article is about the remote desktop of Ubuntu.

One, Remote Desktop Connection mode

Ubuntu Remote Desktop Connection to say simple is also very simple, to say complex is very complex. Ubuntu Remote Desktop Connection Way, currently there are two main ways: based on the VNC mode and based on the XRDP mode.

Remote Desktop Connection based on VNC is not covered in this article. This article mainly introduces the Remote Desktop Connection based on XRDP mode.

Note: The XRDP-based Remote Desktop Connection also requires Vncserver support, so the Vncserver package is also installed when the software is installed.

Our experiment is based on the ubuntu14.04 64bit Desktop Edition. Because the OS now uses both Ubuntu desktop and Ubuntu server, so if Ubuntu desktop is different from the Ubuntu server version, I'll put it in the article.

Second, Ubuntu Remote Desktop configuration

Whether you configure Remote Desktop on Ubuntu desktop or Ubuntu server, we need to install the X Windows Desktop environment package, the Vncserver package, and the XRDP package.

2.1 Install related software

X Windows desktop Environment software is much more, here we choose is the lightweight xfce4.

Note: It is recommended that you do not use LXDE, this x Windows desktop environment software on Ubuntu desktop. Because I have been tested, LXDE on the desktop version is not normal. But if it is in Ubuntu Server Edition, you can install Xfce4 or lxde one of the two X Windows desktop environment software.

The software is installed as follows:

sudo apt-get-y install Xfce4 xrdp vnc4server

Once the software has been installed, we will review the relevant packages. As follows:

Dpkg-l XRDP

In the XRDP installation file, we need to note that Xrdp.ini This file, about the use of this file, I will be in the next article on Ubuntu Remote Desktop session management to explain.

Dpkg-l Vnc4server

2.2 Configuring Xfce4 Desktop session Files

Once the software is installed, we also need to configure a Xfce4 desktop session file for each user who needs to log on to the system using Remote Desktop. If you do not configure the file, the user login only black and white point for the background, no icon can not be manipulated. As follows:

Note: This is for each user who needs to use Remote Desktop.

Why is this happening? This is due to compatibility issues between XRDP, GNOME, and unity.

To configure the Xfce4 desktop session file, we only need to save the xfce4-session command to the user's home directory. As follows:

Echo xfce4-session>.xsession

Cat. Xsession

Note: We are testing this user with Ilanni. If you are testing with another user, be sure to save one copy of the above Xfce4 desktop session file in the user's home directory.

Also, be aware that Ubuntu Server Edition is not required to configure Xfce4 desktop session files. There is no compatibility issue between XRDP, GNOME, and unity because of Ubuntu Server Edition.

2.3 Remote Desktop Connection

Once the software has been installed and configured, we can connect to the host via Remote Desktop software.

Here we are using the Windows comes with the Remote Desktop to connect, as follows:

In, enter the user name and password to log in to the system.

Note: In the "Module" Select Sesman-xvnc,username and password fill in the corresponding user and password.

Note: In connecting to 5912 this line. The role of this line, I will explain in the next article.

The above is the remote successful landing to the Ubuntu system interface.

Third, Remote Desktop keyboard completion

When you log in to the Ubuntu system remotely, you will find that it will not work when you use the tab-fill-related command in the terminal.

This is because the operation of the keyboard in the Xfce4 desktop configuration file is occupied.

There are two ways to solve this problem, as follows:

Method One: Edit the xfce4-keyboard-shortcuts.xml file in the . Config/xfce4/xfconf/xfce-perchannel-xml directory, found in the contents <property name= "&lt; Super&gt; Tab "Type=" string "value=" Switch_window_key "/>, replace it with this sentence <property name=" &lt; Super&gt; Tab "type=" Empty "/>". You can then restart the system to resolve the issue. As follows:

Method Two: The method does not require you to restart the system, in the Remote Desktop settings, the path is: Open menu-Settings-window manager, as follows:

or in the terminal input xfwm4-settings Open also line (XFWM4 is xfce4 window manger abbreviation), select the keyboard, you can see the window shortcut keys in the Action column has "switch the same application window" option, Clearing the shortcut key for this option and closing the window will fix the problem. As follows:

After the above setup, we can use the TAB key in the terminal. Therefore, the two methods are recommended to use the second.

Slime: Learning Ubuntu Remote Desktop (i): Configuring Remote Desktop

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: 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.