Thursday, January 7, 2010

Connect to AIX 6.1 with XDMCP Query

Remote dtlogin is disabled in AIX 6.1. To make dtlogin listen UDP 177 port for remote connections, you have to make following modifications.

1. Comment out this line in the /usr/lib/X11/xdm/xdm-config
DisplayManager.requestPort: 0

2. Comment out these three lines in the /usr/lib/X11/xdm/Xaccess
* #any host can get a login window
* CHOOSER BROADCAST #any indirect host can get a chooser
LISTEN * ff02:0:0:0:0:0:0:12b

3. Comment the "local" line and add
:0 foreign /usr/lpp/X11/defaults/xserverrc -T -force :0

4. Be sure X11.Dt filesets are installed.

5. startsrc -s dtsrc

6. ps -ef|grep dtlogin
netstat -an|grep 177
tail /var/dt/Xerrors

If everything is ok, you can try it with Exceed or from a Linux PC's xterm "X :0 -query IP".

Ignore "A graphics adapter was not found." errors. You can get rid of it by adding "DT_NO_DISPLAY_CHECK=true" to /etc/environment.

dtlogin listens the UDP 177 port, then redirects connection back to the source's 6000 port.

No comments: