ubuntu18远程桌面

内网远程桌面

MobaXterm(必备)

https://mobaxterm.mobatek.net/
推荐使用,牛逼软件
直接使用ssh登录,同时也可以远程桌面

XRDP(推荐)

重要的事情说三遍:
退出远程桌面时请使用logout方式关闭远程桌面
退出远程桌面时请使用logout方式关闭远程桌面
退出远程桌面时请使用logout方式关闭远程桌面

成功案例
mate
xfce4


#安装系统时安装软件更新+update+upgrade+drivers

Step 1: Login to Ubuntu
Login to your Ubuntu Desktop environment.

Step 2: Open the Terminal
Press CTRL+ALT+T and open the terminal. Alternatively you need to open it from the bottom right application list and search for terminal.

Step 3: Update Ubuntu
Run the following commands: 
sudo apt update 
#sudo apt dist-upgrade

Step 4: Install XRDP Package
Run the following command: 
sudo apt install xrdp  #gnome-tweak-tool gnome-shell-extensions
sudo apt-get install xorgxrdp-hwe-18.04
#sudo systemctl enable xrdp

Step 5: Setup the Xsession File for XRDP
Run the following command(二选一): 
echo mate-session> ~/.xsession   #mate远程桌面配置
echo xfce4-session> ~/.xsession   #xfce4远程桌面配置

Step 6: Install Mate-Core Package
Run the following command(二选一): 
sudo apt-get install mate-core  #mate远程桌面图标
sudo apt-get install mate-desktop-environment mate-notification-daemon
sudo apt-get install xfce4           #xfce4远程桌面图标
#sudo apt-get install xfce4-terminal

Step 7: Allow RDP traffic through UFW Firewall
Run the following command 
sudo ufw allow 3389/tcp
#sudo /etc/init.d/xrdp restart
#sudo service xrdp restart   #stop/status
#sudo systemctl status xrdp 
#sudo systemctl restart xrdp   #start xrdp

Step 8: Reboot the Device
Reboot Ubuntu by using the following command: 
sudo reboot

Step 9: Test RDP by connecting through RDP
Connect via Remote Desktop on a Windows (Microsoft Remote Desktop Client) or through Remmina on Linux.

You should be able to install XRDP on your computer and have it up and running after the steps outlined.

mate远程桌面(个人推荐使用此方案)
ubuntu18远程桌面_第1张图片
xfce4远程桌面
ubuntu18远程桌面_第2张图片

重新启动ubuntu,不要登录!
在Windows上进行连接
打开windows的远程桌面连接,输入Ubuntu的IP地址,并点击连接。
点击连接之后会进入登录页面,选择Xorg,并填写在Sharing中设置的账户和密码,即可登录。

无缝远程

sudo apt-get install xrdp 
sudo apt-get install xorgxrdp-hwe-18.04
#sudo apt-get install xserver-xorg-core 
#sudo apt-get install xsrever-xorg-input-all
sudo apt-get install --reinstall gnome-icon-theme   #解决远程桌面连接后没有正常的icon图标 

sudo systemctl status xrdp 
sudo systemctl enable xrdp
#sudo ufw enable
sudo ufw allow 3389/tcp
#sudo systemctl restart xrdp   #start xrdp
sudo service xrdp restart   #stop/status

sudo cp /usr/share/xsessions/ubuntu.desktop ~/.xsession
sudo chown xx:xx ~/.xsession  #修改文件权限

sudo vim /etc/xrdp/startwm.sh
~/.xsession #添加此内容

sudo reboot
#6.Windows7 运行=>输入mstsc,输入ubuntu ip ,输入用户密码即可登录到ubuntu.

gnome远程桌面
ubuntu18远程桌面_第3张图片

参考:https://blog.csdn.net/zhayushui/article/details/94402844

登录界面反复弹出输入密码窗口解决办法:
参考:https://c-nergy.be/blog/?p=12073

vim /etc/polkit-1/localauthority/50-local.d/45-allow.colord.pkla
 
[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactice=no
ResultActive=yes

运行一段时间后,出现xrdp_mm_process_login_response: login failed
https://my.oschina.net/chaoshu/blog/677139

VNC

推荐参考:https://blog.csdn.net/weixin_33804990/article/details/92484727

remote from ubuntu18

https://www.howtogeek.com/429190/how-to-set-up-remote-desktop-on-ubuntu/
主要使用Remminan通过vnc协议进行远程访问

远程服务器配置如下:
Settings->Sharing->Screen Sharin:

  1. Off —> activate
  2. Require a Password
  3. Networks —> On

本地机:打开应用程序Remmina

  1. 选择VNC
  2. 填入远程服务器ip地址:xxx.xxx.xxx.xxx:0

外网远程桌面

AnyDesk(免费)

windows

官网下载

ubuntu18

安装步骤参考

sudo apt update
sudo apt -y upgrade
wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add -
echo "deb http://deb.anydesk.com/ all main" | sudo tee /etc/apt/sources.list.d/anydesk-stable.list
sudo apt update
sudo apt install anydesk
anydesk

sudo anydesk-global-settings  #进行设置选项配置,建议设置自主访问密码

使用tweaks进行管理anydesk开机自启动

TeamViewer

 sudo apt-get install teamviewer   #安装
 teamviewer #启动

你可能感兴趣的:(服务器,linux,ubuntu系统)