使用xshell 安装oracle

1.安装xhost

[root@oracle11 ~]# yum whatprovides "*/xhost"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
base/7/x86_64/filelists_db                                                                                                                                          | 7.2 MB  00:00:01     
extras/7/x86_64/filelists_db                                                                                                                                        | 226 kB  00:00:00     
updates/7/x86_64/filelists_db                                                                                                                                       | 3.4 MB  00:00:00     
xorg-x11-server-utils-7.7-20.el7.x86_64 : X.Org X11 X server utilities
Repo        : base
Matched from:
Filename    : /usr/bin/xhost



[root@oracle11 ~]# 

xorg-x11-server-utils-7.7-20.el7.x86_64 可以安装

yum install -y xorg-x11-server-utils-7.7-20.el7.x86_64

2.配置$DISPLAY

[root@oracle11 ~]# xhost +
xhost:  unable to open display ""
[root@oracle11 ~]# 
 

3.安装x-server

[root@oracle11 ~]# yum -y groupinstall "X Window System"

[root@oracle11 ~]# startx

4.xmanager

 

xstart填写执行命令为:
/usr/bin/xterm ls -display $DISPLAY

 

 

在xshell上设置,192.168.248.1是windows主机,要用这个地址连接192.168.248.134

[root@oracle11 ~]# export DISPLAY=192.168.248.1:0
[root@oracle11 ~]# xhost +
access control disabled, clients can connect from any host
[root@oracle11 ~]# 

xclock正常显示时钟

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值