this article Starting out in the slime 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
650) this.width=650; "title=" clip_image001 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image001" src= "Http://s3.51cto.com/wyfs02/M02/6D/C1/wKioL1VrItqQ1qAAAAMAgauQPDc008.jpg" Width= "511" height= "259"/>
Once the software has been installed, we will review the relevant packages. As follows:
Dpkg-l XRDP
650) this.width=650; "title=" clip_image002 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image002" src= "Http://s3.51cto.com/wyfs02/M00/6D/C1/wKioL1VrItvQFOqkAAFpO9NnKws451.jpg" Width= "279" height= "423"/>
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
650) this.width=650; "title=" clip_image003 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image003" src= "Http://s3.51cto.com/wyfs02/M01/6D/C1/wKioL1VrItvDeZWbAAGSwurWeYk649.jpg" Width= "335" height= "342"/>
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:
650) this.width=650; "title=" clip_image004 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image004" src= "Http://s3.51cto.com/wyfs02/M02/6D/C1/wKioL1VrItyiPi2PAAIWouFNSdw346.jpg" Width= "398" height= "291"/>
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
650) this.width=650; "title=" clip_image005 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image005" src= "Http://s3.51cto.com/wyfs02/M00/6D/C1/wKioL1VrIuDB1US9AASlVZPQilY375.jpg" Width= "457" height= "498"/>
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:
650) this.width=650; "title=" clip_image006 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image006" src= "Http://s3.51cto.com/wyfs02/M01/6D/C5/wKiom1VrIUqAYvQFAAMOQMvpG7o614.jpg" Width= "629" height= "569"/>
650) this.width=650; "title=" clip_image007 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image007" src= "Http://s3.51cto.com/wyfs02/M02/6D/C5/wKiom1VrIUrSrK-tAAD05f-doWo930.jpg" Width= "415" height= "236"/>
In, enter the user name and password to log in to the system.
650) this.width=650; "title=" clip_image008 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image008" src= "Http://s3.51cto.com/wyfs02/M02/6D/C1/wKioL1VrJB2yHjPMAAFRRci0ATE529.jpg" Width= "458" height= "299"/>
Note: In the "Module" Select Sesman-xvnc,username and password fill in the corresponding user and password.
650) this.width=650; "title=" clip_image009 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image009" src= "Http://s3.51cto.com/wyfs02/M02/6D/C5/wKiom1VrIoeRQ03IAAF2OkzL-lI412.jpg" Width= "height=" "280"/>
Note: In connecting to 127.0.0.1 5912 this line. The role of this line, I will explain in the next article.
650) this.width=650; "title=" clip_image010 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image010" src= "Http://s3.51cto.com/wyfs02/M00/6D/C5/wKiom1VrIojCPSRZAAJMyj72lW0793.jpg" Width= "735" height= "441"/>
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= "<super>tab" type= "string" value= "Switch_window_key"/>, replace it with this sentence < Property Name= "<super>tab" type= "Empty"/>. You can then restart the system to resolve the issue. As follows:
650) this.width=650; "title=" clip_image011 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image011" src= "Http://s3.51cto.com/wyfs02/M01/6D/C5/wKiom1VrIonz6TNXAAK-QTDXpbo275.jpg" Width= "804" height= "167"/>
650) this.width=650; "title=" clip_image012 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image012" src= "Http://s3.51cto.com/wyfs02/M02/6D/C5/wKiom1VrIomR4SzfAAGvjc9EY7w803.jpg" Width= "740" height= "129"/>
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:
650) this.width=650; "title=" clip_image013 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image013" src= "Http://s3.51cto.com/wyfs02/M02/6D/C1/wKioL1VrJCHRQlcLAAL5XS5Opys147.jpg" Width= "406" height= "713"/>
650) this.width=650; "title=" clip_image014 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image014" src= "Http://s3.51cto.com/wyfs02/M01/6D/C1/wKioL1VrJCLRoJ12AAJxwk_RU9k497.jpg" Width= "619" height= "554"/>
650) this.width=650; "title=" clip_image015 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image015" src= "Http://s3.51cto.com/wyfs02/M02/6D/C1/wKioL1VrJCPydOf6AAJR1gf17WY408.jpg" Width= "617" height= "552"/>
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:
650) this.width=650; "title=" clip_image016 "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px; " Border= "0" alt= "clip_image016" src= "Http://s3.51cto.com/wyfs02/M00/6D/C1/wKioL1VrJCTA8mFnAAK9GHRjmr8412.jpg" Width= "789" height= "553"/>
650) this.width=650; "title=" clip_image015[1] "style=" border-right-width:0px;background-image:none; border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px; "border=" 0 "alt = "Clip_image015[1]" src= "http://s3.51cto.com/wyfs02/M01/6D/C1/wKioL1VrJCWDRYy0AAJR1gf17WY211.jpg" width= "617" height= "552"/>
After the above setup, we can use the TAB key in the terminal. Therefore, the two methods are recommended to use the second.
This article is from the "Slime Row World" blog, please be sure to keep this source http://ilanni.blog.51cto.com/526870/1656960
Slime: Learning Ubuntu Remote Desktop (i): Configuring Remote Desktop