- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- xhost + error: unable to open display
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
Discussions
Discussions
Discussions
Forums
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
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
тАО08-06-2005 10:14 PM
тАО08-06-2005 10:14 PM
When i issue the command "xhost +" in HPUX telnet session as root, i am getting the following error
error:
-----------
root # xhost +
xhost: unable to open display ""
------------
Please let me know how to rectify this.
thanks
S.Jagadesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2005 11:13 PM
тАО08-06-2005 11:13 PM
Solutionmachine$ # Get into X windows.
localmachine$ xterm &
localmachine-xterm$ echo $DISPLAY
if none of above, then do following to setup the DISPLAY variable.
localmachine-xterm$ export DISPLAY="localmachine:0.0"
localmachine-xterm$ xhost +remotehost
"remotehost" added to access list.
localmachine-xterm$ telnet remotehost
## Log into remote host
remotehost$ export DISPLAY="localmachine:0.0"
remotehost$ xterm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2005 11:37 PM
тАО08-06-2005 11:37 PM
Re: xhost + error: unable to open display
My putty terminal is set to xterm only
#echo $TERM
xterm
I am opening this putty session from windows. I also have cygwin application installed. After issuing startx from the cygwin application i will get a X icon at the bottom of the task window.
----------------------
$ startx
DISPLAY is :2
Updating PuTTY profiles...
sh: reg: command not found
Your PuTTY profiles have now been updated to use the current X session.
The X server appears as an 'X' icon in the Windows system tray on your taskbar.
(If you use the command-line SSH client, enter 'export DISPLAY=localhost:2'
before doing so.
---------------------
In putty terminal i enabled the X11 fowarding too.
After making all these settings when i run xhost + iam getting an error "unable to open the display. Even i tried to set the DISPLAY variable
export DISPLAY=hostname of windows:0.0
still i am facing the problem. Let me know how to rectify the same.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2005 08:23 AM
тАО08-07-2005 08:23 AM
Re: xhost + error: unable to open display
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2005 08:25 AM
тАО08-07-2005 08:25 AM
Re: xhost + error: unable to open display
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2005 08:39 AM
тАО08-07-2005 08:39 AM
Re: xhost + error: unable to open display
who -muR
The last entry on the line is the IP (or hostname) of your PC, so you set the DISPLAY value to this IP address plus :0 to specify which screen to use. You can do this in one command like this:
export DISPLAY=$(who -muR | awk '{print $NF}'):0
However, Xwindows does not exist in PC windows, you must buy a Xwindow emulator such as WRQ's Reflection/X or Hummingbird's Exceed or similar.
On the other hand, there is no reason whatsoever to run Xwindows (like xterm, dtterm, hpterm) for a character mode interface. If you're not drawing pictures or stuck with an application that requires Xwindows, don't use it. Putty, QCterm, even WRQ's Reflection for HP (a terminal emulator) are 100x more efficient than Xwindows.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2005 02:02 PM
тАО08-07-2005 02:02 PM
Re: xhost + error: unable to open display
xhost + can only running on XWindows mode so use Telnet application that support XWindows such as ReflectionX from WRQ inc.After install that telnet software you can run xhost + without any difficulties.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2005 02:33 PM
тАО08-07-2005 02:33 PM
Re: xhost + error: unable to open display
Add the hostname of the computer to the /etc/hosts file.
The system will then be able to properly set the DISPLAY variable.
Cheers !!!
Vinod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2005 12:46 AM
тАО08-08-2005 12:46 AM
Re: xhost + error: unable to open display
I guess, you would like to do something else.
Start xhost + on your local machine, and than telnet to the remote host and start remote X client application.
Am I wrong?
MBr.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2005 10:12 AM
тАО08-23-2005 10:12 AM
Re: xhost + error: unable to open display
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2005 10:15 AM
тАО08-23-2005 10:15 AM
Re: xhost + error: unable to open display
You have to establish a tunnel with your putty session with your server.
Are u using any xwindow client..like VNC.
Are you looking to run xapplications.
Cheers.
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2005 10:19 AM
тАО08-23-2005 10:19 AM
Re: xhost + error: unable to open display
From your current server do
$ export DISPLAY=xhostserver:0.0
any luck ,
Raj.
--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2005 10:21 AM
тАО08-23-2005 10:21 AM
Re: xhost + error: unable to open display
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2006 11:12 AM
тАО10-13-2006 11:12 AM
Re: xhost + error: unable to open display
I trying to run a vncserver, but when I try to run xhost +, I get the same error.
unable to opendisplay, I just try everything. I just wondering if there's something else beyond the DISPLAY variable, like the XF86 configuration?
Best Regards,
ACR