Rotten mud: Learning ubuntu Remote Desktop (1): Configuring Remote Desktop, rotten mud ubuntu
This article is written by Xiuyi Lin FengProviding friendship sponsorship, first launched in the dark world
The company's servers are currently installed on ubuntu 14.04, and the Remote Desktop function of ubuntu needs to be used due to business needs. This article focuses on the Remote Desktop of ubuntu.
I. Remote Desktop Connection
Ubuntu Remote Desktop Connection is simple and complex. Ubuntu Remote Desktop Connection is available in two ways: VNC-based and XRDP-based.
Remote Desktop Connection Based on VNC is not described in this article. This topic describes Remote Desktop Connection Based on XRDP.
Note: XRDP-based Remote Desktop Connection also requires vncserver support. Therefore, you must install the vncserver software package during software installation.
This experiment is based on ubuntu14.04 64bit desktop edition. Because the operating systems currently used by the company include both the ubuntu desktop edition and the ubuntu server Edition, if the ubuntu desktop edition is different from the ubuntu server Edition, I will propose it in this article.
Ii. ubuntu Remote Desktop configuration
To configure remote desktop on ubuntu desktop or ubuntu server, we need to install x windows desktop environment software package, vncserver software package, and xrdp software package.
2.1Install related software
X windows desktop environment software is relatively large. Here we choose lightweight xfce4.
Note: We recommend that you do not use lxde on ubuntu desktop, which is an x windows desktop environment software. Due to my tests, lxde is not displayed normally on the desktop. However, if it is in the ubuntu server version, you can install one of the xfce4 or lxde x windows desktop environment software.
The software installation is as follows:
Sudo apt-get-y install xfce4 xrdp vnc4server
After the software is installed, let's check the related software packages. As follows:
Dpkg-L xrdp
In the xrdp installation file, we need to pay attention to the xrdp. ini file. I will explain how to use this file in the next article ubuntu remote desktop session management.
Dpkg-L vnc4server
2.2Configure xfce4 desktop session files
After the software is installed, we also need to configure an xfce4 desktop session file for every user who needs to log on to the system using remote desktop. If this file is not configured, only the black and white dots are used as the background after the user logs in, and no icons are available. As follows:
Note: It is for every user who needs to use remote desktop.
Why is the above problem? This is caused by compatibility issues between xrdp, gnome, and unity.
To configure the xfce4 desktop session file, we just need to save the xfce4-session line command to the Home Directory of the user. As follows:
Echo xfce4-session>. xsession
Cat. xsession
Note: here we use the ilanni user for testing. If you use another user for testing, you must save the preceding xfce4 desktop session file in the home directory of the user.
At the same time, you also need to note that the xfce4 desktop session file does not need to be configured for the ubuntu server version. Because the ubuntu server version does not have compatibility issues between xrdp, gnome, and unity.
2.3Remote Desktop Connection
After the related software is installed and configured, we can connect to the host through the remote desktop software.
Here we use the windows Remote Desktop Connection, as shown below:
In, enter the user name and password to log on to the system.
Note: Select sesman-Xvnc in "Module", and enter the corresponding user and password in username and password.
Note: connecting to 127.0.0.1 5912 in this line. I will explain the role of this line in the next article.
The preceding figure shows how to remotely log on to the ubuntu system.
3. Remote desktop keyboard completion
After logging on to the ubuntu system remotely, you will find that it does not work when you use tab to complete related commands in the terminal.
This is because the keyboard operations in the xfce4 desktop configuration file are occupied.
There are two ways to solve this problem:
Method 1: Edit. in the xfce4-keyboard-shortcuts.xml file under the config/xfce4/xfconf/xfce-perchannel-xml directory, find <property name = "& lt; Super & gt; tab "type =" string "value =" switch_window_key "/> to replace <property name =" & lt; Super & gt; tab "type =" empty "/>. Then restart the system to solve the problem. As follows:
Method 2: You do not need to restart the system in this method, and set it in the Remote Desktop. The path is: Open menu-settings-Window Manager, as shown below:
Or enter the xfwm4-settings in the terminal to open the line (xfwm4 is the abbreviation of xfce4 window manger), select the keyboard, you can see that the "switch the window of the same application" option is in the Action column of the window shortcut key. Clear the shortcut key of this option and close the window to solve the problem. As follows:
After the preceding settings, we can use the Tab key in the terminal to complete the settings. Therefore, the second method is recommended for the above two methods.