1823913 Members
3263 Online
109667 Solutions
New Discussion юеВ

Re: Xvfb is not working

 
Aneesh Mohan
Honored Contributor

Xvfb is not working

Hi,

xvfb is not working ,could you please advice me to resolve the issue.

/etc/rc.config.d/xvfb file:-

# cat /etc/rc.config.d/xvfb
START_XVFB=1
USE_XHP=1

XINIT=/usr/contrib/bin/X11/xinit
XVFB_XINITRC=/etc/X11/xvfb.xinitrc

PERL=/usr/contrib/bin/perl
XVFB_DAEMON=/etc/X11/xvfb_daemon.pl

XHP=/usr/bin/X11/Xhp
XVFB=/usr/bin/X11/Xvfb

XVFB_USER="daemon"
XVFB_GROUP="daemon"
XVFB_DISPLAY=10
XVFB_MMAP="/var/X11/Xserver"
XVFB_ARGS="-screen 0 1024x768x8 -fbdir ${XVFB_MMAP}"
XVFB_PIDFILE=/var/run/Xvfb_${XVFB_DISPLAY}.pid
XVFB_LOG=/var/X11/Xserver/logs/Xvfb_${XVFB_DISPLAY}.log

----------------
# /sbin/init.d/xvfb start
XVfb server started as daemon on :10
# ps -aef |grep -i xvfb
daemon 5709 1 0 13:17:08 pts/0 0:00 /usr/contrib/bin/X11/xinit /etc/X11/xvfb.xinitrc -- /usr/bin/X1
root 5717 3946 0 13:17:14 pts/0 0:00 grep -i xvfb
-----------------
#export DISPLAY=$(hostname):10.0
# xclock
Error: Can't open display: appsdev:10.0
Error: Couldn't find per display information
# xhost +
xhost: unable to open display "appsdev:10.0"
#

Thanks,
Aneesh
3 REPLIES 3
Aneesh Mohan
Honored Contributor

Re: Xvfb is not working


I can see some error messages on xvfb logs.

------------------------
X server: Error in /etc/X11/X10screens (line 612)
Device name invalid or missing after keyword "Screen".
X server: Will try default "/dev/crt"
Failure to open default device file `/dev/crt`.
Please either specify the proper device filename in
your /etc/X11/X10screens file or fix `/dev/crt`. This filename is either
non-existent or is not a character special file.

Fatal server error:


^[ggiving up.^M
/usr/contrib/bin/X11/xinit: Connection refused (errno 239): unable to connect
to X server^M
/usr/contrib/bin/X11/xinit: No such process (errno 3): Server error.

Thanks,
Aneesh
Alex Glennie
Honored Contributor

Re: Xvfb is not working

XVfb server started as daemon on :10

means it's started on DISPLAY :10 as opposed to
appsdev:10.0

so try not setting the display ? or setting it first to appsdev:10.0
Aneesh Mohan
Honored Contributor

Re: Xvfb is not working

The issue got resolved , was problem with X10 screens file .

Thanks,
Aneesh