tightvnc 远程开机_如何在Linux中安装和访问TightVNC远程桌面?

2023-05-16

tightvnc 远程开机

TightVNC is a very handy remote desktop application which is based on VNC protocol. TightVNC is mostly used for Linux systems in order to manage a remote desktop environment with GUI. In this tutorial, we will look at how to install and configure properly to run desktop environments like KDE, GNOME, XFCE, etc. with TightVNC.

TightVNC是基于VNC协​​议的非常方便的远程桌面应用程序。 TightVNC主要用于Linux系统,以便使用GUI管理远程桌面环境。 在本教程中,我们将研究如何正确安装和配置以运行带有TightVNC的桌面环境,例如KDE,GNOME,XFCE等。

安装Ubuntu,Debian,Mint,Kali (Install Ubuntu, Debian, Mint, Kali)

We can use the following command to install deb based distributions.

我们可以使用以下命令来安装基于deb的发行版。

$ sudo apt install tightvncserver
Ubuntu, Debian, Mint, Kali
Ubuntu, Debian, Mint, Kali
Ubuntu,Debian,Mint,Kali

安装CentOS,Fedora,RHEL (Install CentOS, Fedora, RHEL)

We can use the following command to install rpm based distributions.

我们可以使用以下命令来安装基于rpm的发行版。

$ sudo yum install tightvncserver

启动VNC服务器 (Start VNC Server)

Now we need to specify a desktop environment for our VNC session. Actually, we have not created a VNC session yet but we will create a new one to create default configuration files. We run the following command by providing a password for the VNC session.

现在,我们需要为VNC会话指定一个桌面环境。 实际上,我们尚未创建VNC会话,但将创建一个新会话来创建默认配置文件。 我们通过提供VNC会话的密码来运行以下命令。

$ vncserver
Create VNC Session
Create VNC Session
创建VNC会话

We can see that during VNC server start a password is specified which will be asked to the VNC clients want to connect this VNC server. Then the question wheter we want to create a view-only password. View-only password can be used to only view VNC sessions but can not control it. New VNC server session is create with the number 1 which means the server port is 5901 which is also called as ubuntu:1.

我们可以看到,在VNC服务器启动期间,指定了一个密码,该密码将被询问给要连接此VNC服务器的VNC客户端。 然后,我们想创建一个仅查看密码的问题。 仅查看密码可用于仅查看VNC会话,但无法控制它。 使用数字1创建新的VNC服务器会话,这意味着服务器端口为5901 ,也称为ubuntu:1

xstartup配置文件 (xstartup Configuration File)

All VNC Server related configuration is held in a file named xstartup which is located in the user’s home directory .vnc folder. Let’s print the default configuration. In this case, the VNC configuration file is located /home/ismail/.vnc/xstartup.

所有与VNC Server相关的配置都保存在名为xstartup的文件中,该文件位于用户的主目录.vnc文件夹中。 让我们打印默认配置。 在这种情况下,VNC配置文件位于/home/ismail/.vnc/xstartup

$ cat .vnc/xstartup
xstartup Configuration File
xstartup Configuration File
xstartup配置文件

为KDE设置桌面环境(Set Desktop Environment For KDE)

In order to enable KDE desktop environment with a new VNC session, we need to add the following line to the xstartup file.

为了使KDE桌面环境具有新的VNC会话,我们需要在xstartup文件中添加以下行。

startkde &

为GNOME设置桌面环境 (Set Desktop Environment For GNOME)

In order to enable GNOME desktop environment with a new VNC session, we need to add the following line to the xstartup file.

为了使GNOME桌面环境具有新的VNC会话,我们需要在xstartup文件中添加以下行。

gnome-session &

设置XFCE的桌面环境 (Set Desktop Environment For XFCE)

In order to enable GNOME desktop environment with a new VNC session, we need to add the following line to the xstartup file.

为了使GNOME桌面环境具有新的VNC会话,我们需要在xstartup文件中添加以下行。

startxfce4 &

设置LXDE的桌面环境 (Set Desktop Environment For LXDE)

