- 论坛徽章:
- 0
|
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:
并将最后一行改为:
#red hat
x:5:respawn:/usr/bin/gdm -nodaemon
#red hat A3(企业版)
x:5:respawn:/usr/bin/gdm-binary -nodaemon
-------------------------
4.如果有防火墙,关闭防火墙,或者修改防火墙配置文件/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
5. 重新启动RedHat Linux
服务器配置完成
(关闭177端口)
Normal
0
7.8 磅
0
2
false
false
false
EN-US
ZH-CN
X-NONE
MicrosoftInternetExplorer4
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.5pt;
mso-bidi-font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-font-kerning:1.0pt;}
#iptables -I INPUT
-i eth0 -p udp 192.168.2.155 --dport 177 -j DROP
(打开177端口)
#iptables -I INPUT -i eth0 -p udp 192.168.2.155 --dport 177 -j ACCEPT
6.在/etc/hosts文件内加上Windows本机IP地址、计算机名
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/41327/showart_2004603.html |
|