Installation and Setup XRDP
Touch ~/installxrdp.sh cat > ~/installxrdp.sh <<eof#!/bin/bashecho "root:root123" |chpasswdsed-i "s, Permitrootlogin.*,permitrootlogin yes,g "/etc/ssh/sshd_configservice ssh restartcp/etc/apt/sources.list/etc/apt/ Sources.list_orised-i "S,us.archive.ubuntu.com,cn.archive.ubuntu.com,g"/etc/apt/sources.list apt-get Updateapt-get-y upgrade Apt-get install-y xrdp vnc4server xubuntu-desktop apt-get cleanecho "Xfce4-session" >~/.xsess Ionservice xrdp restarteofchmod +x ~/installxrdp.sh~/installxrdp.sh
Append the following to/etc/xrdp/xrdp.ini, which allows you to reconnect to your previous desktop environment after disconnecting again
Reference Address http://c-nergy.be/blog/?p=4471
[xrdp8]name=reconnectlib=libvnc.sousername=askpassword=askip=127.0.0.1port=5910
The first connection is to select Sesman-xvnc
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/82/C0/wKioL1df8KizgWM1AAASYvdx8zk531.png "style=" float: none; "title=" 2016-06-14_195101.png "alt=" Wkiol1df8kizgwm1aaasyvdx8zk531.png "/>
Select Reconnet on subsequent connections to access the previous interface
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/82/C1/wKiom1df75ayNr96AAAR2d7K14s965.png "title=" 2016-06-14_195045.png "style=" Float:none; "alt=" Wkiom1df75aynr96aaar2d7k14s965.png "/>
You can also record the port number on first login (no need to modify the/etc/xrdp/xrdp.ini file)
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/82/C0/wKioL1df8YDzrb-RAAAXFRtxAs8995.png "style=" float: none; "title=" 2016-06-14_195213.png "alt=" Wkiol1df8ydzrb-raaaxfrtxas8995.png "/>
The subsequent access is still selected Sesman-xvnc, but the port number is logged before it is filled
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/82/C0/wKioL1df8YDStf6LAAASnPFxkfQ974.png "title=" 2016-06-14_195316.png "style=" Float:none; "alt=" Wkiol1df8ydstf6laaasnpfxkfq974.png "/>
Other:
Install the necessary components
Apt-get install-y vim openssh-serverapt-get install Language-pack-zh-hans #最好在界面中操作, System settings-language support Apt-get clean
Install Google IME
Apt-get install-y fcitx-googlepinyin apt-get Clean
Installing Subline
Ubuntu Remote Management (XRDP settings) (with other)