tigervnc and xrdp refuses to work

hello i am using freebsd on my computer (not headless device and using DE on it and installed display drivers - nvidia)
and i wish to be able to connect to it its DE remotely not just ssh but both tigervnc and xrdp refuses to work

Code:
uname -a
FreeBSD freebsd 15.1-RELEASE-p3 FreeBSD 15.1-RELEASE-p3 releng/15.1-n283611-88e7371d9dc2 GENERIC amd64

tigervnc errors :

Code:
Xvnc TigerVNC 1.16.2 - built Aug 25 2026 04:08:44Copyright (C)
Could not find any render nodesFailed to initialize DRI3 extension
(EE) 
(EE) Backtrace:
(EE) unw_get_proc_name failed: no unwind info found [-10](EE) 0: /usr/local/bin/Xvnc (?+0x0) [0x41453a](
EE) unw_get_proc_name failed: no unwind info found [-10](EE) 1: /lib/libthr.so.3 (?+0x0) [0x82a3f145a]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 2: /lib/libthr.so.3 (?+0x0) [0x82a3f0a5b](EE) 3: [vdso] (?+0x0) [0x82149d2d3]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 4: /usr/local/lib/libnvidia-egl-gbm.so.1 (?+0x0) [0x8689f46f9]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 5: /usr/local/lib/libEGL_nvidia.so.0 (?+0x0) [0x85d2a0799]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 6: /usr/local/lib/libEGL_nvidia.so.0 (?+0x0) [0x85d23c38f]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 7: /usr/local/lib/libEGL.so.1 (?+0x0) [0x85ca26ac1]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 8: /usr/local/lib/dri/swrast_dri.so (?+0x0) [0x85b336510]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 9: /usr/local/bin/Xvnc (?+0x0) [0x322dd4]
(EE) unw_get_proc_name failed: no unwind info found [-10]
(EE) 10: /usr/local/bin/Xvnc (?+0x0) [0x306c26]
(EE) 11: /usr/local/bin/Xvnc (_CallCallbacks+0x3f) [0x3bf90f]
(EE) 12: /usr/local/bin/Xvnc (GlxExtensionInit+0x13f) [0x32a32f]
(EE) 13: /usr/local/bin/Xvnc (InitExtensions+0x4f) [0x2d134f]
(EE) 14: /usr/local/bin/Xvnc (dix_main+0x202) [0x3be322]
(EE) 15: /lib/libc.so.7 (__libc_start1+0x12f) [0x830ee223f](
EE) 16: /usr/local/bin/Xvnc (_start+0x24) [0x2cf294]
(EE)
(EE) Segmentation fault at address 0x80000001000
(EE) Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE)




xrdp errors :


1788431596831.png
 

Attachments

I use xrdp regularly, and it has worked for me with minimal fuss.
Let's start with some basics:
Are you using xorg, xlibre, or Wayland?
Things should work the same with xorg or xlibre, but there may be enough differences to matter.

Did you change anything in the xrdp.ini or sesman.ini files found in /usr/local/etc/xrdp?
Did you set your desktop environment in startwm.sh? If so, what did you put there?

Also, it would probably be helpful to review the /var/log/Xorg.0.log as the xrdp message suggests.
 
I use xrdp regularly, and it has worked for me with minimal fuss.
Let's start with some basics:
Are you using xorg, xlibre, or Wayland?
Things should work the same with xorg or xlibre, but there may be enough differences to matter.

Did you change anything in the xrdp.ini or sesman.ini files found in /usr/local/etc/xrdp?
Did you set your desktop environment in startwm.sh? If so, what did you put there?

Also, it would probably be helpful to review the /var/log/Xorg.0.log as the xrdp message suggests.
i use xorg (i think it is configred correctly i can get desktop to work on my monitor but idk for sure)
i didnt touch xrdp.ini or sesman.ini
in startwm.sh just commented out my DE (plasma) so i think this is all what i need here
here is also the xorg logs
 

Attachments

You might want to read pkg info -D xrdp
i readed it again

i need to install pkg install x11-drivers/xorgxrdp but now i have another issue

i need now to edit to /etc/X11/xrdp/xorg.conf , for my device but i dont know what i need to do drm-kmod is for amd and intel not nvidia so i used (nvidia-drm-kmod)

but now how to find my render device and should i keep DRMAllowlist as is or edit it for nvidia

xorgrdp package info


1788442195909.png
 
i readed it again

i need to install pkg install x11-drivers/xorgxrdp but now i have another issue

i need now to edit to /etc/X11/xrdp/xorg.conf , for my device but i dont know what i need to do drm-kmod is for amd and intel not nvidia so i used (nvidia-drm-kmod)

but now how to find my render device and should i keep DRMAllowlist as is or edit it for nvidia

View attachment 27177

View attachment 27176
I believe this is only needed if you want some sort of hardware acceleration. I don't need that, and don't install those drivers, and it is working well for basic access.

