前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >CentOS 7.6 配置VNC远程访问服务器图形界面

CentOS 7.6 配置VNC远程访问服务器图形界面

作者头像
拓荒者
发布2019-07-18 15:52:29
8.7K2
发布2019-07-18 15:52:29
举报

CentOS 7.6 配置VNC远程访问服务器图形界面

1. 安装VNC

1.1 安装图形界面

  1. yum groupinstall "development tools"
  2. yum groupinstall "gnome desktop"

1.2 安装配置vnc

  1. yum install tigervnc tigervnc-server -y
  2. vncserver :n
  3. #这里的n是 sessionnumber,不指定默认为1,也可以是2、3等等。第一次会提示输入密码,以后可以使用 vncpasswd 命令修改密码。

具体如下:

  1. [root@oracle ~]# vncserver :1
  2. You will require a password to access your desktops.
  3. Password:
  4. Verify:
  5. Would you like to enter a view-only password (y/n)? y
  6. Password:
  7. Verify:
  8. xauth: file /root/.Xauthority does not exist
  9. New 'oracle.sysit.cn:1 (root)' desktop is oracle.sysit.cn:1
  10. Creating default startup script /root/.vnc/xstartup
  11. Creating default config /root/.vnc/config
  12. Starting applications specified in /root/.vnc/xstartup
  13. Log file is /root/.vnc/oracle.sysit.cn:1.log
  14. [root@oracle ~]# netstat -antlp | grep vnc
  15. tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 31009/Xvnc
  16. tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 31009/Xvnc
  17. tcp6 0 0 :::5901 :::* LISTEN 31009/Xvnc
  18. tcp6 0 0 :::6001 :::* LISTEN 31009/Xvnc

1.3 关闭vncserver

  1. [root@oracle ~]# vncserver -kill :1
  2. Killing Xvnc process ID 31009

1.4 指定分辨率和色深

默认参数,vncserver 显示会图标分辨率会比较小,我们可以指定参数。

  1. vncserver :1 -geometry 1366x768 -alwaysshared -depth 24
  • -geometry 指定分辨率,-alwaysshared代表允许多用户同时登录, -depth代为色深,参数有8,16,24,32。

2. 使用vnc-viewer访问

vnc-viewer下载地址:http://www.canadiancontent.net/tech/download/VNC_Viewer.html

title
title
title
title
title
title
title
title
title
title

至此可以远程操作。

如果觉得我的文章对您有

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • CentOS 7.6 配置VNC远程访问服务器图形界面
  • 1. 安装VNC
    • 1.1 安装图形界面
      • 1.2 安装配置vnc
        • 1.3 关闭vncserver
          • 1.4 指定分辨率和色深
          • 2. 使用vnc-viewer访问
          领券
          问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档