Linux7.6安装Vnc

安装并配置vnc server

1.安装vnc server
使用xshell远程系统,root用户
执行命令安装 Gnome 包

 #yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

(我的安装了995个rpm包,较慢)

更新系统的运行级别,如果你想在系统下次启动的时候自动进入图形界面,那么我们需要更改系统的运行级别,输入下面的命令来启用图形界面。

#ln -sf /lib/systemd/system/runlevel5.target/etc/systemd/system/default.target

重启完成GNOME的安装。

安装vnc server

#yum install tigervnc-server tigervnc-server-module

安装vncviewer

#yum install vnc

2.配置vnc
第一次启动vncserver会要求输入root密码,输入两次即可;也可以用vncpasswd重置密码

停止vncserver

#vncserver -kill :1
#vncserver -kill :2

3、通过配置vnc登录,提示一下错误:

[oracle@19ctest 19.3.0]$ pwd

/u01/app/oracle/product/19.3.0

[oracle@19ctest 19.3.0]$ ./runInstaller 
ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.

No X11 DISPLAY variable was set, but this program performed an operation which requires it.

确定连接的vnc是几号号桌面,这里是1号桌面:
[root@19ctest .vnc]# vncserver

New ‘19ctest:1 (root)’ desktop is 19ctest:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/19ctest:1.log

解决:需要使用oracle用户

[oracle@19ctest ~]$ export DISPLAY=":1.0"
[oracle@19ctest ~]$ echo $DISPLAY

:1.0

[oracle@19ctest ~]$ xhost +

access control disabled, clients can connect from any host

[oracle@19ctest ~]$ xdpyinfo | head
name of display:    :1.0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    12001000
X.Org version: 1.20.1
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    6
[oracle@19ctest ~]$ cd $ORACLE_HOME
[oracle@19ctest database]$ export LANG=zh_CN.UTF-8
[oracle@19ctest database]$ ./runInstaller 
Launching Oracle Database Setup Wizard...

然后切换到vnc软件下,图形界面已打开,进行安装配置

安装监听报错:

****DISPLAY environment variable not set!
    Oracle Net Configuration Assistant is a GUI tool
    which requires that DISPLAY specify a location
    where GUI tools can display.
    Set and export DISPLAY, then re-run.
[oracle@19ctest app]$ export DISPLAY=:1.0
[oracle@19ctest app]$ xhost +
access control disabled, clients can connect from any host
[oracle@19ctest app]$ export LANG=zh_CN.UTF-8
[oracle@19ctest app]$ netca
Oracle Net Services 配置:

然后切换到vnc软件下,图形界面已打开,进行安装配置

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值