LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 942|回复: 8

为什么只有一个用户能进入X?

[复制链接]
发表于 2005-1-26 15:03:40 | 显示全部楼层 |阅读模式
为什么只有一个用户能进入X?而不能同时进入X?我用普通用户进入了X,再切换到root,就进不去了,必须注销普通用户,root才能进入?或者是用root进入了x,普通用户就 不能进X。
 楼主| 发表于 2005-1-26 15:10:06 | 显示全部楼层
linux不是多用户系统吗,现在我却只能单用户了
回复 支持 反对

使用道具 举报

发表于 2005-1-26 18:11:55 | 显示全部楼层
试一下:
$ startx  --  :1

如果想在用一个:
$ startx  --  :2

(控制台上执行)
回复 支持 反对

使用道具 举报

发表于 2005-1-26 18:18:46 | 显示全部楼层
Post by wyvern2004
linux不是多用户系统吗,现在我却只能单用户了


:!!  :!!  :!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-26 21:01:58 | 显示全部楼层
谢谢了。

主要是进不了图形界面,只能进字符界面。
就是说不能两个用户进同时进图形界面。

除了startx --:1,还有什么方法?
回复 支持 反对

使用道具 举报

发表于 2005-1-26 21:30:31 | 显示全部楼层
Post by windrose
:!!  :!!  :!!

fake
回复 支持 反对

使用道具 举报

发表于 2005-1-26 21:47:32 | 显示全部楼层
在gnome 2.8里有个“以新用户登录”的程序,
用这个可以同时登录好几个X用户,
你在gnome菜单里找一找
Post by wyvern2004
为什么只有一个用户能进入X?而不能同时进入X?我用普通用户进入了X,再切换到root,就进不去了,必须注销普通用户,root才能进入?或者是用root进入了x,普通用户就 不能进X。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-2 23:00:38 | 显示全部楼层
用startx进入X的错误信息如下:

Fatal server error:
Server is already active for display 0
If this server is no longer running,remove /tmp/.X0-lock
and start-again
When reporting a problem related to asever crash,please send the full server output,not just the last message.
Please report problems to submit@bugs.debian.org

Xlib:connection to ":0.0" refused by server
Xlib:Invalid MIT-MAGIC-COOKIE-1 KEY
giving up.
Xinit:unable to connection to  Xserver
Xinit:No such process(error3):server error.


上面就是错误信息,我把rm /tmp/.X0-lock 删了,它就能进X,但重启后,.X0-lock又有了,又要rm /tmp/.X0-lock了。
回复 支持 反对

使用道具 举报

发表于 2005-2-3 11:09:44 | 显示全部楼层
1,按照shadoww的方法,按ctl + alt + f2~f6,切换到控制台,
登录后,使用命令startx -- :1,启动X

2,使用vncserver,然后用vncviewer登录;如果是fc3,有一个Xnest,也可以在一个桌面开启多个用户登录

3,参考下列站点:
http://startx.times.lv/
console kernel patch
  This is a Linux kernel patch based on the linuxconsole.sourceforge.net project. My patch applies cleanly to 2.4.25. It will allow you to run two or more independ consoles with independ keyboards and mice. During the current project status it allows for two or more simultaneous X servers to be run with independ keyboards and mice.
  This in turn allows to simulate net gaming. Quake3Arena in one of the games which run just fine simultaneously.
  Of course it is not nessarly that you are interested in games to gain something from the usage of this project on your systems. You can benefit much more if you utilise this project on PC's in your small office, in internet-cafes/clubs, in the PC rooms at schools or universities. It will save you a lot of cost and time for the administration of the installed systems.


http://linuxconsole.sourceforge.net/
#  Multi-desktop operation -- console instances running on multiple (possibly dissimilar) video cards and separate keyboards.
# With the new console locking mechanism the underlying drivers can be DMA/irq based for maximum speed.
# Much simpler framebuffer api. Plus with the new design it is possible to use framebuffer devices without a VT.
# The console system input system is based solely on the input api. This allows for things like a universal keymap. No more compiling in new keymaps for every type of different keyboard out there. Plus with this design it is possible to use a keyboard without the console system.
# New serial API. The serial layer is more like the parport layer now. Having to use the TTY layer for something like a serial mouse is plain silly. The idea is to create a basic serial API and register device interfaces. For a modem you would want to register a TTY interface whereas for a serial mouse or joystick we would want to register an interface for the input api.
# Support for hot plug. We can add or remove graphics cards or even keyboards to create new desktop VTs.
# A scrollback buffer implemented in the console itself.
# Support for different fonts, and textmodes per VC.
# Better Unicode support. You will be able to display Kanji on the command line. Bidirectional support.
# Not really a part of the console system, force feedback is a important element to the input layer that this project is also working.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表