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

安装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
创建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配置文件

为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
杀死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客户端,下面的教程对此进行了详细说明。

.u216a52f604ff8d12537432c4d30a0005 , .u216a52f604ff8d12537432c4d30a0005 .postImageUrl , .u216a52f604ff8d12537432c4d30a0005 .centered-text-area { min-height: 80px; position: relative; } .u216a52f604ff8d12537432c4d30a0005 , .u216a52f604ff8d12537432c4d30a0005:hover , .u216a52f604ff8d12537432c4d30a0005:visited , .u216a52f604ff8d12537432c4d30a0005:active { border:0!important; } .u216a52f604ff8d12537432c4d30a0005 .clearfix:after { content: ""; display: table; clear: both; } .u216a52f604ff8d12537432c4d30a0005 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u216a52f604ff8d12537432c4d30a0005:active , .u216a52f604ff8d12537432c4d30a0005:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u216a52f604ff8d12537432c4d30a0005 .centered-text-area { width: 100%; position: relative; } .u216a52f604ff8d12537432c4d30a0005 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u216a52f604ff8d12537432c4d30a0005 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u216a52f604ff8d12537432c4d30a0005 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u216a52f604ff8d12537432c4d30a0005:hover .ctaButton { background-color: #E67E22!important; } .u216a52f604ff8d12537432c4d30a0005 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u216a52f604ff8d12537432c4d30a0005 .u216a52f604ff8d12537432c4d30a0005-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u216a52f604ff8d12537432c4d30a0005:after { content: ""; display: block; clear: both; }

LEARN MORE  Compare Lubuntu vs Xubuntu

.u216a52f604ff8d12537432c4d30a0005 , .u216a52f604ff8d12537432c4d30a0005 .postImageUrl , .u216a52f604ff8d12537432c4d30a0005 .centered-text-area { min-height: 80px; position: relative; } .u216a52f604ff8d12537432c4d30a0005 , .u216a52f604ff8d12537432c4d30a0005:hover , .u216a52f604ff8d12537432c4d30a0005:visited , .u216a52f604ff8d12537432c4d30a0005:active { border:0!important; } .u216a52f604ff8d12537432c4d30a0005 .clearfix:after { content: ""; display: table; clear: both; } .u216a52f604ff8d12537432c4d30a0005 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u216a52f604ff8d12537432c4d30a0005:active , .u216a52f604ff8d12537432c4d30a0005:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u216a52f604ff8d12537432c4d30a0005 .centered-text-area { width: 100%; position: relative; } .u216a52f604ff8d12537432c4d30a0005 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u216a52f604ff8d12537432c4d30a0005 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u216a52f604ff8d12537432c4d30a0005 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u216a52f604ff8d12537432c4d30a0005:hover .ctaButton { background-color: #E67E22!important; } .u216a52f604ff8d12537432c4d30a0005 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u216a52f604ff8d12537432c4d30a0005 .u216a52f604ff8d12537432c4d30a0005-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u216a52f604ff8d12537432c4d30a0005:after { content: ""; display: block; clear: both; }

了解更多信息比较Lubuntu vs Xubuntu

Best VNC Viewer Clients For Linux

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

192.168.115.123:5901

Connect with VNC Client
与VNC客户端连接

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

tightvnc 远程开机

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

  1. shell中竖线的作用_如何在 Linux 中安装、配置和使用 Fish Shell?

    每个 Linux 管理员都可能听到过 shell 这个词.你知道什么是 shell 吗? 你知道 shell 在 Linux 中的作用是什么吗? Linux 中有多少个 shell 可用? -- Ma ...

  2. caffe-gpu ubuntu 安装_如何在Linux中安装vnStat和vnStati监视网络流量

    VnStat是针对Linux和BSD的基于控制台的网络流量监视工具设计.它将保留所选网络接口的网络流量日志.为了生成日志,vnStat使用内核提供的信息. 换句话说,它不会嗅探网络流量,并且可以确保系 ...

  3. centos sudo不能运行_如何在 Linux 中配置 sudo 访问权限 | Linux 中国

    Linux 系统中 root 用户拥有 Linux 中全部控制权力.Linux 系统中 root 是拥有最高权力的用户,可以在系统中实施任意的行为.-- Magesh Maruthamuthu Lin ...

  4. centos sudo不能运行_如何在Linux中配置sudo访问权限

    Linux 系统中 root 用户拥有 Linux 中全部控制权力.Linux 系统中 root 是拥有最高权力的用户,可以在系统中实施任意的行为. 如果其他用户想去实施一些行为,不能为所有人都提供 ...

  5. Linux上下载chronyd安装包,如何在Linux中安装和使用Chrony时间同步

    原标题:如何在Linux中安装和使用Chrony时间同步 来自:Linux迷 https://www.linuxmi.com/ Chrony是网络时间协议(NTP)的灵活实现.它用于同步来自不同NTP ...

  6. ubuntu 安装yum_如何在 Linux 中安装微软的 .NET Core SDK | Linux 中国

    本分步操作指南文章解释了如何在 Linux 中安装 .NET Core SDK 以及如何使用 .NET 开发出第一个应用程序.-- Sk致谢译自 | ostechnix.com 作者 | Sk译者 | ...

  7. linux内核如何安装vim,如何在Linux 中安装和使用 PacVim?

    描述 你好,Vim用户!今天,我偶然发现了一个很酷的程序来提高 Vim 的使用技巧.Vim 是编写和编辑代码的绝佳编辑器.然而,你们中的一些人(包括我)仍在陡峭的学习曲线中挣扎.再也不用了!来看看 P ...

  8. 如何在Linux中安装和使用Silver Searcher(程序员的代码搜索工具)

    Silver Searcher是一个免费的开源跨平台源代码搜索工具,类似于ack ( 类似于程序员的grep工具 ),但速度更快. 它运行在类Unix系统和Windows操作系统上. 银色搜索者和ac ...

  9. rust安装教程linux,如何在 Linux 中安装 Rust 编程语言

    Rust 通常被称为 rust-lang.Rust 是一个由 Mozilla Research 赞助的通用的.多范式.现代的.跨平台和开源系统编程语言. 它旨在实现安全性.速度和并发性等目标. Rus ...

最新文章

  1. 含有参数的sql拼接_关于SQL语句参数中为多个带.字符串。
  2. 模糊图像处理 去除模糊_图像模糊如何工作
  3. Udi Dahan对于业务逻辑重用以及微服务方面的观点
  4. C/C++ 指针详解
  5. 【flink】Flink 1.12.2 源码浅析 : yarn-per-job模式解析 yarn 提交过程解析
  6. AccessibilityService(无障碍辅助服务)
  7. 毕业不到一年的前端开发同学的焦虑
  8. 中国体力活动监测器(PAM)市场趋势报告、技术动态创新及市场预测
  9. 5.并发工具和执行器(Concurrency Utilities and Executors)5.1 并发工具介绍
  10. iconfont-阿里巴巴矢量图标库在layui中的使用
  11. day 32 子进程的开启 及其用法
  12. 服务器系统2008怎么安装net,如何在win2008R2 上安装.Net 3.5 sp1
  13. 佛祖保佑代码无bug图片_佛祖保佑,永无BUG
  14. go程序cpu过高问题排查方法
  15. Excel从数据中挑出几个数值使其和为某一固定值
  16. 清华大学(深圳)吕帅课题组招收计算机领域博士后
  17. (云)服务器硬件性能测试
  18. inject类型丢失问题
  19. JavaScript设计模式 -发布订阅者模式
  20. MPC模型预测控制及在Matlab中实现函数定义

热门文章

  1. 杭州.Net 相关大公司,希望对大家有帮助
  2. openshift 3.10部署文档
  3. 分布式缓存之Ehcache与terracotta - Terracotta服务器概念篇
  4. 新浪云计算开发平台SAE欢迎您的加入
  5. 算法分析与设计实践-作业七-投资问题
  6. 音乐背景声提取 matlab,获取抖音背景音乐Bgm提取方案-下载抖音背景音乐方法
  7. 【无标题】BIOS程序组成:
  8. C#中数组合并(Array.Copy的用法)
  9. 中职计算机应用基础pdf,职高三计算机应用基础(win7+office2010)word.pdf
  10. 知识图谱每日阅读(一)