In order to enable GNOME desktop environment with a new VNC session, we need to add the following line to the xstartup file.

为了使GNOME桌面环境具有新的VNC会话,我们需要在xstartup文件中添加以下行。

lxsession &

杀死VNC服务器或会话 (Kill VNC Server or Session)

As we have started a VNC server or session to create default configuration files. We need to kill it we can kill the VNC server with the -k option and the session ID. In this example, we will kill the session ID 1 .

当我们启动VNC服务器或会话以创建默认配置文件时。 我们需要杀死它,我们可以使用-k选项和会话ID杀死VNC服务器。 在此示例中,我们将终止会话ID 1

$ vncserver -kill :1
Kill VNC Server or Session
Kill VNC Server or Session
杀死VNC服务器或会话

启动服务器或会话(Start Server or Session)

Now we can start a new server with the command vncserver where the default configured desktop will be fired-up.

现在,我们可以使用命令vncserver启动新服务器,其中将启动默认配置的桌面。

$ vncserver

与VNC客户端连接 (Connect with VNC Client)

VNC servers start with port number 5900 and count one by one with the session ID. For example, if we have given session ID 3 the port number will be configured as 5903 . We can connect with a VNC client which is explained in the following tutorial in detail.

VNC服务器以端口号5900开头,并以会话ID逐一计数。 例如,如果我们给了会话ID 3,则端口号将配置为5903 。 我们可以连接VNC客户端,下面的教程对此进行了详细说明。

LEARN MORE  Compare Lubuntu vs Xubuntu
了解更多信息比较Lubuntu vs Xubuntu

Best VNC Viewer Clients For Linux

适用于Linux的最佳VNC Viewer客户端

192.168.115.123:5901
Connect with VNC Client
Connect with VNC Client
与VNC客户端连接

翻译自: https://www.poftut.com/how-to-install-and-access-tightvnc-remote-desktop-in-linux/

tightvnc 远程开机

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

tightvnc 远程开机_如何在Linux中安装和访问TightVNC远程桌面? 的相关文章

