Solaris不能进入X-Windows解决一例
来源:互联网 发布:淘宝买快排吹被警察查 编辑:程序博客网 时间:2024/06/05 14:53
重新布置了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不能进入X-Windows解决一例
- 解决Solaris不能上网
- Windows Server2003不能进入控制面板如何解决?
- PullToRefreshListView 进入不能进入刷新状态解决
- 解决Windows Mobile点击X,不能关闭程序
- 在linux下安装tomcat6.X不能进入manager的解决
- Ubuntu 不能正常进入X-window
- 一加3T等手机在Ubuntu16.04下经常不能进入调试模式解决
- windows下php+apache配置好后出现内存不能为read的解决一例
- 解决在windows系统中删除ubuntu系统分区导致重启后提示grub rescue,不能进入windows系统的问题。
- ubuntu 安装后不能进入bios解决
- Struts1 不能进入Action,页面空白解决
- JOS 不能进入lab2 问题的解决
- 随笔------解决Ubuntu不能进入unity
- 解决不能进入phpmyadmin的方法
- RedHat 9.0无法进入系统解决一例
- 解决solaris系统中不能tar大文件的问题
- 关于ubuntu Linux 系统用startx进入X-windows然后重启无限登陆的解决方式
- iis站点出现资源正在使用中错误解决办法
- .net调用基类
- 一个在线让你的网站多语言化的工具
- 对C++中使用异常的一点想法
- 成年人必看的五个故事[来源于CSDN论坛]
- Solaris不能进入X-Windows解决一例
- C#实现验证码
- 河南郑州建站价格参考
- vb与access2003数据库连接程序
- Windows Remote Control Server程序作品+源代码
- PE文件病毒感染示例
- WF头疼
- Java学习从入门到精通
- 哪部电影是技术人员最应该看的?