Chinaunix首页 | 论坛 | 博客
  • 博客访问: 455020
  • 博文数量: 144
  • 博客积分: 5675
  • 博客等级: 大校
  • 技术积分: 1512
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-20 10:46
文章分类

全部博文(144)

文章存档

2014年(1)

2013年(1)

2012年(12)

2011年(39)

2010年(48)

2009年(29)

2008年(14)

我的朋友

分类: LINUX

2009-11-15 10:54:58

XManager 系统配置简介
服务器:Red Hat Linux
终端:Xmanager 1.3.9
使用方法:
服务器上操作:
-------------------------------------------------------------------------
1.修改X字体服务器脚本: /etc/rc.d/init.d/xfs , 改变端口 ,
  daemon xfs -droppriv -daemon -port -1
  改成:
  daemon xfs -droppriv -daemon -port 7100
-------------------------------------------------------------------------
2. 修改 /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]
Enable=0 或Enable=false
修改为:
[xdmcp]
Enable=1 或Enable=true
并确保以下信息存在:
Port=177
------------------------
4: 修改/etc/inittab,将
id:3:initdefault:
修改为:
id:5:initdefault:
并将最后一行改为:
 #red hat
x:5:respawn:/usr/bin/gdm  -nodaemon
#red hat A3(企业版)
x:5:respawn:/usr/bin/gdm-binary -nodaemon
-------------------------
5:修改 /etc/X11/XServers ,加入下面几行取得4个xdm 登录(X DisplayManager)或者
  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
#以上设置可以多个Client访问
-------------------------------------------------------------------
6: 确保/etc/X11/xdm/Xservers的属性为444,/etc/X11/xdm/Xsetup_0的属性为755。
-------------------------
7.修改  /etc/X11/XF86Config ,改:
  FontPath  "unix:-1"
  到:
  FontPath  "unix:7100"
8.修改防火墙配置文件/etc/sysconfig/ipchains (iptables),在文件头部加入如下内容,
# If you want to use GNOME/KDE, add the following line.
-A input -p udp -s 0/0 -d 0/0 177 -j ACCEPT
9. 重新启动RedHat Linux
好了,到此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"
 

服务器:FreeBSD
终端:Xmanager 1.3.9
使用方法:
服务器上操作:
-----------------------
1. /usr/X11R6/lib/X11/xdm/xdm-config
注释掉这句:
!DisplayManager.requestPort: 0
-----------------------
2. /usr/X11R6/lib/X11/xdm/Xservers
注释掉这句:
#:0 local /usr/X11R6/bin/X
-----------------------
3. /usr/X11R6/lib/X11/xdm/Xaccess
把这句的注释去掉:
* #any host can get a login window
-----------------------
4. /etc/ttys中
修改如下:
ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm on secure
-------------------------------
服务器:SunOS
终端:Xmanager 1.3.9
使用方法:
服务器上操作:
------------------
由于服务器默认启动xdm,无需更改
------------------
以上,终端连接的时候,可以使用xbrowser直接输入ip地址进行连接!
服务器:Red Hat Linux
终端:Xmanager 1.3.9
使用方法:
服务器上操作:
------------------------
1. 修改 /etc/X11/xdm/Xaccess,将下面的行:
#* # any host can get a login window
改为:
* # any host can get a login window
------------------------
2. 修改/etc/X11/gdm/gdm.conf,找到下面的信息:
[xdmcp]
Enable=0 或Enable=false
修改为:
[xdmcp]
Enable=1 或Enable=true
并确保以下信息存在:
Port=177
------------------------
3: 修改/etc/inittab,将
id:3:initdefault:
修改为:
id:5:initdefault:
并将最后一行改为:
x:5:respawn:/usr/bin/gdm
-------------------------
4: 确保/etc/X11/xdm/Xservers的属性为444,/etc/X11/xdm/Xsetup_0的属性为755。
-------------------------
服务器:FreeBSD
终端:Xmanager 1.3.9
使用方法:
服务器上操作:
-----------------------
1. /usr/X11R6/lib/X11/xdm/xdm-config
注释掉这句:
!DisplayManager.requestPort: 0
-----------------------
2. /usr/X11R6/lib/X11/xdm/Xservers
注释掉这句:
#:0 local /usr/X11R6/bin/X
-----------------------
3. /usr/X11R6/lib/X11/xdm/Xaccess
把这句的注释去掉:
* #any host can get a login window
-----------------------
4. /etc/ttys中
修改如下:
ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm on secure
-------------------------------
服务器:SunOS
终端:Xmanager 1.3.9
使用方法:
服务器上操作:
------------------
由于服务器默认启动xdm,无需更改
------------------
以上,终端连接的时候,可以使用xbrowser直接输入ip地址进行连接!
 
二、 如果允许Root用户连接到XMANAGER 需要修改以下内容:
 
 
  # vi defaults.conf
 
[security]
# Allow root to login.  It makes sense to turn this off for kiosk use, when
# you want to minimize the possibility of break in.
AllowRoot=true
# Allow login as root via XDMCP.  This value will be overridden and set to
# false if the /etc/default/login file exists and contains
# "CONSOLE=/dev/login", and set to true if the /etc/default/login file exists
# and contains any other value or no value for CONSOLE.
AllowRemoteRoot=true
# This will allow remote timed login.
AllowRemoteAutoLogin=false
# 0 is the most restrictive,
文章出处:DIY部落()
阅读(1911) | 评论(0) | 转发(0) |
0

上一篇:U盘量产工具

下一篇:FreeBSD的常用命令

给主人留下些什么吧!~~