Support For Wayland Session for DB2 GUI Installer

Harishkumar .Pathangay

Support For Wayland Session for DB2 GUI Installer

Hi,

In Linux world, there are changes occurring to replace X Org with Wayland. Most of Desktop Distributions are getting shipped with Wayland as default session for GUI instead of X Org.

In a Wayland Session, DB2SETUP GUI is not working. It looks for DISPLAY Variable and fails. Even if you set Display Variable to :0, it still fails with following error.

Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:217)
        at java.awt.Window.<init>(Window.java:547)
        at java.awt.Frame.<init>(Frame.java:431)
        at java.awt.Frame.<init>(Frame.java:396)
        at LoadingGraphic.<init>(Unknown Source)
        at LoadingGraphic.main(Unknown Source)
The DISPLAY variable is not set properly.  Ensure that the DISPLAY variable is set properly and that permissions are set properly to open windows on the display specified, then rerun the command.
Please let me know your inputs / solution if you have successfully installed DB2 in Wayland Session on Linux.
Thanks,
Harish P

Greg Palgrave

RE: Support For Wayland Session for DB2 GUI Installer
(in response to Harishkumar .Pathangay)

Hi Harish,

Db2 has a list of requirements for the installation: https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/com.ibm.db2.luw.qb.server.doc/doc/r0008865.html

One of those requirements is:

"An X Window System software capable of rendering a graphical user interface is required in the following scenarios:

  • You want to use the Db2 Setup wizard to install a Db2 database product on Linux or UNIX operating systems, or
  • You want to use graphical tools on Linux for x86 and Linux on AMD 64/EM64T."

if you run the db2prereqcheck command it will verify if all requirements have been met.

A silent install might work if you can set up a response file to suit - but i haven't tested this.

Alternatively, use the db2_install command to install Db2 - it has been deprecated since 10.1, but still it is still there, and still works.

I'd also observer that a Desktop Distribution is almost certainly not one of the supported operating systems for a Db2 install - you generally require an enterprise or server OS.

 

Cheers

Greg


In Reply to Harishkumar .Pathangay:

Hi,

In Linux world, there are changes occurring to replace X Org with Wayland. Most of Desktop Distributions are getting shipped with Wayland as default session for GUI instead of X Org.

...
Please let me know your inputs / solution if you have successfully installed DB2 in Wayland Session on Linux.
Thanks,
Harish P

Harishkumar .Pathangay

RE: Support For Wayland Session for DB2 GUI Installer
(in response to Greg Palgrave)

Hi Greg,

Thanks for your inputs. I absolutely understand that Wayland Session is not yet Enterprise OS Display server replacing X Org.

But I thought a Linux App written usually runs in any display server [I can launch calculator app in any session] considering the special case that db2 installer GUI is using java AWT toolkit I was thinking it should be some simple issue to fix like setting some variables or flags in the environment which I am not setting properly.

So was just trying to find out if any body has done that successfully for home use only. I am using DB2 Express-C for education and learning purpose for many years with a Linux Laptop. So was just looking for a solution more for education/training and blogging usage only. 

Thanks,

Harish Pathangay 

Roland Schock

RE: Support For Wayland Session for DB2 GUI Installer
(in response to Harishkumar .Pathangay)

Hi Harish,

as Greg mentioned, IBM offers support for X Windows or a headless install with either a response file or via db2_install. It is a common practice to have servers in a datacenter, which do not get an X Windows server installed just for the launchpad to install software.

However, if you want to use something more sophisticated as a window manager, you are free to do so.

You could enter an RFE https://www.ibm.com/developerworks/rfe/ and if your RFE finds 20+ people who also vote for it, then chances are high, IBM is considering this as a useful extension and may implement it in a future version.

Until then you have to install X windows in parallel and use it for Db2 installs, if you don't want to get into response files.

Cheers
Roland

Harishkumar .Pathangay

RE: Support For Wayland Session for DB2 GUI Installer [Case Closed]
(in response to Roland Schock)

Hi All,

I explain intention behind the question. db2setup is like a java awt program. Java can run anywhere. X Org or Wayland should not matter from a Java programming perspective. I do not know Java, but I am only speaking conceptually with a little understanding of java programs window drawing methods. I may be wrong also. It becomes more like a Linux / Java AWT question. My Bad. I am just curious that any tweaks are available so that it can run it. Again I am so sorry, if it is not supported I will have to accept it. 

Thanks for your patient replies.

Case Closed.

thanks again,

Harish Pathangay