随机推荐

  • Presto SQl中使用date_format()和date_parse()遇到的问题

    昨天在Presto中查数据 查出来数据不对 后来发现是我使用date parse 函数有问题 我需要查2018年12月31号到2019年1月6号之间的数据 我使用的时间过滤方式是 and behavior datetime gt 61 da
  • vue点击实现 路由的跳转

    点击按钮实现路由的跳转 lt div 64 click 61 34 gotoMenu 34 gt 按钮 lt div gt 实现跳转 methods gotoMenu 跳转到上一次浏览的页面 this router go 1 this ro
  • 分享一下我在东方时尚学车的经历

    楼主是4月26日报的名 xff0c 7月22日拿的本 xff0c 不算快的 xff0c 不过也不算慢的 和大多数简子们一样 xff0c 楼主也是个苦比的白领一族 xff0c 白天上班 xff0c 大多数都是晚上去学车 xff0c 每一次请个
  • Linux Kernel Development有关内存管理

    1 Pages Page的概念来源为处理器Processor的部件MMU Memory Management Unit xff0c MMU通过设置好的页表 通过设置CR3寄存器 xff0c 指向页目录所在的物理内存 对内存进行管理 xff0
  • 控件权限管理思路

    1 编写判断用户角色相关的类及方法 protected bool ShowButtonBasedOnRole string RoleOfInterest return User IsInRole RoleOfInterest 2 通过调用相
  • 华为交换机LACP模式链路聚合配置

    交换机A和交换机B之间通过3条GE以太网连接 xff0c 活动链路为2 xff0c 配置如下 xff1a SwitchA配置 lt HUAWEI gt system view HUAWEI sysname SwitchA SwitchA i
  • 检查HTTP 的 Digest 认证代码示例-JSP

    检查HTTP 的 Digest 认证 since http1 1 代码如下所示 xff1a 此代码还不完善 RFC2617算法未实现 lt 64 page pageEncoding 61 34 UTF 8 34 contentType 61
  • 每天一个linux命令(4):mkdir命令

    linux mkdir 命令用来 创建指定的 名称的 目录 xff0c 要求创建目录的用户在当前目录中具有写权限 xff0c 并且指定的目录名不能是当前目录中已有的目录 1 xff0e 命令格式 xff1a mkdir 选项 目录 2 xf
  • 历史上消失的十天--儒略日(Julian Days)的来历

    儒略日是由法国学者 Joseph Justus Scaliger xff08 1540 1609 xff09 发明的 xff0c 名称可能是取自 Scaliger 的父亲 xff0c 意大利学者Julius Caesar Scaliger
  • “ -bash:sudo:未找到命令”对于Linux,Debian,CentOS的错误和解决方案

    sudo command is used to execute command as another user This is generally used to run command as root In some cases we c
  • 球机和云台的差别 以及他们的组成

    说的 球机 和 云台 的差别那不得不介绍球机和云台的概念了 xff0c 球机全称为球型 摄像机 xff0c 是现代电视监控发展的代表 xff0c 她集成彩色一体化摄像机 云台 解码器 防护罩等多功能与一体 xff0c 安装方便 使用简单但功
  • [Shell学习笔记] 命令行下的高级网络工具cURL命令

    原文 xff1a http www 1987 name 365 html Linux curl命令是一个利用URL规则在命令行下工作的文件传输工具 它支持文件的上传和下载 xff0c 所以是综合传输工具 xff0c 但按传统 xff0c 习
  • 74系列的型号

    74系列TTL数字逻辑集成电路系国际上通用的标准电路 其品种共分为六大类即 74xx 标准 74LSxx 低功耗肖特基 74Sxx 肖特基 74ALSxx 先进低功耗肖特基 74ASxx 先进肖特基 74Fxx 高速 只要序列号相同 xff
  • 【C#】使用fo-dicom完成BMP,JPG,PNG图片转换为DICOM文件

    最近研究了一下DICOM和BMP文件转换的问题 xff0c 也是很头大 度娘了很久 xff0c 也在CSDN等论坛看到一些断断续续的文件 xff0c 最主要的是代码只是片断 xff0c 不是完整的实现 头大了 首先 xff0c 了解一下BM
  • Atomix getting start 浓浓的机翻

    2019独角兽企业重金招聘Python工程师标准 gt gt gt 概观 Atomix 2 1是用于构建容错分布式系统的全功能框架 Atomix将ZooKeeper的一致性与Hazelcast的可用性和性能相结合 xff0c 使用一组定制通
  • Formik与antd-mobile的移动端的表单实践(下)

    大家好 xff0c 工作闲暇之余又来续写一下Formik这个库的文章了 xff0c 这次文章主要内容为如下 xff1a 更多表单组件的封装示例 单选 多选按钮选择器时间选择器文本输入框提交按钮Formik的表单验证Formik的表单提交处理
  • nginx与tomcat组合使用时获取客户端真实IP

    为什么80 的码农都做不了架构师 xff1f gt gt gt Nginx 43 Tomcat做反向代理在Tomcat中无法获取用户的真实IP解决步骤 xff1a 1 在Nginx配置文件中配置传递到Tomcat的IP变量名 xff1a 一
  • 记一次创建云硬盘失败的解决过程

    2019独角兽企业重金招聘Python工程师标准 gt gt gt 一 背景 登录dashboard xff0c 点击创建云硬盘失败 xff0c 而且是点击完就直接报error错误 二 解决经过 思路一 xff1a 新上传的image镜像
  • linux samba 配置

    1 所需要软件包 samba common软件包中提供了samba服务器和客户中都必须使用的公共文件 samba软件包中包括了samba服务器程序的所有文件 samba client软件包中提供了Samabe客户机器的所有文件 system
  • tightvnc 远程开机_如何在Linux中安装和访问TightVNC远程桌面?

    tightvnc 远程开机 TightVNC is a very handy remote desktop application which is based on VNC protocol TightVNC is mostly used