Monday, March 3, 2008

xhost: unable to open display in HPUX

Hi folks,
Some times you will not be able to set the display using below commands in HPUX
export DISPLAY=ipaddress:0.0 'or'
export DISPLAY=ipaddress 'or'
export DISPLAY=ipaddress:0 'or'
export DISPLAY=hostname:0.0
and
xhost +
xhost +hostname etc.

Simply run below command in a single line to run xhost + successfully
nohup /usr/bin/X11/Xvfb :0 -screen 2 1024x800x8 -pn -fp /usr/lib/X11/fonts/misc -sp /etc/X11/SecurityPolicy & export DISPLAY=$(hostname):0.0

Thanks
--Guru

No comments: