If the dtlogin daemon cannot start the Xsun or Xnewt server properly, the following configuration files might be corrupted:
/etc/dt/config/Xservers
/etc/dt/config/Xconfig
The following procedure explains how to correct this problem.
This procedure shows output from a simplified example. Your
output may have tens of lines between the BEGIN SUNRAY
CONFIGURATION
and END SUNRAY
CONFIGURATION
comments.
As a user of the Sun Ray server, open a shell window and
compare the /usr/dt/config/Xservers
and
/etc/dt/config/Xservers
files.
% diff /usr/dt/config/Xservers /etc/dt/config/Xservers
This command compares a known good file with the suspect file. The output should be similar to the following example.
106a107,130 > # BEGIN SUNRAY CONFIGURATION > :3 SunRay local@none /etc/opt/SUNWut/basedir/lib/utxsun :3 -nobanner . . > :18 SunRay local@none /etc/opt/SUNWut/basedir/lib/utxsun :18 -nobanner > # END SUNRAY CONFIGURATION
The first line of output contains 106a107,130. The 106 means that the two files are identical to the 106th line of the files. The a107,130 means that the information on lines 107 through 130 of the second file would have to be added to the first file to make it the same as the second file.
If your output shows the first three digits to be a number
less than 100, the
/etc/dt/config/Xservers
file is corrupt.
Compare the /usr/dt/config/Xconfig
and
/etc/dt/config/Xconfig
files.
% diff /usr/dt/config/Xconfig /etc/dt/config/Xconfig
The output should be similar to the following example.
156a157,180 > # BEGIN SUNRAY CONFIGURATION > Dtlogin.*_8.environment: SUN_SUNRAY_TOKEN=ZeroAdmin.m1.at88sc1608.6d0400aa . . > Dtlogin.*_9.environment: SUN_SUNRAY_TOKEN=ZeroAdmin.m1.at88sc1608.a10100aa > # END SUNRAY CONFIGURATION
If your output shows the first three digits to be a number
less than 154, the /etc/dt/config/Xconfig
file is corrupt.
If either file is corrupted, continue this procedure to replace the configuration files.
Become superuser on the Sun Ray server and shut down the Sun Ray Client services.
Replacing the Xservers
file requires
shutting down all Sun Ray Client services. Remember to
inform users of the outage.
# /opt/SUNWut/sbin/utstop
Replace the Xservers
and
Xconfig
files as appropriate.
# /bin/cp -p /usr/dt/config/Xservers /etc/dt/config/Xservers # /bin/cp -p /usr/dt/config/Xconfig /etc/dt/config/Xconfig
For headless servers, comment out or remove the
:0
entry from the
Xservers
file.
Re-initialize the authentication policy.
# /opt/SUNWut/sbin/utstart -c
The extra lines within the previous
Xservers
and Xconfig
files are automatically rebuilt.