Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 软件时空 > 软件相关 > Solaris不能进入X-Windows解决一例
【标  题】:Solaris不能进入X-Windows解决一例
【关键字】:Solaris,X-Windows
【来  源】:http://blog.csdn.net/liswa/archive/2006/05/29/760097.aspx

Solaris不能进入X-Windows解决一例

Your Ad Here

重新布置了Video Switch后,再开机后就无法进入图形界面了,google下,找到文章一篇

How do I su(1) to another user and run an X application? 

You need to set your $DISPLAY and allow others to use your console. If you don't, you get a message like "Can't open display". By default, only the user who logged in on console can connect to the display.

To allow another user to connect there are two ways - one easy and one secure (unfortunately, you can't have both):

Easy: As user logged in on console run "xhost +LOCAL:" (This gives permission to connect to the display to anyone logged in on the machine—this includes being able to open windows, read your keystrokes, send keystrokes, etc. Obviously not a good idea if you have other users on the system you don't trust completely.) Starting with Solaris 10, you can also use this safer, more-restrictive format: xhost xhost +si:localuser:username For example: xhost +si:localuser:root

As any other user logged in on the box, run "setenv DISPLAY :0" or "DISPLAY=:0; export DISPLAY", depending on your shell type. This all assumes you're connecting from the same host, for a remote host, change to "xhost +other-hostname" and "setenv DISPLAY PutYourHostnameHere:0"

Safe: As user logged in on console run "xauth list" Look for the line for your hostname followed by ":0" and copy it. As the user you want to grant access to run "xauth" and at the xauth> prompt type "add " and paste the line you copied. Now "setenv DISPLAY hostname:0", making sure you match the way it was listed in the line you copied and pasted.

Easier variation of safe method for special cases: If the other user you want to access your screen is root, and your home directory is either local or on an NFS filesystem exported with root permissions, just have root do this:
setenv XAUTHORITY /home/myuserid/.Xauthority ; setenv DISPLAY :0
(replace "/home/myuserid" with your actual home directory).

于是把USB Mouse直接接在服务器的USB接口上,重启后,问题解决,原来,我是把USB Mouse通过USB转接线放置在面板前的,可能是转接线的问题吧,Solaris识别不出USB鼠标,于是无法进入图形界面了。

网络故障检测研究现状:【上一篇】
网络中树型菜单实现方法及其效率研究:【下一篇】
【相关文章】
  • solaris下性能监测的一个脚本
  • Solaris10x86_install_oracle10g_DB笔记(20060331)
  • Solaris10x86_install_oracle10g_CL笔记(20060410)
  • 我在solaris下的一些备份总结
  • 我在solaris下的一些备份总结(转自http://www.cublog.cn/u/11327/)
  • Solaris系统工程师证书
  • Solaris RAID1 配置流水账
  • 如果solaris不幸忘记了root密码,如何解决?
  • solaris下共享内存大小如何设置?
  • solaris相关FAQ-131问
  • 【随机文章】
  • 怎样在网页中嵌入一个简单的WORD编辑框?
  • 判断一个数字是否整数的办法
  • 统计模式识别
  • Eclipse简介和插件开发
  • ASP中FSO组件的属性和方法(四)
  • 一些网络工具介绍
  • 再谈交换环境下的会话劫持(For windows2000) 三
  • 公共数据交换解决方案
  • 15秒为ASP.NET应用缓存Oracle数据
  • 浅析程序员的压力的产生
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.