我在家里的一台测试机器上安装了Linux Mint ,我通常用它来玩(Linux Mint)Linux,但我使用Windows 10 机器作为我的主要日常驱动程序。我想要一种方便的方法来从Windows或Mac连接到我的(Mac)Linux Mint机器,而无需安装各种软件包等。
如果你浏览互联网(Internet),你会看到关于安装XRDP、x11VNC等的文章。这对我来说听起来有点太复杂了,特别是因为Linux Mint具有内置的桌面共享功能。
警告:值得注意的是,我在下面描述的方法禁用了远程连接的加密。(Warning: It’s worth noting that the method I’m describing below disables encryption for the remote connection.)
对我来说,这不是问题,因为我只是从本地网络中连接到Linux机器。(Linux)如果您需要为远程连接启用加密,我将很快写另一篇关于如何做到这一点的文章,因为它有点复杂。
配置桌面共享设置
在Linux Mint中,单击菜单按钮、首选项(Preferences),然后单击桌面共享( Desktop Sharing)。这将打开桌面共享首选项(Desktop Sharing Preferences)屏幕,您可以在其中允许其他用户连接到Linux系统。
在共享(Sharing)下,继续并检查允许其他用户查看您的桌面( Allow other users to view your desktop)和允许其他用户控制您的桌面( Allow other users to control your desktop)框。在Security下,取消选中(Security)You must confirm each access to this machine可能是个好主意,因为这需要您在远程连接被接受之前在本地确认它。如果您要让其他人访问您的机器,那么可能值得检查一下,以便您可以控制何时有人连接到您的机器。
为了防止任何人连接到您的计算机,请选中要求用户输入此密码( Require the user to enter this password)框并输入一个相当强的密码。完成此对话框后,单击(Click) 关闭。(Close)
安装 dconf 编辑器
接下来,我们必须禁用Vino当前所需的加密,这是(Vino)Linux Mint默认安装的软件包。我们必须安装 dconf Editor,以便我们可以更改默认设置。
打开终端(Terminal)并输入以下命令:
sudo apt-get install dconf-editor
安装软件包后,单击Linux Mint菜单,然后单击所有应用程序( All Applications)并向下滚动,直到看到dconf Editor。
打开编辑器,然后导航到org - gnome - desktop - remote-access。
在右侧窗格中,继续并取消选中需要加密(require-encryption)框。关闭编辑器,然后重新启动您的Linux机器。重新登录后,我们可以尝试连接。
使用 VNC 客户端连接
此时,您可以下载您喜欢的适用于Windows的(Windows)VNC客户端并连接到Linux机器。就我而言,我使用了RealVNC的(RealVNC)VNC Viewer 程序(VNC Viewer program)。您无需注册或支付任何费用即可使用查看器。
输入您的Linux(Linux)机器的 IP 地址,然后按Enter。由于没有加密,您会看到一个弹出对话框,告诉您您的连接不安全。一旦您通过该消息,您将必须输入我们第一次在Linux Mint上设置桌面共享设置时输入的密码。
希望如果一切顺利,您现在应该可以看到Linux Mint机器的桌面。
如前所述,这是进入Linux机器的快速修复方法,但它并不安全。这意味着通过网络发送的所有数据都是完全未加密的,包括密码等。因此,如果您打算使用此方法,请确保没有人可以窥探您。我将很快发布另一篇关于如何使用加密远程连接到你的Linux Mint盒子的文章。(Linux Mint)如果您有任何问题,请发表评论。享受!
The Easiest Way to Remotely Connect to Linux Mint from Any OS
I have Linux Mint installed on a test machine at home that I use for playing around with Linux in general, but I use a Windows 10 machine as my main daily driver. I wanted a convenient wаy to connect to my Linυx Mint machine from Windows or Mac without havіng to install all kind of packages, etc.
If you browse the Internet, you’ll see articles about installing XRDP, x11VNC, etc, etc. This all sounded a bit too complicated for me, especially since Linux Mint has built-in desktop sharing capabilities.
Warning: It’s worth noting that the method I’m describing below disables encryption for the remote connection.
For me, this is a non-issue since I am simply connecting to the Linux box from within my local network. If you need to have encryption enabled for the remote connection, I’ll be writing up another post soon on how to do that as it’s a bit more complicated.
Configure Desktop Sharing Settings
In Linux Mint, click on the menu button, Preferences and then Desktop Sharing. This will open the Desktop Sharing Preferences screen where you can enable other users to connect to the Linux system.
Under Sharing, go ahead and check the Allow other users to view your desktop and Allow other users to control your desktop boxes. Under Security, it’s probably a good idea to uncheck the You must confirm each access to this machine as that would require you to locally confirm the remote connection before it is accepted. If you’re giving someone else access to your machine, then it’s probably worth checking so that you can control when someone connects to your machine.
In order to prevent anyone from connecting to your machine, check the Require the user to enter this password box and type in a decently strong password. Click Close as we are done with this dialog.
Install dconf Editor
Next, we have to disable the encryption that is currently required by Vino, which is the package installed in Linux Mint by default. We have to install the dconf Editor, so that we can change the default settings.
Open Terminal and type in the following command:
sudo apt-get install dconf-editor
Once the package has been installed, click on the Linux Mint menu, then All Applications and scroll down till you see dconf Editor.
Open the editor and then navigate to org – gnome – desktop – remote-access.
In the right-hand pane, go ahead and uncheck the require-encryption box. Close the editor and then restart your Linux box. Once you are logged back in, we can try to connect.
Connect Using VNC Client
At this point, you can download your favorite VNC client for Windows and connect to the Linux box. In my case, I used the VNC Viewer program from RealVNC. You don’t have to sign up or pay for anything to use the viewer.
Type in the IP address for your Linux box and press Enter. Since there is no encryption, you’ll get a popup dialog telling you that your connection is not secure. Once you get past that message, you’ll have to enter the password you typed when we first setup desktop sharing settings on Linux Mint.
Hopefully, if all went well, you should now see the desktop for your Linux Mint machine.
As previously mentioned, this is a quick fix way to get into your Linux machine, but it is not secure. This means that all the data sent over the network is completely unencrypted, including passwords, etc. So, make sure no one can snoop on you if you plan to use this method. I’ll be posting another article soon on how to connect remotely to your Linux Mint box using encryption. If you have any questions, post a comment. Enjoy!