实用技巧:在Linux下设置xhost方法步骤
第一步:用root登陆linux,启动vnc服务;
第二步:根据vnc起来的端口,设置export DISPLAY=localhost:1(1表示vnc在第一个tty上启动的),vnc的启动信息见附件1;
第三步:执行xhost +,并且提示“access control disabled, clients can connect from any host”才正确。
linux下的操作日志如下:
[root@localhost ~]# vncserver
New 'localhost:1 (root)' desktop is localhost:1
Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/localhost:1.log
[root@localhost ~]# export DISPLAY=localhost:1
[root@localhost ~]# xhost +
access control disabled, clients can connect from any host
在设置xhost时,出现了unable的问题。使用上诉方法就可以搞定。
分享到:
相关推荐
centos5.6安装oracle10g详细过程
Centos5.6中Redmine1.2.1安装过程,自己整理的文档,听过多次安装试验,绝对有效
自己看文档,亲自操作后的整理的关于centos5.6 dns的基本配置步骤,希望帮助迷茫的你
CentOS5.6环境下设置yum代理
Centos 5.6搭建构建安全可靠的sendmail邮件服务器.docx
centos详细安装资料,付截图。照着做就行了
Centos5.6安装详细步骤、java开发环境搭建与配置、驱动安装[802.11无线网卡驱动、显卡驱动等] 环境: (联想G460[原系统win7 ,分了150用以装Centos]) 目标操作系统:Centos 5.6 [64位的哟] CPU:Intel(R) Core(TM) i3...
在Win7下的VMWare10下安装CentOS6.5
Linux 作为一款开源免费的软件已被大多数人所熟知,并且已经有越来越多的服务器在使用这一系统,然而Linux的发行版本众多,CentOS也是Linux众多发行版中的一员。由于CentOS还需根据服务器的具体用途来配置,所以下面...
安装顺序 rpm -ivh cpp-4.1.2-42.el5.i386.rpm rpm -ihv kernel-headers-2.6.18-92.el5.i386.rpm rpm -ivh glibc-headers-2.5-24.i386.rpm rpm -ivh glibc-devel-2.5-24.i386.rpm rpm -ivh libgomp-4.1.2-42.el5....
centos 5.6安装图解,CentOS(Community ENTerprise Operating System)是Linux发行版之一,它是来自于Red Hat Enterprise Linux依照开放源代码规定释出的源代码所编译而成。由于出自同样的源代码,因此有些要求高度...
CentOS-5.6-x86_64-bin-1to8.torrent
说明Centos5.6下安装oracle10g的安装方法。
CentOS5.6安装手册 CentOS (Commnity Enterprise Operating System)是Linux发行版之一,它是来自于Red Hat Enterprise Linux依照开放源代码规定释出的源代码所编译而成。
该文档详细介绍了CentOS5.6平台下DNS安装、配置与测试。
centos5.6环境中安装oracle11g的简单步骤。 个人根据Oracle联机帮助文档 安装过程中的记录。
centos5.6上安装oracle 11g rac
CentOS 5.6编译安装Apache2.4.1+MySQL5.5.21+PHP5.3.10
自己安装oracle的过程都在里面,很详细,只要按着步骤安装就会成功的,祝您成功
系统环境:CentOS Linux release 7.6.1810 (Core) 起因:npm构建时报错 npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://github.com/nhn/raphael.git npm ERR! npm ERR! fatal: ...