Discussion:
[TurboVNC-Users] Can't display Ubuntu 14.04 Unity desktop when using -3dwm flag
Michael A. Saverino
2017-06-12 23:19:55 UTC
Permalink
I have an Ubuntu 14.04 system with an Nvidia GTX 770 graphics card. If
I leave the -3dwm switch out when starting vncserver, the desktop comes
up and functions fine, otherwise I get a black screen in the supplied
vncviewer. I want to use the -3dwm flag because I have Java 3d
application that fails using turbovnc. The application is NASA
Worldwind - A Java API that will allow visualizations on a 3D globe,
with objects, GIS info, etc... The application can't seem to find
javax.media.j3d classes when not running over turbovnc. It works fine
on console DISPLAY :0. I am sure it is some direct rendering issue with
OpenGL that I am trying to potentially cure with the -3dwm switch. Any
insights into these issues would be appreciated.

Many Thanks,

Mike...
Michael A. Saverino
2017-06-13 21:32:48 UTC
Permalink
DRC, thanks for the response. I had installed the Ubuntu virtualgl and
virtualgl-libs packages, but still got Java GLX errors when trying to
start the apps. They run fine on a monitor connected directly to the NV
GTX770. To start with the basics, I cannot even run this in my
turbovnc remote desktop when opening a terminal:

***@carnac:~$ vglrun /usr/bin/ssh-agent /usr/bin/glxinfo
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded
(cannot open shared object file): ignored.
ERROR: ld.so: object 'libvglfaker.so' from LD_PRELOAD cannot be
preloaded (cannot open shared object file): ignored.
name of display: :1.0
Error: couldn't find RGB GLX visual or fbconfig
Error: couldn't find RGB GLX visual or fbconfig
***@carnac:~$

I tried to specifically place the lib*faker.so files in ld.so.conf.d and
reran ldconfig to no avail. I am using the latest Ubuntu deb for
virtualgl (3.5.2), Ubuntu 14.04 with all latest updates applied,
turbovnc 2.1.1 from Ubuntu deb. The graphics card is an Nvidia GTX770
with version 375 Ubuntu packaged drivers. Any insights you could
provide to resolve this would be appreciated.

Many Thanks,

Mike...
-3dwm requires VirtualGL, and running any 3D application in TurboVNC
also requires VirtualGL. So Step 1 should be to get VirtualGL up and
running. Then you can run your Java 3D application in the TurboVNC
session using vglrun without having to deal with a 3D window manager at all.
Post by Michael A. Saverino
I have an Ubuntu 14.04 system with an Nvidia GTX 770 graphics card. If
I leave the -3dwm switch out when starting vncserver, the desktop comes
up and functions fine, otherwise I get a black screen in the supplied
vncviewer. I want to use the -3dwm flag because I have Java 3d
application that fails using turbovnc. The application is NASA
Worldwind - A Java API that will allow visualizations on a 3D globe,
with objects, GIS info, etc... The application can't seem to find
javax.media.j3d classes when not running over turbovnc. It works fine
on console DISPLAY :0. I am sure it is some direct rendering issue with
OpenGL that I am trying to potentially cure with the -3dwm switch. Any
insights into these issues would be appreciated.
Many Thanks,
Mike...
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TurboVNC-Users mailing list
https://lists.sourceforge.net/lists/listinfo/turbovnc-users
Michael A. Saverino
2017-06-14 16:56:07 UTC
Permalink
Thanks DRC,

It helps to read the users guide and run vglserver_config. All running
great. Also got to make sure sudo prime-select nvidia in case you have
mesa and other things hanging around.

Mike...
Why would you run ssh-agent? That is only necessary if you're running a
window manager. You're over-thinking it. Just do 'vglrun {your
application}', as instructed in the VirtualGL User's Guide. Don't try
to glean VirtualGL usage information from the xstartup.turbovnc script.
That's a very special case meant only for running window managers.
Post by Michael A. Saverino
DRC, thanks for the response. I had installed the Ubuntu virtualgl and
virtualgl-libs packages, but still got Java GLX errors when trying to
start the apps. They run fine on a monitor connected directly to the NV
GTX770. To start with the basics, I cannot even run this in my
ERROR: ld.so: object 'libdlfaker.so' from LD_PRELOAD cannot be preloaded
(cannot open shared object file): ignored.
ERROR: ld.so: object 'libvglfaker.so' from LD_PRELOAD cannot be
preloaded (cannot open shared object file): ignored.
name of display: :1.0
Error: couldn't find RGB GLX visual or fbconfig
Error: couldn't find RGB GLX visual or fbconfig
I tried to specifically place the lib*faker.so files in ld.so.conf.d and
reran ldconfig to no avail. I am using the latest Ubuntu deb for
virtualgl (3.5.2), Ubuntu 14.04 with all latest updates applied,
turbovnc 2.1.1 from Ubuntu deb. The graphics card is an Nvidia GTX770
with version 375 Ubuntu packaged drivers. Any insights you could
provide to resolve this would be appreciated.
Many Thanks,
Mike...
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
TurboVNC-Users mailing list
https://lists.sourceforge.net/lists/listinfo/turbovnc-users
Michael A. Saverino
2017-06-16 21:50:45 UTC
Permalink
OK, I have to get to a vgl system that sits on the other side of an ssh
firewall. The ssh command to get through the firewall is as follows:

sudo -E ssh -v -o IdentitiesOnly=yes -i ~/.ssh/id_dsa -N -C -l saverino
***@xxx.xxx.xxx.xxx -L 3435:atest-coamps:22

I need to get to machine atest-coamps which has VirtualGL and my
application. vglconnect -s won't get me through with this
configuration. Any suggestions? I am not shy about modifying the
vglconnect script if I have to.

Many Thanks,

Mike...
Michael A. Saverino
2017-06-19 01:12:54 UTC
Permalink
Post by Michael A. Saverino
vglconnect
Sorry about that DRC. Posted here by accident since TurboVNC is what I
started with. Didn't know there was a -p option in vglconnect. Don't
recall it from the Docs. In any case, the above recommended command
works great! I will post future VirtualGL questions in the proper forum.

Many Thanks,

Mike...

Loading...