How do X11 sessions work?

Andre Tann atann at alphasrv.net
Mon Feb 3 12:40:32 UTC 2025


Hi all,

I thought I know roughly how X11 sessions work, but had to find out that 
this is not the case.

On my Lubuntu I wanted to be able to connect from remote using RDP, so I 
installed XRDP. I can connect to it from remote using xfreerdp, but what 
I find is that the local X session behaves differently from the one 
started via RDP.

1. The display variables look like so:

	# local:
	user at lubuntu:~$ echo $DISPLAY
	:0

	# rdp:	
	user at lubuntu:~$ echo $DISPLAY
	:10.0

2. Starting a program:
	a. If I start the Lubuntu updater in the rdp session, it opens
	   on the local display.

	b. If I start the Firefox browser in the rdp session, it opens
	   on the rdp session

3. Sound:
	a. on the local display: in the volume mixer, I see my sound
	   devices

	b. in the rdp session, there are no sound devices

4. Desktop

	a. on the local display, I see my background image and desktop
	   symbols, like Trash...

	b. in the rdp session, no background image, no symbols


Can someone explain the differences between the sessions to me pls?


-- 
Andre Tann




More information about the ubuntu-users mailing list