xdmcp

1. ipchains / iptables configuration, simply use > iptables -F
2. ssh, ping or others to check the remote host is online
3. let xdmcp open listen to port 177. edit /etc/X11/xdm/xdm-config and comment out 
        DisplayManager.requestPort:     0
        to
        ! DisplayManager.requestPort:     0
4. the host/ip allowed to access xdmcp. edit /etc/X11/xdm/Xaccess and modify 
        #*    # any host can get a login window
        to
        #*    # any host can get a login window
5. xdmcp start to work. edit /etc/X11/gdm/custom.conf and add line after [xdmcp]
        Enable=true
   looks like:
        [xdmcp]
        Enable=true       
   custom.conf is cofiguration of gdm in version 2.20.3. the configuration file
   of old gdm release is named by gdm.conf. see man gdm for more info
6. check /etc/X11/xdm/Xservers is set to 444 
   check /etc/X11/xdm/Xsetup_0 is set to 755
7. start gdm server at console.  > /usr/sbin/gdm
   if gdm is runing before configuration is modified, use this command to restart > /usr/sbin/gdm-restart

8. with Xming X Window Server , login linux free in ms windows . refer to here
 to learn more about Xming. otherwise XManager , a business software with
trial version, can be used to explore linux, too.


reference:
http://blog.chinaunix.net/u2/87597/showart_1897982.html
http://projects.gnome.org/gdm/docs/2.18/overview.html#xdmcp
http://www.faqs.org/docs/Linux-HOWTO/XDMCP-HOWTO.html#AEN46
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在CentOS上安装XDMCP(X Display Management Control Protocol)用于远程管理和控制桌面环境,首先确保系统已经安装了基本的X Window System和网络服务。以下是安装步骤: 1. 更新系统: ``` sudo yum update -y ``` 2. 安装必要的软件包: ``` sudo yum install xorg-x11-server-Xvnc xauth xdmcp-utils net-tools -y ``` 3. (可选)配置防火墙以允许XDMCP流量: 使用firewalld: ``` sudo firewall-cmd --permanent --add-service=xdmcp sudo firewall-cmd --reload ``` 或者使用iptables: ``` sudo iptables -A INPUT -p udp --dport 177 --jump ACCEPT ``` 4. 配置VNC服务器(对于xrdp替代XDMCP的情况): 如果你想使用VNC而非XDMCP,安装xrdp并配置它: ``` sudo yum install xrdp -y sudo vi /etc/xrdp/xrdp.ini (添加或编辑[xrdp]部分,如启用密码保护) sudo systemctl restart xrdp ``` 5. 配置XDMCP客户端: 修改`/etc/xdm/XF86Config`文件,确保`UseMITSHM`设置为`n`,因为CentOS不支持MIT-SHM共享内存。 6. 启动和启用XDMCP服务: ``` sudo systemctl start xdmcpd sudo systemctl enable xdmcpd ``` 7. 可能需要设置NFS共享供远程用户访问: ``` sudo yum install nfs-utils -y sudo vi /etc/exports (配置你需要共享的目录) sudo systemctl restart nfs-server ``` 安装完成后,你可以通过运行`vncviewer [server-ip]:[port]`来连接到配置好的VNC服务器,如果使用的是XDMCP,则需要配置远程终端服务器上的显示管理器以支持XDMCP连接。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值