Nvidia xrdp

Hello,

My config is:

[root@pdgm2 ~]# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)
[root@pdgm2 ~]# lspci | grep NV
00:05.0 3D controller: NVIDIA Corporation Device 2235 (rev a1)

I installed: NVIDIA_Tesla_Linux_Driver-550.90.07.run (Xorg.0.log in attachment)
run config: nvidia-xconfig (xorg.conf in attachment)
reboot

[root@pdgm2 ~]# nvidia-smi 
Sat Jul 13 13:27:16 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.90.07              Driver Version: 550.90.07      CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA A40                     Off |   00000000:00:05.0 Off |                    0 |
|  0%   25C    P8             12W /  300W |     142MiB /  46068MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1293      G   /usr/bin/X                                    108MiB |
|    0   N/A  N/A      1353      G   /usr/bin/gnome-shell                           14MiB |
+-----------------------------------------------------------------------------------------+
[pgadm@pdgm2 ~]$ glxinfo -B
name of display: :10.0
display: :10  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: VMware, Inc. (0xffffffff)
    Device: llvmpipe (LLVM 7.0, 128 bits) (0xffffffff)
    Version: 18.3.4
    Accelerated: no
    Video memory: 32157MB
    Unified memory: no
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 2.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 7.0, 128 bits)
OpenGL version string: 2.1 Mesa 18.3.4
OpenGL shading language version string: 1.20
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 18.3.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
[pgadm@pdgm2 ~]$ glxgears -info
GL_RENDERER   = llvmpipe (LLVM 7.0, 128 bits)
GL_VERSION    = 2.1 Mesa 18.3.4
GL_VENDOR     = VMware, Inc.
...
3731 frames in 5.0 seconds = 746.193 FPS
3630 frames in 5.0 seconds = 725.977 FPS

I have no access to local console.
I have access only xrdp.
As I understand from glxgears, nvidia driver not works at xrdp.

Is driver installed and running correctly? Is nvidia-smi shows GPU works?
Is it possible run nvidia driver in xrdp?

Xorg.0.log (29.2 KB)
xorg.conf.txt (1.2 KB)

From internet I found solution.
Install x11vnc, configure run as daemon display 0 with port 5900.
Configure xrdp.ini connect to x11vnc.
xrdp.ini:

[X11vnc]
name=X11vnc
lib=libvnc.so
username=ask
password=ask
ip=127.0.0.1
port=5900