cancel
Showing results for 
Search instead for 
Did you mean: 

Installing Xvfb on Z/OS for SAP

Former Member
0 Kudos

Hi,

Can anybody tell me the command to install and configure Xvfb for Z/os on SAP.

Actually we are trying to develop some java application for which Xvfb need to be installed on Linux box and we have Z/Os linux mainfram.

I have already downloaded the RPM and extraced under /usr/bin

now whn i say "install Xvfb" it gives error like cannot execute binary file.

Can anybody give me details, how can i go for this ???

Regards

Accepted Solutions (1)

Accepted Solutions (1)

markus_doehr2
Active Contributor
0 Kudos

> I have already downloaded the RPM and extraced under /usr/bin

> now whn i say "install Xvfb" it gives error like cannot execute binary file.

rpm files are usually installed using "rpm -i <filename>.rpm".

Markus

Former Member
0 Kudos

Hi,

Even after RPM -i i was not able to start Xvfb.

Then I downloaded it from site, unziped and got Xvfb. As per the nites I need to type command like ./extract -C Xvfb but it says no file or folder ./extract then I tried to install Xvfb or simple Xvfb it says unable to ececute binary.

markus_doehr2
Active Contributor
0 Kudos

> Then I downloaded it from site, unziped and got Xvfb. As per the nites I need to type command like ./extract -C Xvfb but it says no file or folder ./extract then I tried to install Xvfb or simple Xvfb it says unable to ececute binary

are you sure you downloaded the binary for the correct platform?

What's the output of

file `which Xvfb`

Markus

Former Member
0 Kudos

the output is as -

/usr/X11R6/bin # file which Xvfb

which: cannot open `which' (No such file or directory)

Xvfb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

markus_doehr2
Active Contributor
0 Kudos

> /usr/X11R6/bin # file which Xvfb

> which: cannot open `which' (No such file or directory)

> Xvfb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

This explains the problem clearly.

You're trying to execute an Intel 32bit binary on a zLinux (S390x) host. This can't work.

The RPM must be build for the platform that you see when you execute

uname -i

Markus

Former Member
0 Kudos

Plz chk this -

:/usr/X11R6/bin # file Xvfb

Xvfb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped

:/usr/X11R6/bin # ls -l

total 3475

-rwxrwxrwx 1 root root 3507872 Jan 20 2002 Xvfb

lrwxrwxrwx 1 root root 7 Aug 14 2009 sux -> /bin/su

-rwxr-xr-x 1 root root 41784 Apr 22 2008 xauth

/usr/X11R6/bin # echo $shell

:/usr/X11R6/bin # id

uid=0(root) gid=0(root) groups=0(root),1000(sapinst)

/usr/X11R6/bin # uname -a

Linux sp1as1 2.6.16.60-0.21-default #1 SMP Tue May 6 12:41:02 UTC 2008 s390x s390x s390x GNU/Linu

markus_doehr2
Active Contributor
0 Kudos

You see the difference between:

Xvfb: ELF 32-bit LSB executable, Intel 80386

and

Linux sp1as1 2.6.16.60-0.21-default #1 SMP Tue May 6 12:41:02 UTC 2008 *s390x s390x s390x* GNU/Linux

?

You need to download Xvfb for the proper architecture/processor which is in your case s390x - not for Intel.

Markus

Former Member
0 Kudos

can i download it frm this site -

http://www.linuxbase.org/download/

markus_doehr2
Active Contributor
0 Kudos

Any reason why you don't use the official packages provided by your vendor (Novell/suse)?

Markus

Former Member
0 Kudos

Im trying onthis site -

http://en.opensuse.org/

is it right or is ther any other site fr this ???

plz guide

markus_doehr2
Active Contributor
0 Kudos

Do the following:

- open yast2 (as user 'root')

- Select Software - *Online Update Configuration *

- register your system @ Novell

- after the use in yast2 "Software management" to download the correct package

Markus

Former Member
0 Kudos

its giving belwo result -

YaST @ sp1as1 Press F1 for Help

[Filterv] [Actionsv] [Informationv] [Etc.v]

┌───────────────────────────────────────────────────────────────────────────────────────────────┐

│ │Name │Summary│Kind│Version │

│ │No patches available │

│ │

│ │

│ │

│ │

│ │

│ │

└───────────────────────────────────────────────────────────────────────────────────────────────┘

Filter: Installable Patches Total Download Size: 0 B

┌───────────────────────────────────────────────────────────────────────────────────────────────┐

│ │

│ │

│ │

│ │

│ │

│ │

└───────────────────────────────────────────────────────────────────────────────────────────────┘

[Help] [Cancel] [OK]

markus_doehr2
Active Contributor
0 Kudos

> its giving belwo result -

Seems your system is not properly registered @ novell. Did you enter an activation number?

Markus

Former Member
0 Kudos

I thinkk yes its registed properly.

Is there any other site where i can download it from and install without any problem ???

Regards

markus_doehr2
Active Contributor
0 Kudos

> Is there any other site where i can download it from and install without any problem ???

According to what I found on the Novell site, the Xvfb is part of the Xfree/Xorg package and is available on the first installation DVD.

(For SLES 10 SP2 it's https://secure-www.novell.com/products/linuxpackages/server10/sp2/s390x/xorg-x11-xvfb.html, you seem to run SLES11.)

Check your DVDs.

Markus

Former Member
0 Kudos

Hi ,

some how i installed xvfb. plz see belwo -

:/var/lib/rpm # rpm -qa | grep xvf

lsb-xvfb-1.2.0-2

now whn i run ps -ef | grep xvb

i dont get any service runnning

markus_doehr2
Active Contributor
0 Kudos

> lsb-xvfb-1.2.0-2

You seem to have

- install an ancient version (lsb-xvfb is from 2005) on a brand new operating system (SuSE SLES 11 for z/OS)

--> it's clear that it doesn't work

I can just again suggest to check the source DVDs from where you installed, the file you need is there on the DVDs - or contact Novell if you don't find it.

Avoid installing random packages that are found by google. They are not going to work.

Markus

Former Member
0 Kudos

how do we start and stop Xvfb on linux box ???

and chk Xvfb status ???

Former Member
0 Kudos

Now whn i say

ps -ef | grep X11

it shows the X11 is running .

but whn I say

ps -ef | grep Xvfb

it shows no process running.

Will it be ok or Xvbf also need to be running too ????

markus_doehr2
Active Contributor
0 Kudos

> Will it be ok or Xvbf also need to be running too ????

Xvfb is used to emulate a framebuffer/screen. If X can be started there's not need to use Xvfb.

Markus

Former Member
0 Kudos

Full marks to you Markus.....I hope to giv you point more thn 10 if possible !!!

Many Thanks & Regards

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Markus,

Right after installation it worked but after restart its not working. whereas X11 is still running.

ps -ef | grep X11

root 1959 1 0 Jul03 ? 00:00:00 /usr/X11R6/bin/xdm

Edited by: basis basis on Jul 7, 2010 4:14 AM

markus_doehr2
Active Contributor
0 Kudos

- Which package did you finally install? The SuSE/Novell package from the DVD?

- What exactly "is not working"? What error message do you get - if any?

Markus

Former Member
0 Kudos

We are trying to run on java application which should generated pop up window on clincking submit button.

but its generating folowing error-

java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment

we already set the parameter -

java.awt.headless=true

but it was not working. then we installed X11 pacakage from installation DVD (as suggested by you)and it got working also but after restart it again throwing same error. where as X11 is still running.

Thanks

markus_doehr2
Active Contributor
0 Kudos

What is the Java version you use? Execute as user <sid>adm

java -version

Markus

Former Member
0 Kudos

java -version

java version "1.4.2"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)

Classic VM (build 1.4.2, J2RE 1.4.2 IBM build cxz64142-20080122 (SR10) (JIT enabled: jitc))

On top of this Xvfb is also running.

Regards

Edited by: basis basis on Jul 8, 2010 12:09 AM

Former Member
0 Kudos

Now I installed Xvfb also frm OS DVD -

ps -ef | grep Xv

10805 6597 0 17:28 pts/1 00:00:00 Xvfb :1 -screen 0 1x1x24

but than also same error mesg