zoukankan      html  css  js  c++  java
  • 容器远程访问vnc--CentOS 6.8安装和配置VNC

    对于用惯了WIN系统的朋友来说,没有图形化操作界面的Linux用起来实在太难受了。实际上,Linux也是有图形化操作界面的,这就是VNC。接下来本文将告诉大家如何在CentOS 6.8下安装和配置 VNC图形化操作界面。

    高频-linux服务器中已安装了桌面环境,不用重复操作。

    1,安装GNOME桌面环境

    [root@ www.linuxidc.com ~]# yum -y groupinstall “GNOME Desktop Environment”

    2安装KDE桌面环境

    [root@ www.linuxidc.com ~]# yum groupinstall “X Window System” “KDE (K Desktop Environment)”

    3,安装VNC服务器 

    [root@ www.linuxidc.com ~]# yum -y install vnc-server

    4,配置VNC 

    [root@ www.linuxidc.com ~]# su - oracle

     [oracle@ www.linuxidc.com ~]$ vncpasswd

     Password:******

     verify:******

     [oracle@ www.linuxidc.com ~]$ ls .vnc/

    上述密码请设置为hj@vnc

    5,编辑VNC配置文件

    [root@ www.linuxidc.com ~]# vi /etc/sysconfig/vncservers

    #最下面添加两行

    VNCSERVERS=”1:oracle” //Uncomment 2 last lines, and edit your VNC user

    VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -localhost” // Save and exit

    oracle用户启动VNC 

    [oracle@ www.linuxidc.com ~]# vncserver&

    root用户配置为自动启动

    [root@ www.linuxidc.com ~]# chkconfig vncserver on //设置为开机启动

    访问方式:

    vnc-viewer输入server和端口,以rh6-xgp7为例:

     

    密码输入:hj@vnc

    查看 vncserver -list

    欢迎沟通交流 CslcCloud
  • 相关阅读:
    diary and html 文本颜色编辑,行距和其它编辑总汇
    bash coding to changeNames
    virtualbox ubuntu 网络连接 以及 连接 secureCRT
    linux 学习6 软件包安装
    linux 学习8 权限管理
    vim 使用2 转载 为了打开方便
    ubuntu
    linux 学习15 16 启动管理,备份和恢复
    linux 学习 14 日志管理
    linux 学习 13 系统管理
  • 原文地址:https://www.cnblogs.com/DaweiJ/p/8462967.html
Copyright © 2011-2022 走看看