Operating System - HP-UX
1755324 Members
3435 Online
108831 Solutions
New Discussion юеВ

Turn a C3000 into an X terminal

 
SOLVED
Go to solution
Daniel Gowans
Advisor

Turn a C3000 into an X terminal


I have a C3000 running HP-UX 11i that I want to use as a web server. However, it would also be useful as a terminal for one of our J6000s. How do I set it up as a terminal using XDMCP?

I set up a 10.20 box this way:
change /usr/local/bin/startx
add -query HOSTNAME to the /usr/bin/X11/X line.

However, this 11i machine doesn't seem to be at all the same. startx isn't in the /etc/inittab file. How do I turn an 11i workstation into an Xterminal on bootup?

Thanks!
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: Turn a C3000 into an X terminal

You have to load the font server at startup

/etc/rc.config.d/xfs


RUN_X_FONT_SERVER=1


save the file and restart the box.

Now its an X Server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Daniel Gowans
Advisor

Re: Turn a C3000 into an X terminal

I want to run the font server on the J6000 or the C3000? I don't need an XServer, I need to be an Xterminal/Xclient on the C3000. The J6000 is set up just right as I explain below.

Here is what I have tried, according to this post:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcb2e06350fe2d61190050090279cd0f9,00.html

I changed /etc/inittab as it explains by adding the line:
init:34:respawn:/usr/bin/X11/X :0 -query HOSTNAME

And changing the line in /etc/rc.config.d/desktop from
DESKTOP=CDE to

DESKTOP=

After rebooting the machine, the login screen didn't come up (the startup log showed [N/A], but just the console login. I logged in as root and ran the command manually:

/usr/bin/X11/X :0 -query HOSTNAME

HOSTNAME is the name of the J6000 machine. The dtlogin screen came up, showed that it was the J6000, and everything was working just like I wanted. How do I get it to run the X -query command above automatically on startup?
Denver Osborn
Honored Contributor

Re: Turn a C3000 into an X terminal

Since you had to manually run the cmd to get it running, what's your default runlevel set to? If it's level2, then it won't be started from the inittab unless you're at runlevel 3 or 4 (per your existing inittab entry).

verify the current runlevel
# who -r

the default is set in the inittab
# grep default /etc/inittab
init:2:initdefault:

you can also change your entry to:

init:234:respawn:/usr/bin/X11/X :0 -query HOSTNAME

Hope this helps,
-denver
Alex Glennie
Honored Contributor

Re: Turn a C3000 into an X terminal

On the C3000

cp /usr/dt/config/Xservers -> /etc/dt/config/Xservers

vi Xservers (the one in /etc)

last line should read :

* Local local@console /usr/bin/X11/X -query

wq!

/sbin/init 2
/sbin/init 3

just tested above in ukrc on a 715 @ 11.00, its now showing a gnome login screen from my J6700 so reasonably confident it should work ;-)
Alex Glennie
Honored Contributor

Re: Turn a C3000 into an X terminal

Oops when I said tested I saw the login screen but didn't attempt to login .....

just tried it, not looking to good but found the answer : basically you need to disable CDE from starting locally but also allow X to startup and display your remote system :

try Leifs advice ->

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x938793e260b0d611abdb0090277a778c,00.html
Bill McNAMARA_1
Honored Contributor
Solution

Re: Turn a C3000 into an X terminal

This worked (and still works) for me:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x87f8a12d6d27d5118fef0090279cd0f9,00.html

Later,
Bill
It works for me (tm)
Daniel Gowans
Advisor

Re: Turn a C3000 into an X terminal


Thanks everybody. I tried some of your ideas, and found that the /etc/inittab entry worked pretty well. I was tempted to add /sbin/rc3.d Sxxx scripts and Kxxx scripts, but just added this line into inittab:

xt:34:respawn:/usr/bin/X11/X :0 -query HOST

and took out the CDE from the /etc/rc.config.d/desktop file.

It seemed to work this last time, where it didn't yesterday. The only difference was using "xt" in the inittab entry instead of "init" - or maybe I didn't wait long enough the first time.

Thanks for all your advice. I always learn a lot when I ask questions here!
Steven E. Protter
Exalted Contributor

Re: Turn a C3000 into an X terminal

I think you'd be better off getting the /sbin/rc3.d script to work.

You may have problems with the methodology you've used.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com