歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> X window遠程啟動

X window遠程啟動

日期:2017/3/6 15:29:07   编辑:關於Unix
X window 的遠程啟動配置文件, 服務器 端主要有以下幾個: 1、/etc/X11/xdm/Xaccess 2、/etc/X11/gdm/gdm.conf 3、/etc/X11/xdm/Xserver 4、/etc/X11/xdm/Xsetup_0 5、/etc/inittab 客戶端必須下載 Xmanager2.0 (http://www.netsarang.com/download/downlo

X window 的遠程啟動配置文件,服務器端主要有以下幾個:

1、/etc/X11/xdm/Xaclearcase/" target="_blank" >ccess

2、/etc/X11/gdm/gdm.conf

3、/etc/X11/xdm/Xserver

4、/etc/X11/xdm/Xsetup_0

5、/etc/inittab

客戶端必須下載 Xmanager2.0 (http://www.netsarang.com/download/download.html)或在GOOGLE上搜索下載。

1、/etc/X11/xdm/Xaccess的配置:

vi Xaccess 找到下面一句話,將其注銷的功能打開,即去掉下面紅顏色的"#"

# * #any host can get a login window

2、/etc/X11/gdm/gdm.conf的配置:

vi gdm.conf 編輯[xdmcp] 下的兩段內容:

[xdmcp]
# Distributions: Ship with this off. It is never a safe thing to leave
# out on the net. Alternatively you can set up /etc/hosts.allow and
# /etc/hosts.deny to only allow say local access.
Enable=true ............ 原配置: Enable=false
# The port. 177 is the standard port so better keep it that way
Port=177 .............原配置就是這樣的,只是在遠程啟動X WINDOW的時候此端口必須開放,保持原有配置不變。

3、/etc/X11/xdm/Xserver的配置:

vi Xserver 增加以下紅顏色配置:

# $Xorg: Xserv.ws.cpp,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
#
# Xservers file, workstation prototype
#
# This file should contain an entry to start the server on the
# local display; if you have more than one display (not screen),
# you can add entries to the list (one per line). If you also
# have some X terminals connected which do not support XDMCP,
# you can add them here as well. Each X terminal line should
# look like:
# XTerminalName:0 foreign
#
:0 local /usr/X11R6/bin/X .................此行以上(包括此行)信息是默認系統就有的,不需要更改,
192.168.8.134:0 foreign
192.168.8.21:0 foreign ..................紅顏色兩行為增加的,指定哪台機器能使用X window來連接。

4、/etc/X11/xdm/Xsetup_0 的權限的確認:

查看/etc/X11/xdm/Xsetup_0文件 確認其權限是 755,若不是則更改為755 ; (默認情況下,權限就是755了)

5、/etc/inittab 的配置:

vi inittab 修改其啟動方式為 “5” ---X WINDOW 啟動方式。

----------------以上配置是在LINUX服務器上的配置;以下是在任意一台(以上配置3中配置的IP)機器(WINDOWS)通過Xmanager軟件來進行X WINDOW連接的配置。

6、在windows系統的客戶端安裝Xmanager軟件,打開其裡面的Xbrowser---NEW--XDMCP--(在QUERY中選擇,Indirect;在HOST中鍵入LINUX服務器的IP地址;在PORT中使用默認的端口177)---其他選用默認配置直到結束。

7、雙擊新創建的連接,X Window的登陸界面就顯示出來了。

Copyright © Linux教程網 All Rights Reserved