Operating System - HP-UX
1832777 Members
3288 Online
110045 Solutions
New Discussion

Re: XDMCP Indirect on Xserver init

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

XDMCP Indirect on Xserver init

Hi, got a 700 series that I'd rather use as an xterminal and get XDM to present a chooser with only 5 specified hosts to log into, including the 700 series itself.
Now, I can't seem to get the Xstartup not to present a graphical console with a direct login to the 700 series.
In order to get my indirect, I must log into the 700, end the Xsession either by changing runlevel or killing X.. then launching X -indirect to get my chooser.

I have tried with varying levels of success to modify the Xaccess, Xstartup to get an indirect chooser, but always the direct login appears.

How do I configure the X session to present this chooser on bootup with just the list of hosts I want. A broadcast will not do (too many servers)

Thanks,
Bill

It works for me (tm)
9 REPLIES 9
Alex Glennie
Honored Contributor

Re: XDMCP Indirect on Xserver init

Bill,

could this be 1/2 way there ?

/usr/bin/X11/X :0 -indirect

see man Xservers ...... at a guess you may need to edit the /usr/dt/config/Xservers file and the Xaccess file.
Kenneth Platz
Esteemed Contributor

Re: XDMCP Indirect on Xserver init

Bill, here is what you need to do:

1) Copy /usr/dt/config/Xservers to /etc/dt/config
2) Edit /etc/dt/config/Xservers, and change the "local" entry to the following:

* local local@console /usr/bin/X11/X :0 -indirect localhost

3) Create /etc/dt/config/Xaccess with the following contents:

* # Grant access to all remote displays
* CHOOSER host1 host2 host3 host4 host5 # Give chooser list of 5 hosts

4) Stop and restart CDE:

# /sbin/init.d/dtlogin.rc stop
# /sbin/init.d/dtlogin.rc start

This should cause your system to come up with a listing of your 5 hosts (host1 through host5)

I hope this helps.
I think, therefore I am... I think!
Joseph C. Denman
Honored Contributor

Re: XDMCP Indirect on Xserver init

Hi Bill,

Been a while, but I think I did this at one time or another. Seem like I had a problem with the Xservers entry. If you use as stated above, I think the Xserver on the 700 will reset when you try to connect to another host, causing you to get into a continuous loop of logining onto yourself. What I did was change the Xserver as below.

local@console /usr/bin/X11/X :0 -indirect

This will cause the chooser to be the first thing that appears on your console.

Change the Xaccess file as stated above.

Also, I think I had a problem with the getty on the console resetting my session. I think to fix that, I commented out the "exec getty" from the /usr/dt/config/dtrc.d/90_dtlogin_st.

Hope this helps...


...jcd...
If I had only read the instructions first??
Joseph C. Denman
Honored Contributor

Re: XDMCP Indirect on Xserver init

sorry...just remembered.

I had problems with running xserver and chooser on the 700 at the same time.

Disregard the Xserver info. What I did was comment out the Xserver entry so dtlogin would not start cde. Then I added lines to /sbin/init.d/dtlogin.rc to start the chooser.

/usr/bin/X11/X :0 -inherent &


...jcd...
If I had only read the instructions first??
Bill McNAMARA_1
Honored Contributor

Re: XDMCP Indirect on Xserver init

I'll just go in to test this now, I'll give the remaining points when it works!
Thanks for the help, wait for the info...

Bill
It works for me (tm)
Joseph C. Denman
Honored Contributor

Re: XDMCP Indirect on Xserver init

Alright Bill, I just signed on to the box. This is what I did to get the chooser to come on at bootup.

comment out the line in Xserver
modify the Xaccess as stated above.

and I tought I had added a line to the dtlogin.rc, however, that was incorrect. Adding a line to the dtlogin.rc will not work. I created a new rc call for the chooser called x11chooser. I used much of the same code as the dtlogin.rc.

Then I created the links for the K&S files in the rc2.d dir
If I had only read the instructions first??
Bill McNAMARA_1
Honored Contributor

Re: XDMCP Indirect on Xserver init

Yea, couln't get any of the above suggestions to work, so Joe could you attach the x11chooser script and link names so I can try that...

Thanks,
Bill
It works for me (tm)
Joseph C. Denman
Honored Contributor
Solution

Re: XDMCP Indirect on Xserver init

Here you go Bill. The file contains the text for all the scripts (3). A lot of the comments talk about dtlogin because that is where I copied the code. You will need to create you K&S links in the rc directories. Start and stop at the same rc as dtlogin.

There is only one thing to keep in mind. The chooser will come up at boot. This may be a hurt you if you start running to problems with your 700. What may be better than starting the chooser at boot, is to have the console login come up at boot. Then sign in as root and have the .profile kick off the chooser.

I might would add after PATH in .profile:

echo "Do you wish to run chooser \c"
read choice
if [ ${choice} = y ]
then
exec /usr/bin/X11/X :0 -indirect 700hostname
else
the rest of the profile
fi

That would do the same thing, but give you the console on initial boot.

Hope this helps.

...jcd...
If I had only read the instructions first??
Bill McNAMARA_1
Honored Contributor

Re: XDMCP Indirect on Xserver init

Thanks Joe,
works like a charm.
relating to having a problem, I can always boot into single user mode (or just ignite it!)

Thanks,
bill
It works for me (tm)