vnc配置
来源:互联网 发布:印度民俗知乎 编辑:程序博客网 时间:2024/05/17 08:57
安装VNC Server
[root@dfmc-dbaasem-01 ~]# rpm -q vnc-serverpackage vnc-server is not installed[root@dfmc-dbaasem-01 ~]# yum install -y vnc-serverLoaded plugins: aliases, changelog, kabi, ovl, presto, refresh-packagekit, security, tmprepo, ulninfo, verify, versionlockLoading support for kernel ABISetting up Install ProcessResolving Dependencies--> Running transaction check---> Package tigervnc-server.x86_64 0:1.1.0-24.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved======================================================================================================================================================================== Package Arch Version Repository Size========================================================================================================================================================================Installing: tigervnc-server x86_64 1.1.0-24.el6 oraclelinux6.9 1.0 MTransaction Summary========================================================================================================================================================================Install 1 Package(s)Total download size: 1.0 MInstalled size: 2.6 MDownloading Packages:Setting up and reading Presto delta metadataProcessing delta metadataPackage(s) data still to download: 1.0 MRunning rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : tigervnc-server-1.1.0-24.el6.x86_64 1/1 Verifying : tigervnc-server-1.1.0-24.el6.x86_64 1/1 Installed: tigervnc-server.x86_64 0:1.1.0-24.el6 Complete![root@dfmc-dbaasem-01 ~]#
vi /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.## Uncomment the lines below to start a VNC server on display :2# as my 'myusername' (adjust this to your own). You will also# need to set a VNC password; run 'man vncpasswd' to see how# to do that.## DO NOT RUN THIS SERVICE if your local area network is# untrusted! For a secure way of using VNC, see this URL:# https://access.redhat.com/knowledge/solutions/7027# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.# Use "-localhost" to prevent remote VNC clients connecting except when# doing so through a secure tunnel. See the "-via" option in the# `man vncviewer' manual page.VNCSERVERS="2:myusername"VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
#VNCSERVERS="2:myusername"VNCSERVERS="1:root 2:grid 3:oracle"VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"
VNCSERVERS 是用来设定可以使用VNC的服务器账号,可以设定多个,例如上面root、grid、oracle,但是中间要用空格隔开。使用VNCVIEWER登录时,10.2.21.10:1表示是以root账号登录
重启服务:
[root@dfmc-dbaasp-01 ~]# service vncserver start正在启动 VNC 服务器:1:root A VNC server is already running as :12:grid You will require a password to access your desktops.getpassword error: Inappropriate ioctl for devicePassword:3:oracle You will require a password to access your desktops.getpassword error: Inappropriate ioctl for devicePassword:[失败][root@dfmc-dbaasp-01 ~]#
设置vnc密码
[root@dfmc-dbaasp-01 ~]# vncpasswdPassword:Verify:[root@dfmc-dbaasp-01 ~]#su - grid[root@dfmc-dbaasp-01 ~]# vncpasswdPassword:Verify:[root@dfmc-dbaasp-01 ~]#su - oracle[root@dfmc-dbaasp-01 ~]# vncpasswd Password:Verify:[root@dfmc-dbaasp-01 ~]# 配置xstartup文件如下所示,将下面的部分注释取消#!/bin/sh# Uncomment the following two lines for normal desktop:unset SESSION_MANAGERexec /etc/X11/xinit/xinitrc[root@dfmc-dbaasp-01 ~]# service vncserver restart关闭 VNC 服务器:1:root 2:grid 3:oracle [确定]正在启动 VNC 服务器:1:root xauth: (stdin):1: bad display name "dfmc-dbaasp-01:1" in "add" commandNew 'dfmc-dbaasp-01:1 (root)' desktop is dfmc-dbaasp-01:1Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/dfmc-dbaasp-01:1.log2:grid xauth: (stdin):1: bad display name "dfmc-dbaasp-01:2" in "add" commandNew 'dfmc-dbaasp-01:2 (grid)' desktop is dfmc-dbaasp-01:2Starting applications specified in /home/grid/.vnc/xstartupLog file is /home/grid/.vnc/dfmc-dbaasp-01:2.log3:oracle xauth: (stdin):1: bad display name "dfmc-dbaasp-01:3" in "add" commandNew 'dfmc-dbaasp-01:3 (oracle)' desktop is dfmc-dbaasp-01:3Starting applications specified in /home/oracle/.vnc/xstartupLog file is /home/oracle/.vnc/dfmc-dbaasp-01:3.log[确定]
阅读全文
0 0
- VNC配置
- VNC配置
- 配置VNC
- VNC配置
- vnc配置
- 配置 VNC
- VNC配置
- vnc 配置
- 配置VNC
- VNC配置
- VNC 配置
- vnc配置
- vnc配置
- VNC配置
- VNC配置
- 配置VNC
- vnc配置
- VNC配置
- hdu1113 字典查找 java版
- Linux性能分析与调整命令汇总
- 如何开发原生的 JavaScript 插件(知识点+写法)
- 功能: 窗体无边框移动 (学习日记 2017-05-26)
- opengles项目架构图
- vnc配置
- CSS Sprites
- Positive Xor 位运算, 异或的性质
- C++递推算法之放苹果
- 阿里云免费GPU+Tensorflow框架下的图像分类实例
- sendmail 安装
- WannaCry深度详细分析报告
- google protocol buffer基础学习总结(java版)
- json解析