- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to connect Linux workstation to HPUX server vi...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 03:44 AM
09-29-2005 03:44 AM
I have have added my workstation entry to xhosts on the server and a server entry to xhosts on my workstation. But when I try to start an xterm it just hangs.
Is there a basic compatibility issue I'm missing here between Linux and HP-UX or do I have a configuration issue to work out?
Thanks much,
-mark
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 03:49 AM
09-29-2005 03:49 AM
Re: How to connect Linux workstation to HPUX server via X
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 03:49 AM
09-29-2005 03:49 AM
Re: How to connect Linux workstation to HPUX server via X
X :1 -query
This will start a 2nd Xsession on your linux box connected to $DISPLAY:1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 03:50 AM
09-29-2005 03:50 AM
Re: How to connect Linux workstation to HPUX server via X
export DISPLAY=
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 03:54 AM
09-29-2005 03:54 AM
Re: How to connect Linux workstation to HPUX server via X
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 03:59 AM
09-29-2005 03:59 AM
Re: How to connect Linux workstation to HPUX server via X
Ziad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 04:25 AM
09-29-2005 04:25 AM
Re: How to connect Linux workstation to HPUX server via X
I have exported my DISPLAY variable from my Linux & HPUX box and set the xhost + from linux.
Here's the scenario
I ran xhost + on the Linux (Fedora Core 3) box. Received a message that access is open to all.
I exported my DISPLAY variable on Linux and HPUX as 'export DISPLAY=10.XX.XX.XX:0.0' where XXs are my ip address.
Next I telnet to HPUX server and login. I run xclock and that's it -- it hangs....
From the HPUX side I can start dtterm or xterm and run gui programs just fine....and from the Linux side I can run xterm and gui programs no problem.
Does that help?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 04:26 AM
09-29-2005 04:26 AM
SolutionSome Linux distros run X windows purely on UNIX sockets, not tcp sockets, which will stop your X windows even with the DISPLAY and xhost values correct.
So on your workstation type
netstat -a | grep tcp
If it does not say
tcp 0 0 *.x11 *:* LISTEN
somewhere in the output, then you will need to change the X windows config on your linux box to ensure that it listens to the network as well.
One other thing, ensure there is no firewall inbetween, blocking port 6000/tcp (X)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 04:49 AM
09-29-2005 04:49 AM
Re: How to connect Linux workstation to HPUX server via X
Looks as though the hanging is a symptom of the X traffic being blocked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 05:58 AM
09-29-2005 05:58 AM
Re: How to connect Linux workstation to HPUX server via X
xhost +
from the linux server telnet to the hpux server
in the hpux server login window export your display to the linux server: export DISPLAY=linux_server_ip_goes_here:0.0
launch xclock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 08:49 AM
09-29-2005 08:49 AM
Re: How to connect Linux workstation to HPUX server via X
Sure enough my Linux box is going to need to have its X windows config file tweaked. The output from netstat -a | grep tcp to verify it is listening for x11 traffic came up empty.
Thanks again!
-mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 08:58 AM
09-29-2005 08:58 AM
Re: How to connect Linux workstation to HPUX server via X
You wrote
"I ran xhost + on the Linux (Fedora Core 3) box. Received a message that access is open to all.
I exported my DISPLAY variable on Linux and HPUX as 'export DISPLAY=10.XX.XX.XX:0.0' where XXs are my ip address.
Next I telnet to HPUX server and login. I run xclock and that's it -- it hangs...."
New sequence:
1. xhost +
2. telnet
3. export DISPLAY
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2005 09:22 AM
09-29-2005 09:22 AM
Re: How to connect Linux workstation to HPUX server via X
update your .profile on your hpux box and kiss export GOODBYE!
the following is the top of my .profile, which automatically exports your DISPLAY from any telnet or ssh session (recommended).
me> cat .profile
# @(#) $Revision: 72.2 $
# Default user .profile file (/usr/bin/sh initialization).
TERM=xterm
export TERM
# Set up the terminal:
if tty -s; then
DISPLAYHOST=$(who -muR | awk '{print $NF}')
DISPLAYHOST=${DISPLAYHOST%%:0.0}
DISPLAY=$DISPLAYHOST:0.0; export DISPLAY
echo "DISPLAY has been set to $DISPLAY"
fi
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
...
you will have to xhost+ from your source box.
try it, you'll like it!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2005 01:03 AM
09-30-2005 01:03 AM
Re: How to connect Linux workstation to HPUX server via X
ssh -X
This tunnels the X-windows packets back throught the SSH tunnel between you and the HP-UX box. The only issue would be if the HP-UX box doesn't allow X-forwarding via ssh. Check out http://www.cag.lcs.mit.edu/~wentzlaf/faq/ssh_X.html for more info.
Stu.