debian vnc 配置
介绍 (Introduction)
Virtual Network Computing, or VNC, is a connection system that allows you to use your keyboard and mouse to interact with a graphical desktop environment on a remote server. It makes managing files, software, and settings on a remote server easier for users who are not yet comfortable with the command line.
虚拟网络计算 (VNC)是一种连接系统,使您可以使用键盘和鼠标与远程服务器上的图形桌面环境进行交互。 对于尚不熟悉命令行的用户,它使在远程服务器上管理文件,软件和设置更加容易。
In this guide, you’ll set up a VNC server on a Debian 10 server and connect to it securely through an SSH tunnel. You’ll use TightVNC, a fast and lightweight remote control package. This choice will ensure that our VNC connection will be smooth and stable even on slower internet connections.
在本指南中,您将在Debian 10服务器上设置VNC服务器,并通过SSH隧道安全地连接到该服务器。 您将使用TightVNC ,这是一种快速,轻便的远程控制程序包。 此选择将确保即使在较慢的Internet连接上,我们的VNC连接也将保持平稳。
先决条件 (Prerequisites)
To complete this tutorial, you’ll need:
要完成本教程,您需要:
One Debian 10 server set up by following the Debian 10 initial server setup guide, including a non-root user with
sudo
access and a firewall.按照Debian 10初始服务器设置指南设置一台Debian 10服务器,包括具有
sudo
访问权限和防火墙的非root用户。
步骤1 —安装桌面环境和VNC服务器 (Step 1 — Installing the Desktop Environment and VNC Server)
By default, a Debian 10 server does not come with a graphical desktop environment or a VNC server installed, so we’ll begin by installing those. Specifically, we will install packages for the latest Xfce desktop environment and the TightVNC package available in the official Debian repository.
默认情况下,Debian 10服务器未安装图形桌面环境或VNC服务器,因此我们将从安装它们开始。 具体来说,我们将为最新的Xfce桌面环境安装软件包,并在Debian官方存储库中提供TightVNC软件包。
On your server, update your list of packages:
在您的服务器上,更新软件包列表:
- sudo apt update sudo apt更新
Now install the Xfce desktop environmen