- 根据的我亲测
- 卸载vncserver
- 安装xrdp
- 不需要修改 gnome-session的配置
- gsettings set org.gnome.Vino require-encryption false 这个打开
- 就可以
- root@public-Hi-Fi-H77S:/home/public# ss -ltp | grep 3389
LISTEN 0 2 *:3389 : users:((“xrdp”,pid=1030,fd=11))
只需要xrdp
- 直接xrdp
root@public-Hi-Fi-H77S:/home/public# vi /etc/xrdp/startwm.sh
root@public-Hi-Fi-H77S:/home/public# netstat -na | grep 3389
tcp6 0 0 :::3389 :: LISTEN
tcp6 1842 0 172.19.5.171:3389 172.19.5.120:4485 ESTABLISHED
root@public-Hi-Fi-H77S:/home/public# sudo service xrdp restart
这个xrdp的脚本是我跑了的
wget https://www.c-nergy.be/downloads/Std-Xrdp-Install-0.6.1.zip
public@public-Hi-Fi-H77S:~/zhangbin$ ./Std-Xrdp-Install-0.6.1.sh
!-------------------------------------------------------------!
! Standard XRDP Installation Script - Ver 0.6.1 !
! Written by Griffon - Sept 2019 - www.c-nergy.be !
!-------------------------------------------------------------!
|-| Detecting Ubuntu version
|-| Ubuntu Version : Ubuntu 18.04.4 LTS
|-| Detecting Parameters
|-| Sound Redirection Option...: [NO]
|-| Unofficial Repo...........: [NO]
!-------------------------------------------------------------!
! Installation Process starting.... !
!-------------------------------------------------------------!
|-| Proceed with installation.....
|-| Ubuntu Version : Ubuntu 18.04.4 LTS
!-------------------------------------------------------------!
! Applying Installation Patch for Ubuntu 18.04.2/3 !
!-------------------------------------------------------------!
=> Downgrading to previous xserver-xorg-* packages !
!----------------------------------------------------------!
! Installing xserver-xorg-core Packages...Proceeding... !
!----------------------------------------------------------!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libglu1-mesa libxatracker2 libxss1 libxvmc1 linux-generic-hwe-18.04 linux-headers-generic-hwe-18.04 xinput
Use 'sudo apt autoremove' to remove them.
Suggested packages:
xfonts-100dpi | xfonts-75dpi
The following packages will be REMOVED:
ubuntu-desktop xorg xserver-xorg-core-hwe-18.04 xserver-xorg-hwe-18.04 xserver-xorg-input-all-hwe-18.04 xserver-xorg-input-libinput-hwe-18.04
xserver-xorg-input-wacom-hwe-18.04 xserver-xorg-video-all-hwe-18.04 xserver-xorg-video-amdgpu-hwe-18.04 xserver-xorg-video-ati-hwe-18.04
xserver-xorg-video-fbdev-hwe-18.04 xserver-xorg-video-intel-hwe-18.04 xserver-xorg-video-nouveau-hwe-18.04 xserver-xorg-video-qxl-hwe-18.04
xserver-xorg-video-radeon-hwe-18.04 xserver-xorg-video-vesa-hwe-18.04 xserver-xorg-video-vmware-hwe-18.04
The following NEW packages will be installed:
xserver-xorg-core
0 upgraded, 1 newly installed, 17 to remove and 150 not upgraded.
Need to get 1,351 kB of archives.
After this operation, 5,573 kB disk space will be freed.
Get:1 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 xserver-xorg-core amd64 2:1.19.6-1ubuntu4.4 [1,351 kB]
Fetched 1,351 kB in 4s (374 kB/s)
(Reading database ... 216848 files and directories currently installed.)
Removing ubuntu-desktop (1.417.4) ...
Removing xorg (1:7.7+19ubuntu7.1) ...
Removing xserver-xorg-video-all-hwe-18.04 (1:7.7+19ubuntu8~18.04.3) ...
Removing xserver-xorg-video-vmware-hwe-18.04 (1:13.3.0-2build1~18.04.1) ...
Removing xserver-xorg-video-amdgpu-hwe-18.04 (19.0.1-1ubuntu1~18.04.1) ...
Removing xserver-xorg-hwe-18.04 (1:7.7+19ubuntu8~18.04.3) ...
Removing xserver-xorg-input-wacom-hwe-18.04 (1:0.36.1-0ubuntu1~18.04.1) ...
Removing xserver-xorg-video-vesa-hwe-18.04 (1:2.4.0-1~18.04.1) ...
Removing xserver-xorg-video-ati-hwe-18.04 (1:19.0.1-1ubuntu1~18.04.1) ...
Removing xserver-xorg-video-radeon-hwe-18.04 (1:19.0.1-1ubuntu1~18.04.1) ...
Removing xserver-xorg-input-all-hwe-18.04 (1:7.7+19ubuntu8~18.04.3) ...
Removing xserver-xorg-input-libinput-hwe-18.04 (0.28.1-1~18.04.1) ...
Removing xserver-xorg-video-fbdev-hwe-18.04 (1:0.5.0-1ubuntu1~18.04.1) ...
Removing xserver-xorg-video-intel-hwe-18.04 (2:2.99.917+git20171229-1ubuntu1~18.04.1) ...
Removing xserver-xorg-video-nouveau-hwe-18.04 (1:1.0.16-1~18.04.1) ...
Removing xserver-xorg-video-qxl-hwe-18.04 (0.1.5-2build2~18.04.1) ...
Removing xserver-xorg-core-hwe-18.04 (2:1.20.5+git20191008-0ubuntu1~18.04.1) ...
Selecting previously unselected package xserver-xorg-core.
(Reading database ... 216532 files and directories currently installed.)
Preparing to unpack .../xserver-xorg-core_2%3a1.19.6-1ubuntu4.4_amd64.deb ...
Unpacking xserver-xorg-core (2:1.19.6-1ubuntu4.4) ...
Setting up xserver-xorg-core (2:1.19.6-1ubuntu4.4) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
!----------------------------------------------------------!
! Installing xserver-xorg-input-all pkg...Proceeding... !
!----------------------------------------------------------!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libglu1-mesa libxatracker2 libxss1 libxvmc1 linux-generic-hwe-18.04 linux-headers-generic-hwe-18.04
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
xserver-xorg-input-libinput xserver-xorg-input-wacom
The following NEW packages will be installed:
xserver-xorg-input-all xserver-xorg-input-libinput xserver-xorg-input-wacom
0 upgraded, 3 newly installed, 0 to remove and 150 not upgraded.
Need to get 127 kB of archives.
After this operation, 454 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu bionic/main amd64 xserver-xorg-input-libinput amd64 0.27.1-1 [33.2 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 xserver-xorg-input-all amd64 1:7.7+19ubuntu7.1 [4,112 B]
Get:3 http://cn.archive.ubuntu.com/ubuntu bionic-updates/main amd64 xserver-xorg-input-wacom amd64 1:0.36.1-0ubuntu1.1 [89.8 kB]
Fetched 127 kB in 1s (85.1 kB/s)
Selecting previously unselected package xserver-xorg-input-libinput.
(Reading database ... 216568 files and directories currently installed.)
Preparing to unpack .../xserver-xorg-input-libinput_0.27.1-1_amd64.deb ...
Unpacking xserver-xorg-input-libinput (0.27.1-1) ...
Selecting previously unselected package xserver-xorg-input-all.
Preparing to unpack .../xserver-xorg-input-all_1%3a7.7+19ubuntu7.1_amd64.deb ...
Unpacking xserver-xorg-input-all (1:7.7+19ubuntu7.1) ...
Selecting previously unselected package xserver-xorg-input-wacom.
Preparing to unpack .../xserver-xorg-input-wacom_1%3a0.36.1-0ubuntu1.1_amd64.deb ...
Unpacking xserver-xorg-input-wacom (1:0.36.1-0ubuntu1.1) ...
Setting up xserver-xorg-input-libinput (0.27.1-1) ...
Setting up xserver-xorg-input-wacom (1:0.36.1-0ubuntu1.1) ...
Setting up xserver-xorg-input-all (1:7.7+19ubuntu7.1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
!---------------------------------------------!
! Installing XRDP Packages...Proceeding... !
!---------------------------------------------!
Reading package lists... Done
Building dependency tree
Reading state information... Done
xrdp is already the newest version (0.9.5-2).
The following packages were automatically installed and are no longer required:
libglu1-mesa libxatracker2 libxss1 libxvmc1 linux-generic-hwe-18.04 linux-headers-generic-hwe-18.04
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 150 not upgraded.
!---------------------------------------------!
! Installing Gnome Tweak...Proceeding... !
!---------------------------------------------!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libglu1-mesa libxatracker2 libxss1 libxvmc1 linux-generic-hwe-18.04 linux-headers-generic-hwe-18.04
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
gnome-tweaks
The following NEW packages will be installed:
gnome-tweak-tool gnome-tweaks
0 upgraded, 2 newly installed, 0 to remove and 150 not upgraded.
Need to get 219 kB of archives.
After this operation, 1,257 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 gnome-tweaks all 3.28.1-1 [218 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu bionic/universe amd64 gnome-tweak-tool all 3.28.1-1 [1,848 B]
Fetched 219 kB in 2s (115 kB/s)
Selecting previously unselected package gnome-tweaks.
(Reading database ... 216598 files and directories currently installed.)
Preparing to unpack .../gnome-tweaks_3.28.1-1_all.deb ...
Unpacking gnome-tweaks (3.28.1-1) ...
Selecting previously unselected package gnome-tweak-tool.
Preparing to unpack .../gnome-tweak-tool_3.28.1-1_all.deb ...
Unpacking gnome-tweak-tool (3.28.1-1) ...
Setting up gnome-tweaks (3.28.1-1) ...
Setting up gnome-tweak-tool (3.28.1-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
!---------------------------------------------!
! Granting Console Access...Proceeding... !
!---------------------------------------------!
!---------------------------------------------!
! Creating Polkit File...Proceeding... !
!---------------------------------------------!
!---------------------------------------------!
! Fix Theme and extensions...Proceeding... !
!---------------------------------------------!
!------------------------------------------------------------------------------!
! Installation Completed !
! Please test your xRDP configuration.A Reboot Might be required... !
! Written by Griffon - Sept 2019 - Ver 0.6.1 - Std-Xrdp-Install-0.6.1sh !
! !
! Thanks to Thiago Martins who provided Updated xRDP packages for 18.04.2 :-) !
!------------------------------------------------------------------------------!
public@public-Hi-Fi-H77S:~/zhangbin$ ./Std-Xrdp-Install-0.6.1.sh