QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7452|回复: 10

远程登陆XWindows

[复制链接]
发表于 2005-3-15 21:52:14 | 显示全部楼层 |阅读模式
发信人: zhrb (碧涛), 信区: Linux
标  题: 远程登陆XWindows
发信站: 福州大学庭芳苑BBS (Sat Mar 12 20:52:54 2005), 转信


    不知道这样的题目准确不准确?因为严格来讲远程只是一个XClient.
这个XClient似乎又不能叫做XWindows,还请各位大虾指正。
    下面转载的文章,我测试成功
    Server端RH9,client端Xmanager.
    底下有些可能在自己的系统上找不到,不过不要紧,只要吧主要的改了就好了

    原文在ChinaUnix.net上.

    一, 服务器端:

1.修改X字体服务器脚本: /etc/rc.d/init.d/xfs , 改变端口 ,

daemon xfs -droppriv -daemon -port -1


改成:

daemon xfs -droppriv -daemon -port 7100


2.修改X访问权限 : /etc/X11/xdm/Xaccess,

#* # any host can get a login window



去掉#:

* # any host can get a login window


3.修改 /etc/X11/gdm/gdm.conf. 激活 XDMCP( X Display Manager Control
Protocol,X显示监控协议)
这样能监听远端X请求 .
改变:

[xdmcp]
Enable=0

到:

Enable=1

确定 "Port=177" 在最后一行.

4.修改 /etc/inittab : (如果你的Linux已经设为X登录,略去此项)

id:3:initdefault:

到:

id:5:initdefault:



5.修改 /etc/X11/XServers ,加入下面几行取得4个xdm 登录(X Display
Manager)或者
gdm(GNOME X display manager)
进程,可以允许四个不同用户登录,当然你可以允许更多
用户 .
:0 A local /usr/X11R6/bin/X :0
:1 B local /usr/X11R6/bin/X :1
:2 C local /usr/X11R6/bin/X :2
:3 D local /usr/X11R6/bin/X :3

6.找到 /etc/X11/xdm/Xsetup_0 ,chmod 755 使该文件非root也可执行.

7.修改 /etc/X11/XF86Config ,改:

FontPath "unix:-1"



到:

FontPath "unix:7100"


8.加以下行到/etc/inittab末尾:

x:5:respawn:/usr/bin/gdm


好了,到此Server端告一段落,restart后如果出现下列错误:
_ FontTransSocketUNIXConnect: Can't connect: errno = 111
failed to set dafault font path 'unix:-1'
Fatal server error:
could not open default font 'fixed'
则在/etc/X11/XF86Config加入以下行:

FontPath "/usr/lib/X11/fonts/75dpi/"
FontPath "/usr/lib/X11/fonts/misc/"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"


二, 客户端:

1, Linux

Linux下的本地X Server通过网络XDMCP启动有三种方式:
Direct query(直接询问),Broadcast(广播)和Indirect query(间接询问)三种.
直接询问直接建立和服务器的通讯,广播则发播询问并和第一个回应建立通讯,
间接询问是通过特定主机间接建立和X服务器的通讯.

一般运行X在直接询问模式下只要简单键入:

X -quiet -query the.host.address <--键入X服务器的IP或主机名

就可以取得和在本地同样的X登录画面了.

2, Windows

Windows下支持XDMCP的X
Server有不少,最好的当然是Exceed了,这是个商业软件,
好象也找不到demo版.我在网上找了一下,有个X-ThinPro的X Server支持XDMCP,
demo版有一小时的应用,可以到http://lab-pro.com/下载,很小只有6M左右
(Exceed7.0要100多M).



附录:


1.有一篇很好的关于怎样把486转换成X终端的文章:
http://www.menet.umn.edu/~kaszeta/unix/xterminal/index.html
2.关于Linux无盘工作站的一个套件(免费下载,也有rpm包),建议有兴趣的看看:
http://www.solucorp.qc.ca/xterminals/




--
It's better to light a candle than to curse the darkness!


※ 来源:·福州大学庭芳苑BBS bbs.fzu.edu.cn·[FROM: 218.193.123.*]
发表于 2005-3-15 22:06:05 | 显示全部楼层
很好,谢谢!
回复

使用道具 举报

发表于 2005-8-10 02:32:29 | 显示全部楼层
xwindows
回复

使用道具 举报

 楼主| 发表于 2005-8-10 12:28:32 | 显示全部楼层
楼上的,注意力不要放到这些无关紧要的问题上阿
回复

使用道具 举报

发表于 2005-8-29 14:43:33 | 显示全部楼层
收藏下。
回复

使用道具 举报

发表于 2005-10-21 21:21:30 | 显示全部楼层
按上面的,做了,好像 还启不来,有做过的吗??
回复

使用道具 举报

发表于 2005-10-22 20:29:42 | 显示全部楼层
我在远端登陆后。(windows 下用的SecureSCR)
abc@localhost abc]$ startx
Using authority file /home/abc/.Xauthority
Writing authority file /home/abc/.Xauthority
Using authority file /home/abc/.Xauthority
Writing authority file /home/abc/.Xauthority


Fatal server error:
PAM authentication failed, cannot start X server.
        Perhaps you do not have console ownership?


When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to [email protected].

Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
giving up.
xinit:  unable to connect to X server
xinit:  No such process (errno 3):  Server error.
Couldnt get a file descriptor referring to the console
[abc@localhost abc]$ 仍然进不了图形界面????
回复

使用道具 举报

发表于 2005-10-22 20:32:07 | 显示全部楼层
另外
------------------------------------------
1.修改X字体服务器脚本: /etc/rc.d/init.d/xfs , 改变端口 ,
daemon xfs -droppriv -daemon -port -1
改成:
daemon xfs -droppriv -daemon -port 7100
--------------------------------------
只有如下的行
rm -fr /tmp/.font-unix
      daemon xfs -droppriv -daemon
      ret=$?
      [ $ret -eq 0 ] && touch /var/lock/subsys/xfs
      echo
      return $ret
请问如何改之??????
回复

使用道具 举报

发表于 2005-10-28 18:53:00 | 显示全部楼层
有做过的朋友吗??
回复

使用道具 举报

发表于 2005-10-29 21:22:28 | 显示全部楼层
只弄过ssh
回复

使用道具 举报

发表于 2005-11-1 19:13:15 | 显示全部楼层
[quote:45e14aa0f7="duotaiya"]只弄过ssh[/quote]

实在是没办法了
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-4-25 18:27 , Processed in 0.083076 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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