1819805 Members
2904 Online
109607 Solutions
New Discussion юеВ

Linux Workstation - HPUX

 
Aaron_137
New Member

Linux Workstation - HPUX

I have searched this forums for the last three weeks and have not found the answer to my question which is;

How to I use my linux terminal to connect to HP UX? I have tried xterm, xhpterm and so on... I am just starting out with HPUX because we had to migrate from MPE. Reflections 4 is to old I think since it doesn't really work and would like to go native from linux. When we were on MPE we had a block menu system which has been implemented on the HP UX. I can't really change the environment due to software vendor controlling display. Essentially I would like to telnet and get the same display as the MPE.
5 REPLIES 5
Michael Steele_2
Honored Contributor

Re: Linux Workstation - HPUX

"...I add MIT-MAGIC-COOKIE from HP to Linux system and reboot the HP system. I didn't reboot the system yesterday. Now it is working fine..."

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=102422

http://www.nedit.org/pipermail/discuss/2001-September/000180.html

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1386083

http://ubuntuforums.org/archive/index.php/t-292570.html

If you succeed, then please paste in your procedure.

Thanks!
Support Fatherhood - Stop Family Law
Matti_Kurkela
Honored Contributor

Re: Linux Workstation - HPUX

Do you mean a connection that allows the use of a GUI? In HP-UX, that requires X Window System, aka X11.

The most convenient & secure way to set up X11 connections in HP-UX and any modern unix-like system (including Linux) is SSH.

If you can install SSH service to your HP-UX system (based on OpenSSH, built by HP, available for free at http://software.hp.com ), you would only have to establish a SSH connection with X11 forwarding from your Linux workstation to the HP-UX system:

ssh -X username@hpux.system.name

After completing the authentication, you'd only have to run the command that starts up your GUI program, and the window(s) would automatically pop up to your workstation's screen.

But if using SSH is not possible, you'll need the old way of establishing X11 connections. The trick is, most Linux distributions have disabled this method by default, because it's not secure.

The process that draws windows and other GUI elements to the screen of the Linux workstation is called "the X server". In modern Linux distributions, the name of the X server binary is /usr/bin/X.

To disable the old-style unencrypted X11 connections, most Linux distributions use the option "-nolisten tcp" when starting the X server.

The process that starts the X server and thus determines the options given to it is called the X Display Manager. The traditional display manager is named "xdm", but some desktop environments include their own modified versions: Gnome has "gdm" and KDE has "kdm".

Each of these has its own configuration file: KDE uses something like /etc/kde3/kdm/kdmrc (this example from Debian), xdm uses /etc/X11/xdm/Xservers, and I think Gnome used something similar to xdm, but with a slightly different path name.

So, if you really want to do this, find the correct configuration file in your Linux workstation, remove the "-nolisten tcp" option and reboot your workstation.

After this, you should be able to use the traditional lazy recipe for insecure remote X11 connections:

1.) open a terminal window on your workstation

2.) run "xhost +" to disable all X11 authentication.
(WARNING: Anyone who can contact to the TCP/6000 port of your workstation can now monitor your keystrokes and mouse events if he/she wants to.)

3.) establish a connection to the HP-UX system using any way you can, e.g. telnet (WARNING: telnet will transmit any passwords you use in cleartext over the network. Use in trusted networks only.)

4.) set the DISPLAY environment variable on the HP-UX host:

export DISPLAY=DNS.name.or.IP.of.Linux.workstation:0.0

5.) Start the GUI application on HP-UX. The windows should appear on the screen of the Linux workstation.

MK
MK
Steven Schweda
Honored Contributor

Re: Linux Workstation - HPUX

> How to I use my linux terminal to connect
> to HP UX?

What, exactly, is "my linux terminal"?

"connect to HP UX" to do what, exactly?

> I have tried xterm, xhpterm and so on...

And what happened when you did that (whatever
"tried" means, exactly)?

Many things are possible. A GNU/Linux
workstation should already have an xterm (or
something similar), so you could just use
that to Telnet (or SSH, or whatever) to an
HP-UX system. Many HP-UX systems also have
X clients like xterm, hpterm, and/or dtterm
installed, too, so it might also be possible
to run one of these terminal emulators on the
HP-UX system, and get the result displayed
back on the GNU/Linux workstation.

> Essentially I would like to telnet and get
> the same display as the MPE.

That means less to me than it might to you.
Steven E. Protter
Exalted Contributor

Re: Linux Workstation - HPUX

Shalom,

I use a Linux system in GUI mode all day long to administer HP-UX systems.

ssh -X hostname
ssh -Y hostname to older systems

You will need to tweak TERM settings, and perhaps set up TERMCAP, but it is possible.

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
dirk dierickx
Honored Contributor

Re: Linux Workstation - HPUX

when using ssh with X-forwarding it should just work. if you are setting your DISPLAY manually you must ensure that remote X clients can connect, first on ubuntu by default this is disabled and you will enable this in GDM, after that you will still need to grant access with the xhost + command.