Achieve direct remote access to Windows Ubuntu 18.04 (older versions also supported, without having to install third-party desktop, comes directly using remote tools)

  This article is to explain the reasons if Windows remote access VNC achieve 16.04 Ubuntu (because the article has a bit years, before explaining at 16.04 version, for example, the latest version of 18.04 pen Lord also tested there is no problem) , in fact there are many similar online tutorials, but many will need to install third-party desktop (xfce desktops, etc.), and many people do not like to install third-party desktop, as many people like the author comes like a native desktop (O (∩_∩) O ha ha ~ a little obsessive-compulsive disorder). Today I tell you about, no need to install other desktop using Ubuntu 16.04 comes with a desktop native of how remote access.

A provided remote control allows Ubuntu 16.04

   First, let's set up Ubuntu remote control will allow to be connected to its remote setting, enter the system - "Preferences -" desktop sharing, desktop sharing or search directly, as shown in Figure

  [Will allow others to view your desktop] hook on this one, then that item in a secure, check the [remote user is asked to enter this password] and set the remote password. And we must uncheck [each visit to this machine be OK (to do so in order to be remote when not need to confirm, otherwise every man must be confirmed in order to be remote remote, would be very tedious) Figure below:

Second, install vncserver

   Second, open a terminal, we need to install vncserver basic services, enter the following command:

sudo apt-get install xrdp vnc4server xbase-clients

  as the picture shows:

Third, the installation dconf-editor (cancellation rights restrictions)

   Again, we need to cancel the request for encryption functionality, otherwise the lack of this step is not, at this time we need to be installed on the remote dconf-editor tool to configure, enter the following command:

sudo apt-get install dconf-editor

  as the picture shows:

  After the installation is complete, we need to open dconf-editor tool, open in Desktop Search dconf-editor, as shown:

  打开之后,依次展开org->gnome->desktop->remote-access,然后取消 “requlre-encryption”的勾选即可。如图所示:

  至此,前期准备工作已经完成,后面直接通过VNC工具或者Windows自带的mstsc(远程桌面控制)进行访问就行。

四、远程连接Ubuntu 16.04

  获取当前的IP地址,命令ifconfig即可得到,笔者的当前的Ubuntu的IP地址为:192.168.8.203,然后通过IP地址就可以远程访问了。

  方法一、通过VNC Viewer客户端进行访问

  大家可以到VNC官网(https://www.realvnc.com/en/connect/download/viewer/)下载最新的版本,根据自己实际情况,选择相对应的版本,如图所示:

  输入我们需要远程控制的PC主机的IP,如图所示:

  成功连接上了,如图所示:

 


  方法二、通过Windows自带远程桌面控制(mstsc)进行访问(个人推荐)

   个人比较推荐使用该方法,直接使用Windows自带的远程桌面控制工具进行远程访问,这样就可以不用VNC Viewer。直接打开自带远程桌面控制,输入目标PC的IP地址,如图所示:

  通过自带远程桌面控制工具,选择模式【vnc-any】,然后输入IP地址和密码进行登录(其中端口号默认为5900,保持不变就行)如图所示:

  成功连接了,如图所示:

 -----------------------------------下面是Ubuntu最新版本18.04的连接,方法是一模一样的-----------------------------------

 

最终远程界面

 

PS:如有疑问,请留言,未经允许不得私自转载,转载请注明出处:http://www.cnblogs.com/xuliangxing/p/7642650.html 

一、设置Ubuntu 16.04 允许进行远程控制

   首先,我们先设置Ubuntu的远程控制,将其设置为允许被远程连接,进入系统-》首选项-》桌面共享,或者直接搜索桌面共享,如图所示

  将【允许其他人查看您的桌面】这一项勾上,然后在安全那项,勾选【要求远程用户输入此密码】,并设置远程密码。并且我们取消勾选【必须为对本机器的每次访问进行确定】(这样做,是为了被远程的时候不需要再确认,否则每次远程都要人为确认才能被远程,会很繁琐)如图所示:

二、安装vncserver

   其次,打开终端,我们需要安装vncserver的基础服务,输入以下命令:

sudo apt-get install xrdp vnc4server xbase-clients

  如图所示:

三、安装dconf-editor(取消权限限制)

   再次,我们需要取消掉请求加密的功能,否则缺少这一步是无法远程上的,这个时候我们需要安装dconf-editor工具进行配置,输入以下命令:

sudo apt-get install dconf-editor

  如图所示:

  安装完成之后,我们需要打开dconf-editor工具,在桌面搜索dconf-editor打开,如图所示:

  打开之后,依次展开org->gnome->desktop->remote-access,然后取消 “requlre-encryption”的勾选即可。如图所示:

  至此,前期准备工作已经完成,后面直接通过VNC工具或者Windows自带的mstsc(远程桌面控制)进行访问就行。

四、远程连接Ubuntu 16.04

  获取当前的IP地址,命令ifconfig即可得到,笔者的当前的Ubuntu的IP地址为:192.168.8.203,然后通过IP地址就可以远程访问了。

  方法一、通过VNC Viewer客户端进行访问

  大家可以到VNC官网(https://www.realvnc.com/en/connect/download/viewer/)下载最新的版本,根据自己实际情况,选择相对应的版本,如图所示:

  输入我们需要远程控制的PC主机的IP,如图所示:

  成功连接上了,如图所示:

 


  方法二、通过Windows自带远程桌面控制(mstsc)进行访问(个人推荐)

   个人比较推荐使用该方法,直接使用Windows自带的远程桌面控制工具进行远程访问,这样就可以不用VNC Viewer。直接打开自带远程桌面控制,输入目标PC的IP地址,如图所示:

  通过自带远程桌面控制工具,选择模式【vnc-any】,然后输入IP地址和密码进行登录(其中端口号默认为5900,保持不变就行)如图所示:

  成功连接了,如图所示:

 -----------------------------------下面是Ubuntu最新版本18.04的连接,方法是一模一样的-----------------------------------

 

最终远程界面

 

PS:如有疑问,请留言,未经允许不得私自转载,转载请注明出处:http://www.cnblogs.com/xuliangxing/p/7642650.html 

Guess you like

Origin www.cnblogs.com/xlpc/p/12324654.html