Hi,
I’ve been struggling with this for a few days now, and as a last resort I am posting on the forums. I’m trying to use Xvfb to allow me to fake a display such that I could run a gui applications from command line. When I start Xvfb and export my display, a gui applications just hangs forever and never actually launches. The particular gui application I’m trying to run is MSC Mentat which doesn’t have a proper cli, but let’s you run the application in the background while you interface via the terminal.
So If I run
export DISPLAY=:1
Xvfb :1 -screen 0 1024x768x16 &
mentat2015 -bg
I find that the application hangs forever, I never get the ‘mentatOGL.exe: cannot connect to X server’ or the information about connecting to a license server.
So if I run
glxinfo
I get
Xlib: extension "GLX" missing on display ":1".
Xlib: extension "GLX" missing on display ":1".
Segmentation fault
and if I run
sudo startx &
I get
xauth: file /root/.serverauth.2710 does not exist
X.Org X Server 1.17.2
Release Date: 2015-06-16
X Protocol Version 11, Revision 0
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux Asteria 4.1.36-41-default #1 SMP PREEMPT Fri Dec 9 08:26:33 UTC 2016 (29aafea) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.1.36-41-default root=UUID=50f5eafd-ff6b-443b-afad-6b0acb375f80 resume=/dev/sda1 splash=silent quiet showopts iommu=soft
Build Date: 07 March 2016 08:22:28AM
Current version of pixman: 0.32.6
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.2.log", Time: Wed Dec 14 21:06:55 2016
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:0:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:0:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:2:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:9:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:17:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:18:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:19:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:3) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:4) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:20:5) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:21:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:21:1) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:22:0) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@0:22:2) found
(WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found
/etc/X11/xim: Checking whether an input method should be started.
sourcing /etc/sysconfig/language to get the value of INPUT_METHOD
INPUT_METHOD is not set or empty (no user selected input method).
Trying to start a default input method for the locale en_US.UTF-8 ...
There is no default input method for the current locale.
Dummy input method "none" (do not use any fancy input method by default)
I’m not sure what is happening. I’ve successfully run mentat -bg on multiple HPCs with just initiating Xvfb. I’m not sure why it isn’t working.
Your help is greatly appreciated. I’ve tried many things, all to no success.
Additional info: I’m trying to do this via ssh. Yes I could use ssh -X, and everything works fine for a bit, but then after 12 or so runs I’ll mysteriously get ‘mentatOGL.exe: cannot connect to X server’. Additionally ssh -X is not ideal, as I don’t want to have to maintain an ssh connection.
Thanks!
Cash