i use xorg (i think it is configred correctly i can get desktop to work on my monitor but idk for sure)
i didnt touch xrdp.ini or sesman.ini
in startwm.sh just commented out my DE (plasma) so i think this is all what i need here
here is also the xorg logs
I didn't see anything in the xorg log that clued me in on a problem, but I might be missing something.
I have found that the default lines in startwm.sh are not always correct for loading the DE. I don't use plasma, but use XFCE and TWM. Instead of using what is in startwm.sh by default, I have to input what I would normally put in for .xinitrc. You might try using:
Code:
exec dbus-launch --exit-with-x11 ck-launch-session startplasma-x11

Alternatively, to make sure it is not just an issue with plasma, try loading just a twm session, using this in startwm.sh:
Code:
exec /usr/local/bin/twm
If you haven't worked with twm before, you will just get a blank screen, but if you right-click on the screen, a menu will pop up, and you will have the option to exit and end the session. That will confirm if the xorg and xrdp are properly working, and if the issue comes down to something with plasma.
 
13 freebsd xrdp[1963]: [ERROR] SSL_read: 1/0 error
recomm
:95:13 freebsd xrdp[1963]: [ERROR] libxrdp_force_read: header read error
05:13 freebsd xrdp[1963]: [ERROR] Processing CITU-T T.125] Connect-Initial failed
05:13 freebsd xrdp[1963]: [ERROR] [MCS Connection Sequence] receive connection request failed
:05:13 freebsd xrdp[1963): [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
95:13 freebsd xrdp[1963]: [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
95;13 freebsd xrdp[1963]: [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
05;13 freebsd xrdp[1963]: [ERROR] xrdp_iso_send: trans_write_copy_s failed
95:13 freebsd xrdp[1963]: [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
20 freebsd Xorg[19671: Argument -noreset is removed in xLibre (for more context: https://gith
:38 freebsd xrdp-sesexec[1966]: [ERROR] waitforx: Unable to open display :10
95:30 freebsd xrdp-sesexec[1966]: [ERROR] X server failed to start
29:28 freebsd xrdp[1964]: [ERROR] xrdp_sec_recv: xrdp_mcs_recv failed
29:28 freebsd xrdp[1964]: [ERROR] xrdp_rdp_recv: xrdp_sec_recv failed
23i2s
:28 freebsd xrdp[1964]
CERROR] libxrdp_process_data: xrdp_rdp_recv failed
freebsd xrdp[1964]
CERROR] xrdp_process_data_in: xrdp_process_loop failed
:29:28 freebsd xrdp[1964]: CERROR] SSL_shutdown: 1/0 error
:29:28 freebsd xrdp[1964]: [ERROR] SSL: error:80000020:system library::Broken pipe
;29:28 freebsd syslogd: last message repeated 1 times
 
For your information, I had xrdp that wasn't working since a few months. I looked into the logs but found no clue. It just said: "failed to start Xorg".

Reading this thread, I installed xorgxrdp and it worked. I verified that if I deinstall xorgxrdp, it doesn't work anymore and that the case (only if you disconnect the session). There is no config to do conversely at what you read in the xorgxrdp installation message.

I have xrdp-0.10.6.1_1,1 and now, xorgxrdp-0.10.5_1. I had set the certificate and key in xrdp.ini and also set the correct command in startwm.sh, the one I have in my user .xinitrc. It's important.
 
For your information, I had xrdp that wasn't working since a few months. I looked into the logs but found no clue. It just said: "failed to start Xorg".

Reading this thread, I installed xorgxrdp and it worked. I verified that if I deinstall xorgxrdp, it doesn't work anymore and that the case (only if you disconnect the session). There is no config to do conversely at what you read in the xorgxrdp installation message.

I have xrdp-0.10.6.1_1,1 and now, xorgxrdp-0.10.5_1. I had set the certificate and key in xrdp.ini and also set the correct command in startwm.sh, the one I have in my user .xinitrc. It's important.
what is your GPU also is your setup headless?
 
For your information, I had xrdp that wasn't working since a few months. I looked into the logs but found no clue. It just said: "failed to start Xorg".

Reading this thread, I installed xorgxrdp and it worked. I verified that if I deinstall xorgxrdp, it doesn't work anymore and that the case (only if you disconnect the session). There is no config to do conversely at what you read in the xorgxrdp installation message.

I have xrdp-0.10.6.1_1,1 and now, xorgxrdp-0.10.5_1. I had set the certificate and key in xrdp.ini and also set the correct command in startwm.sh, the one I have in my user .xinitrc. It's important.
Glad that this thread helped you , hopefully it will help me getting this running too
 
what is your GPU also is your setup headless?
Not really headless, it's connected to the TV, and there is a Xorg session always open (even if I display rarely it).

I have an Intel HD630 and drm-61-kmod + firmwares. I didn't specify these to xrdp or xorgxrdp. It seems it uses the existing Xorg parameters.

A test with glxgears shows that it's accelerated by this HD630.
 
Not really headless, it's connected to the TV, and there is a Xorg session always open (even if I display rarely it).

I have an Intel HD630 and drm-61-kmod + firmwares. I didn't specify these to xrdp or xorgxrdp. It seems it uses the existing Xorg parameters.

A test with glxgears shows that it's accelerated by this HD630.
the issue that i have nvidia card which not listed in /etc/X11/xrdp/xorg.conf DRMAllowlist
freebsd is really bad with nvidia - got alot of headaches getting desktop to work at all with my card
 
Back
Top