Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
BlueDragon Self-Help: FAQ
Back to Search >  Back to Search Results

Faq ID 385
Product BlueDragon
Category Installation
Question How do I get the BDJX Linux installer to run on a non Graphical Linux System?
Answer A non-graphical Linux system is one that lacks an X11 display (or whose DISPLAY variable is not set). Such a system is sometimes called "Headless" and graphical operations (GUI) will fail on it. The default installation mode for a BDJX Linux installer is GUI, so running that installer on a Headless system will give the following sort of error:
java.awt.HeadlessException:
  No X11 DISPLAY variable was set, but this program performed an operation which requires it.
  at java.awt.GraphicsEnvironment.checkHeadless ...
  ...
  ...
The recommended way to get past this issue is to run the installer in console mode. For example:
> BlueDragon_Server_JX_71_383_Linux_x64.sh -i console

For those who would prefer the installer to default to GUI mode on systems where that's possible (already the case), but to also default to console mode on systems where GUI is *not* possible... here is an unsupported way around it:
Run the following script to create a modified copy of the installer:
#!/bin/sh

# This script may be used to alter a BDJX 7.1 Linux installer (built with InstallAnywere 2008 Emterprise)
# so that it will run in console mode by default on a "Headless" Linux system (one with no X11).
# This article 
# http://www.mooreds.com/wordpress/archives/000280
# says to search an install script generated by InstallAnywhere (IA) for the word "FAILSAFE"
# comments there explain that "console mode by default on a headless system" is possible simply by
# uncommenting/commenting a few specific lines in the script that is generated by IA.


InstallerName=BlueDragon_Server_JX_71_380_Linux_x64

sed '
/^# FAILSAFE/ {
 :unquote
    n
    /# comment/ b next
    s/^#//
    t unquote
}
/^# comment/ {
  :next
    s/^# comment/### comment/
  :requote
    n
    /fi/ b
    s/^/###/
    b requote
}
:end
' $InstallerName.sh > $InstallerName.sh.mod


Thanks to Benoit Plessis for providing the script above.
Also thanks to Dan Moore for his blog post which pointed the way to this solution.



   
company media information terms of use privacy policy contact us