Many thanks for your response.
As a run down of where I’m coming from:
I have tried Raspberry pi OS, with and without desktop and compared to dietpi they are sluggish.
I installed VNC on a system I have running
Linux XXXXXX 6.12.47+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.47-1+rpt1~bookworm (2025-09-16) aarch64
This installs wayvnc and works with a normal user with no apparent issues.
My aim is to run a telescope from a RPiZ2W from a small battery. So far I can run the RPiZ2 for over 12hrs on a 1000mAh USB battery.
I have tried the original Astroberry but it is out of date and sluggish. I tried a newer version which runs on DietPI and the image is for RPiZ2w. These apps will not run as root and I can only use them in a desktop.
If I install raspberry pi os I will end up with a sluggish machine again and I will have to manually load the apps some of which I’m not familiar with.
DietPi is very responsive so should be a good solution.
So:
I unstalled tigerVNC, rebooted and
Installed LXDE + Xrdp
X11 gets installed as well
I used LightDM login mask
Updated locales, keyboard and time-zone because I noticed I hadn’t
Using RDT on windows 10:
Logging in as normal user gives blue screen which closes after a few seconds.
Windows Rdt informs me
Which I assume corresponds to the log entries
[ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
and
[WARN ] Cannot accept TLS connections because certificate or private key file is not readable. certificate file: [/etc/xrdp/cert.pem], private key file: [/etc/xrdp/key.pem]
ls -al gives
lrwxrwxrwx 1 root root 36 Oct 19 09:23 cert.pem -> /etc/ssl/certs/ssl-cert-snakeoil.pem
lrwxrwxrwx 1 root root 38 Oct 19 09:23 key.pem -> /etc/ssl/private/ssl-cert-snakeoil.key
so link permissions OK
but
-rw-r----- 1 root ssl-cert 1704 Oct 19 09:23 ssl-cert-snakeoil.key
-rw-r--r-- 1 root root 1078 Oct 19 09:23 /etc/ssl/certs/ssl-cert-snakeoil.pem
So I brute forced a chmod 777 to the two files and now I don’t get the error in the log but the desktop opens and closes immediately.
I reverted the chmods and it doesn’t complain any more. Don’t understand this unless the certs have inherited the link’s permissions.
I installed the cert on the windows machine but it still complains so I accept the error each time.
It’s telling me that the server name is incorrect and it’s not from a trusted authority.
SO!!
I read the last para of your post and ran startx from a root terminal and used rdt to login as root and the blank (black) desk top persisted for several attempts but something changed and it no longer opens with x running or not.
I’m confused!
the journalclt -u xrdp shows connected ok even after the windows side has closed
Oct 19 11:31:54 DietPi xrdp[480]: [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.0.107 port 14158
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] Security protocol: configured [SSL|RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [SSL]
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] Connected client computer name: ANOTHER-PC
Oct 19 11:31:54 DietPi xrdp[2242]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
Oct 19 11:31:54 DietPi xrdp[2242]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000809]
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [gb] options []
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] TLS connection established from ::ffff:192.168.0.107 port 14158: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 5242880 MB cache entries 100
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
Oct 19 11:31:54 DietPi xrdp[2242]: [WARN ] xrdp_caps_process_codecs: unknown codec id 5
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49
Oct 19 11:31:54 DietPi xrdp[2242]: [INFO ] Loading keymap file /etc/xrdp/km-00000809.ini
Oct 19 11:31:54 DietPi xrdp[2242]: [WARN ] local keymap file for 0x00000809 found and doesn't match built in keymap, using local keymap file
Oct 19 11:32:01 DietPi xrdp[2242]: [INFO ] connecting to sesman on 127.0.0.1:3350
Oct 19 11:32:01 DietPi xrdp[2242]: [INFO ] xrdp_wm_log_msg: sesman connect ok
Oct 19 11:32:01 DietPi xrdp[2242]: [INFO ] sesman connect ok
Oct 19 11:32:01 DietPi xrdp[2242]: [INFO ] sending login info to session manager. Please wait...
Oct 19 11:32:01 DietPi xrdp[2242]: [INFO ] xrdp_wm_log_msg: login successful for user root on display 10
Oct 19 11:32:01 DietPi xrdp[2242]: [INFO ] login successful for user root on display 10
Oct 19 11:32:01 DietPi xrdp[2242]: [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
Oct 19 11:32:01 DietPi xrdp[2242]: [INFO ] started connecting
Oct 19 11:32:01 DietPi xrdp[2242]: [INFO ] lib_mod_connect: connecting via UNIX socket
Oct 19 11:32:02 DietPi xrdp[2242]: [INFO ] lib_mod_log_peer: xrdp_pid=2242 connected to X11rdp_pid=2254 X11rdp_uid=0 X11rdp_gid=0 client_ip=::ffff:192.168.0.107 client_port=14158
Oct 19 11:32:02 DietPi xrdp[2242]: [INFO ] connected ok
Now I hope I haven’t swamped you with useless info but there is obvious a permission error as you predicted, and for some reason the desktop/rdt windows closes.
I suppose I could try the wayland vnc but you indicated that “other” apps may have conflicts.
So I’m looking for suggestions.
Many thanks
Andy