1833770 Members
2084 Online
110063 Solutions
New Discussion

Re: exporting display

 
SOLVED
Go to solution
Ionut Grigorescu_2
Super Advisor

exporting display

Hi,

I'm using a Linux machine to connect to an HP-UX server. I want to know if it's possible to export the whole screen of HP-UX server on my Linux machine's display - something like Reflection X on Windows based systems. With export (or setenv) DISPLAY I can start only an X-Window application on the HP-UX server and view on the Linux screen.
Thank you in advance,
john
If it weren't for STRESS I'd have no energy at all
7 REPLIES 7
Stefan Farrelly
Honored Contributor

Re: exporting display


Sure, on your Linux machine disable X (probably need to change run level to say 2 or select command line login from X login).

Now, from the shell prompt do;

X -query

This will start X on your Linux box but from the HP server - so you will have the HP CDE Login screen - as if you were using an HP workstation! You can do the same in reverse of course.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Olav Baadsvik
Esteemed Contributor

Re: exporting display


Hi,

yes it is possible. You can get a
CDE login-screen from your hp-ux server onto
your Linux machine.

What you do is the following:

on Linux start the x-server like this:
/usr/bin/X11/X -query

where hostname is the hp-ux server

If you have the fonst that CDE requires on
the Linux this will work, if not you
will have to configure the x-server on Linux
to access a font-server on one of your hp-ux
machines.

Olav
Ionut Grigorescu_2
Super Advisor

Re: exporting display

Hi, I have tried to modify /etc/X11/XF86Config-4 - I added a line
FontPath "tcp/10.1.30.12:7000"

but still doesn't work : for shutdown the Xs server on Linux I have used init 3 then start it again with X -query 10.1.30.12 and then the display hanged with the sandglass symbol on the screen.

How can I check if the Xfont server runs on HP machine and listen to port 7000?
If it weren't for STRESS I'd have no energy at all
Stefan Farrelly
Honored Contributor

Re: exporting display


check the file /etc/rc.config.d/xfs
It should contain;
RUN_X_FONT_SERVER=1

Then run; /sbin/init/.d/xfs start

Now you can see the process; ps -ef|grep xfs
Im from Palmerston North, New Zealand, but somehow ended up in London...
Alex Glennie
Honored Contributor

Re: exporting display

use the methods above to make the linux box act as an xterminal, to have a true reflection like setup use VNC or Xnest
Olav Baadsvik
Esteemed Contributor
Solution

Re: exporting display

Hi, Perform the following steps to provide the CDE fonts:

1. Log in on the HP-UX machine.

2. Edit the configuration file of the font server:
# cd /etc/X11/fs
# vi config
add the directory /usr/dt/config/xfonts/C to the "catalogue"
line (comma seperated list)

3. Copy /usr/dt/config/Xsetup to /etc/dt/config (if it doesn't already exist

4. Edit /etc/dt/config/Xsetup and add the following line at the end of
the file:
$XDIR/xset fp+ tcp/:7000
Example: $XDIR/xset fp+ tcp/192.15.32.5:7000

5. Edit /etc/rc.config.d/xfs and set RUN_X_FONT_SERVER to 1.

6. Restart the font server
# /sbin/init.d/xfs stop
# /sbin/init.d/xfs start

7. Check with the following command that xfs is running:

# ps -ef | grep xfs

8. Log in again on the PC. Check with the command xset -q that
the fontpath now includes a reference to the fonserver. You shuold
find this in the font-path:

tcp/:7000

where ip-adresse is the address to the server you specified in step 4.


Olav


Ionut Grigorescu_2
Super Advisor

Re: exporting display

thank you all - case closed.
Alex: I can use VNC, of course, but I don't want to install it on HPUX machine - I use to test some software on it from a third-party and they can claim that their SW doesn't work because of the VNC - stupid, but it can happen.
If it weren't for STRESS I'd have no energy at all