LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-22-2010, 01:21 AM   #1
KrazyKanuk
Member
 
Registered: Sep 2007
Location: St. Catharines, Ontario
Distribution: Slackware 15/64 bit
Posts: 139

Rep: Reputation: 15
Remote 3D, is it possible??


I basically use my Linux system (Slackware 13.1/64-current with 2.6.35.6 kernel) through SSH, mostly because it connected with a KVM switch to share monitor/mouse/keyboard with another computer and most of the time someone is on the other computer that sharing these devices. On occasion I need to have a visual display (basically because what I trying to do at the time I can't remember the command and need to do it through the desktop (currently KDE 4.5.1). In the past I have used VNC to do this but now most text doesn't show up (like all text in the KDE menu is missing. I want to start investigating and playing around with the Desktop Effects which need 3D acceleration. I tried installing VirtualGL and the Mesa libraries and so on required but that failed and all it did was mess up my 3D acceleration (at least that is what I think did it) I had a post here http://www.linuxquestions.org/questi...s-card-839195/ trying to get it to work, which it does now. Doing searches on this it looks like I could use XDMCP and a client on the Windows machine to connect like Xming-mesa or Hummingbird Exceed and Hummingbird 3D (if I want to go commercial). I have tried XDMCP with Xming-mesa and I get it to connect but I have NO 3D acceleration to me that means a few things:
  • I am missing something in my xorg.conf
  • X doesn't support 3D acceleration remotely
  • Xming-mesa does not supprt 3D
Other then a few font directories not being found there no errors in my Xorg.0.log file. It doesn't matter how I do it as long as I can get remote 3D, but with only using it on occasion would prefer for the server (Linux) something open source or free, and for the client (Windows7) something along the same line. If there is another way to do this I am open for suggestions and willing to try anything.
 
Old 10-22-2010, 02:05 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
Originally Posted by KrazyKanuk View Post
  • I am missing something in my xorg.conf
  • X doesn't support 3D acceleration remotely
  • Xming-mesa does not supprt 3D
You can rule out at least some of these.

X does support remote 3D acceleration (I have tested this on a linux->linux system, running only mesa software acceleration on the client (X server) end. It works, though it is fairly slow!

Xming-mesa must support 3D, because that is what mesa is (3D support including software emulation). Not sure how up to date the Xming version is, I don't have a Windows machine here to try it.

You could do a simpler test by using putty to do an ssh connection (with X11 forwarding enabled on the tunnel), and see what glxinfo reports, rather than using XDMCP.

Last edited by neonsignal; 10-22-2010 at 02:13 AM.
 
Old 10-22-2010, 07:55 AM   #3
KrazyKanuk
Member
 
Registered: Sep 2007
Location: St. Catharines, Ontario
Distribution: Slackware 15/64 bit
Posts: 139

Original Poster
Rep: Reputation: 15
If I do that I get the following (I manually typing it so it prone for errors)
Quote:
glxinfo
name of display 192.168.1.12:0.0
Xlib extension "NV-GLX" missing on display 192.168.1.12:0.0
display 192.168.1.12:0.0 screen 0
direct rendering No (if you want to find out why try setting LIBGL_DEBUG=verbose)
I set LIBGL_DEBUG=verbose and ran glxinfo again and got exact same thing

Quote:
LIBGL_DEBUG=verbose
glxinfo
If I switch over to the Linux system (sitting at console) and run the same command I get
Quote:
glxinfo
name of display :0.0
display 0 screen 0
direct rendering yes
server glx vender string: NVIDIA Corporation
I know my xorg.conf file is using the nvidia driver I don't know where the NV-GLX is coming from. This is for a nvidia 8500GT 1GB card. I just used my normal shell program to forward X11 (SecureCRT). You said that XDMCP was slow is there another solution that would be faster, it would just be used on the LAN and only allow the desktop I am using currently until my laptop comes back from being repaired then allow that as well which can be done with iptables.
 
Old 10-22-2010, 09:03 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
Originally Posted by KrazyKanuk View Post
You said that XDMCP was slow is there another solution that would be faster, it would just be used on the LAN and only allow the desktop
I was using ssh, not XDMCP, and the reason for the slowness is that not only does the X and GLX stuff have to be marshalled over the LAN, but in my setup the client machine has no graphics acceleration, so it is all being emulated in mesa. That might not matter if the only acceleration you care about is the limited amount done in the desktop.

Quote:
I know my xorg.conf file is using the nvidia driver I don't know where the NV-GLX is coming from.
When testing using ssh access, the xorg.conf on the server is not relevant, because it is the X server on the client that is being used.

Just some questions:

Are you using the current version of Xming (the 7.5 version)?

If so, are you using the (experimental) '-wgl' flag to invoke it? (probably best to avoid it until after you get the mesa working)

You can force GLX redirection of all rendering (but this might be too slow to be useful), eg by the following (all on one line):
Code:
LIBGL_ALWAYS_INDIRECT=1 glxinfo

Last edited by neonsignal; 10-22-2010 at 09:20 AM.
 
Old 10-22-2010, 09:36 AM   #5
KrazyKanuk
Member
 
Registered: Sep 2007
Location: St. Catharines, Ontario
Distribution: Slackware 15/64 bit
Posts: 139

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by neonsignal View Post
I was using ssh, not XDMCP, and the reason for the slowness is that not only does the X and GLX stuff have to be marshalled over the LAN, but in my setup the client machine has no graphics acceleration, so it is all being emulated in mesa. That might not matter if the only acceleration you care about is the limited amount done in the desktop.
OK when I evoke XDMCP it seems slow after you type in username/password (at least until kde loads all the stuff it does) once it is loaded and on the desktop it seems fine. As far as the desktop 3d acceleration goes it has an onboard graphics with an intel 82945G chip, so I can't expect much here, but my laptop when I get it returned has an ATI Radeon HD4300 with DDR2 512MB so that should do fine.


Quote:
Originally Posted by neonsignal View Post
When testing using ssh access, the xorg.conf on the server is not relevant, because it is the X server on the client that is being used.
I think I been doing it wrong then because I was not even running Xming I was using just Xlaunch

Quote:
Originally Posted by neonsignal View Post
Just some questions:

Are you using the current version of Xming (the 7.5 version)?

If so, are you using the (experimental) '-wgl' flag to invoke it? (probably best to avoid it until after you get the mesa working)
I was using the xming-mesa-6-9-0-31 version but will upgrade to the newer version. As far as flags I wasn't using any just going through the Xlaunch dialogs setting things (wasn't saving it for wanted to get it working before I saved).
 
Old 10-22-2010, 09:55 AM   #6
KrazyKanuk
Member
 
Registered: Sep 2007
Location: St. Catharines, Ontario
Distribution: Slackware 15/64 bit
Posts: 139

Original Poster
Rep: Reputation: 15
The xming 7.5 are the fonts at least where I am looking
 
Old 10-22-2010, 05:37 PM   #7
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Using Xlaunch is fine, that starts the X server on your client machine. The ssh to the remote machine (with X11 forwarding enabled) will forward any X requests back to the local machine, and the X server carries them out.

It is a bit more complicated with the GLX extensions, because they are low level, and some of the processing may be handed off to the remote machine before being forwarded (but they will still not involve the X server on the remote machine). My understanding is that the LIBGL_ALWAYS_INDIRECT flag forces the GLX requests to come via X first, which will force all the processing onto the local machine (which will cost network bandwidth, but may solve this NV-GLX issue).

It looks like the current version of Xming includes the mesa library (where in the older version the Xming-mesa was a separate variant).

Last edited by neonsignal; 10-22-2010 at 05:39 PM.
 
Old 10-23-2010, 02:54 AM   #8
KrazyKanuk
Member
 
Registered: Sep 2007
Location: St. Catharines, Ontario
Distribution: Slackware 15/64 bit
Posts: 139

Original Poster
Rep: Reputation: 15
I see where you getting the 7.5 release I was looking at the "Public Domain Releases" the 7.5 is not in those it is in the "Website Releases" which require a username and password to download. I know it just a donation to get one but I wanted to see how well it worked before I did that. I think what I will do is do something a little faster like vnc which I know doesn't support 3D acceleration, but I only have to use it when someone else is using the other computer attached to the KVM switch, or I believe another option would be do something like VirtualGL.
 
Old 10-23-2010, 04:02 AM   #9
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
Originally Posted by KrazyKanuk View Post
the 7.5 is not in those it is in the "Website Releases" which require a username and password to download. I know it just a donation to get one but I wanted to see how well it worked before I did that.
Yep, that is fair enough.

I guess another option is to turn off the 3D support on the remote machine (eg, using the nv or nouveau driver instead of the nvidia one) so that your vnc connection has a better chance of working, but it is a less than satisfactory solution.

Last edited by neonsignal; 10-23-2010 at 04:05 AM.
 
Old 01-29-2011, 12:01 PM   #10
dcommander
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: Disabled
You should definitely try VirtualGL, as it's designed to solve precisely this problem. You have to have 3D acceleration on the server, but no 3D is required on the client.

(disclaimer: I developed VirtualGL, so I'm a little biased.)
 
1 members found this post helpful.
Old 10-16-2014, 06:49 AM   #11
vivek056
LQ Newbie
 
Registered: Oct 2014
Posts: 2

Rep: Reputation: Disabled
Offload rendering

Quote:
Originally Posted by dcommander View Post
You should definitely try VirtualGL, as it's designed to solve precisely this problem. You have to have 3D acceleration on the server, but no 3D is required on the client.

(disclaimer: I developed VirtualGL, so I'm a little biased.)
Hi, I have installed Nvidia card on Redhat 5.7 server and I am able to see the direct rendering enabled locally.

glxinfo | grep "direct rendering"
direct rendering: yes


However when I try to access it through VNC or Xmanager, the direct rendering doesn't seem to be enabled.

glxinfo | grep "direct rendering"
direct rendering: no

I am using the Nvidia Quadro K 600 1 GB DDR3 cards.


How do i use VirtualGl to resolve this?
 
Old 10-27-2014, 04:19 AM   #12
dcommander
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: Disabled
Set up VirtualGL per the instructions in the VirtualGL User's Guide, then do

vglrun glxinfo

in your VNC session. If you don't use vglrun, then the OpenGL application will be trying to use the built-in OpenGL renderer in the VNC server (or whatever other X11 proxy you're using), which will be software rendering only. VirtualGL intercepts and re-routes the 3D rendering commands to the hardware-accelerated (DRI-enabled) display (usually :0).

If you need additional help, please post on the VirtualGL-Users mailing list (http://sourceforge.net/p/virtualgl/mailman/)
 
1 members found this post helpful.
Old 10-27-2014, 10:43 PM   #13
vivek056
LQ Newbie
 
Registered: Oct 2014
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by dcommander View Post
Set up VirtualGL per the instructions in the VirtualGL User's Guide, then do

vglrun glxinfo

in your VNC session. If you don't use vglrun, then the OpenGL application will be trying to use the built-in OpenGL renderer in the VNC server (or whatever other X11 proxy you're using), which will be software rendering only. VirtualGL intercepts and re-routes the 3D rendering commands to the hardware-accelerated (DRI-enabled) display (usually :0).

If you need additional help, please post on the VirtualGL-Users mailing list (http://sourceforge.net/p/virtualgl/mailman/)
Hey,

I tried running the command and getting this error.

[root@nvidia ~]# rpm -qa | grep Virtual
VirtualGL-2.3.90-20140717


[root@nvidia ~]# vglrun glxinfo
[VGL] ERROR: Could not open display :0.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-platform remote control / remote desktop software trafikpolisen Linux - Software 5 01-24-2010 12:27 AM
How to call Shell Script on a remote server with remote servers env variables need Linux - Server 1 10-14-2009 08:37 PM
Scripting Remote Logon - Starting Remote Gnome Desktop klmukp Linux - Newbie 1 09-21-2008 12:13 AM
Anyone got the Remote Wonder (ATI's USB remote control) to work under Linux? dezireduser Linux - Hardware 2 11-06-2005 08:47 AM
using linux to redirect remote vpn traffic to another remote machine brb5548 Linux - Networking 0 06-28-2003 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration