Operating System - HP-UX
1825982 Members
3620 Online
109690 Solutions
New Discussion

unable to open DISPLAY, xhost+

 
geetasri
Occasional Contributor

unable to open DISPLAY, xhost+

Hi,
I want to run Oracle. For which I've to the Display Variable. Tried Giving
1. export DISPLAY=:0.0; xhost +
2. export DISPLAY=IP addr:0.0; xhost +

nothing worked for me?? Is there anything that need to be configured.

Also, Not able to login from Humming bird .

thanks,
J

5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: unable to open DISPLAY, xhost+

The xhost command must be run on the system with the display.
Asif Sharif
Honored Contributor

Re: unable to open DISPLAY, xhost+

Hi Jayanthi,

->Start Humming bird software.
->Telnet to the HPUX box and login.
->export DISPLAY=:0.0

Regards,
Asif Sharif
Regards,
Asif Sharif
skt_skt
Honored Contributor

Re: unable to open DISPLAY, xhost+

what is the HP-UX version you have?
which Xserver are you using?is that Xvfb?Could you post the /etc/rc.config.d/xvfb

is your application as well as the Xserver configured on the same host?

Could u check how your system responds to

#export DISPLAY=hostname:15.0
#xset -q
#xhost +



Also post "netstat -an|grep LISTEN|grep :60"
Ramasubramanian Krishna
Occasional Advisor

Re: unable to open DISPLAY, xhost+

Hi J

Check the file permissions of below mentioned files

/etc/resolv.conf
/etc/nsswitch.conf
/etc/hosts

and
use below mentioned script to start xvfb.

#!/usr/bin/ksh
XPath=/usr/bin/X11
XVFB=/usr/bin/X11/Xvfb
export XPath XVFB
case $1 in
'start')
DISPLAY=`hostname`:5.0;export DISPLAY
nohup $XVFB :5 -screen 0 1024x768x8 &
nohup $XPath/xhost + &
nohup $XPath/mwm &
;;
'stop')
XVFBPid=`ps -ef |grep $XVFB|grep -v grep|awk '{print $2}'`
# echo $XVFBPid
if [ "X$XVFBPid" != "X" ]; then
echo "Killing $XVFBPid"
/bin/kill $XVFBPid
fi
;;
*)
echo "usage: $0 {start|stop}"
exit 1
;;
esac
Roberto Arias
Valued Contributor

Re: unable to open DISPLAY, xhost+

try ssh tunnel for X, and check xclock
The man is your friend