LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Server Status can not display by XDMCP connect (http://www.linuxquestions.org/questions/linux-networking-3/server-status-can-not-display-by-xdmcp-connect-221646/)

taisuke 08-24-2004 04:04 AM

Server Status can not display by XDMCP connect
 
Hello,

I have a question.
When I use Exceed or Exceed onDemand by XDMCP-Broadcast,
"XDMCP Display Manager Chooser" displayed.

In my environment, there is RedHatLinux in the list.

=====================================================
Host Name | Host Address | Status
Red73 172.16.50.73 Linux 2.4.18-3
ultra1 172.16.2.86 2 users load: 0.0, 0.0, 0.1
=====================================================

ultra1 is solaris2.8.
In RedHatLinux, I would like to display status in the
same way as Solaris.
I already run xdm on Linux.
I can connect RedHat7.3 by XDMCP.

I make Xwilling file.

************************************************************
[root@Red73 xdm]# cat /etc/X11/xdm/Xwilling
#!/bin/sh
#
# $XFree86$

# The output of this script is displayed in the chooser window.
# (instead of "Willing to manage")

load="`uptime|sed -e 's/^.*load[^0-9]*//'`"
nrusers="`who|cut -c 1-8|sort -u|wc -l|sed 's/^[ ]*//'`"
s=""; [ "$nrusers" != 1 ] && s=s

echo "${nrusers} user${s}, load: ${load}"
[root@Red73 xdm]#
************************************************************

I edited /etc/inittab.
*****************************************
# Run xdm in runlevel 5
# xdm is now a separate service
#x:5:respawn:/etc/X11/prefdm -nodaemon <- comment out

x:5:respawn:/usr/bin/X11/xdm -nodaemon <- add line
*****************************************

Then, status changed as follows.

=====================================================
Host Name | Host Address | Status
Red73 172.16.50.73 this account is currently not available
ultra1 172.16.2.86 2 users load: 0.0, 0.0, 0.1
=====================================================

I want to display Status.
Do someone know the method?
Please help me.

taisuke 08-26-2004 09:37 PM

I edited /etc/X11/xdm/xdm-config

DisplayManager.willing: su nobody -c /etc/X11/xdm/Xwilling

->DisplayManager.willing: su nobody -s /etc/X11/xdm/Xwilling
(-c -> -s)

So I can display status.

This appears to be a bug with xdm. Details can be found at
https://bugzilla.redhat.com/bugzilla...g.cgi?id=86505


All times are GMT -5. The time now is 12:51 AM.