Thursday 3 May 2007

Kubuntu export DISPLAY from AIX to KDE

To execute the X programs from a telnet console of AIX , you have to configure the service kdm on Kubuntu.
The "X" request of AIX to the kde, have need to connect at the ports TCP 6000 and UDP 177, manged from XDMCP.
To enable the incoming request of XDMCP , modify /etc/kde3/kdm/kdmrc file , sample :

1)
[Xdmcp]
# Whether KDM should listen to incoming XDMCP requests.
# Default is true
Enable=true
# The UDP port on which KDM should listen for XDMCP requests. Do not change.
# Default is 177
#Port=177
......................................

2)# Core config for local displays
[X-:*-Core]
.............................
# Additional arguments for the X-servers for local sessions.
# This string is subject to word splitting.
# Default is ""
#ServerArgsLocal=-nolisten tcp
..................................

Restart the KDE Session with CTRL-ATL-BACK/SPACE and check the listening ports with command netstat -na , sample :

tcp6 0 0 :::6000 :::* LISTEN
udp6 0 0 :::177 :::*


Check the environment variable $DISPLAY , default is DISPLAY=":0.0"
Grant the access of AIX to your Xserver with the command xhost , sample
#[KUB]>xhost +[hostname]
[hostname] being added to access control list

Connect to server AIX :
#[KUB]> telnet [IP_SERVER_AIX]

Configure a environment variable $DISPLAY , sample :
#[AIX]> export DISPLAY=[IP_ADDRESS_KUBUNTU]:0.0

launch the "xterm" program to check the X request to your KDM X Server

#[AIX]>xterm

Labels: , ,