Unable to login to GUI using dietpi account or new user account

Required Information

  • DietPi version | 8.25.1
  • Distro version | bullseye 0
  • Kernel version | Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • Architecture | arm64
  • SBC model | RPi 4 Model B (aarch64)
  • Power supply used | Official Raspberry Pi charger
  • SD card used | SanDisk Ultra

I am new to Linux in general. So I may not have the right terminology.
I got myself a Raspberry Pi 4 to tinker with, and decided to install DietPi. I managed to install and logged in to the XFCE desktop. I added a new user as I didn’t want to mess with root or dietpi after reading that it is used for some services.

There is a switch user function on the top right corner but when I clicked on it, there was no response. So I decided to reboot the pi and then logged in as the newly created user. But I encountered this error:

(EE) Fatal server error (EE) no screen found (EE) Please consult X.org for support ...(EE) Server terminated with error (1) . Closing log file
xinit: giving up
xinit: unable to connect to X server; Connection refused
xinit: Server error

But I am able to login to the GUI using root but just not dietpi or the new user account.

I would appreciate any kind advice. Thank you.

you could try using LightDM login mask. To active run following

dietpi-autostart 16

after reboot, you should get a login screen for the desktop application. There you should be able to login with your new user.

It worked. Thanks, Joulinar.

After logging in, however, I wasn’t able to launch the system services via the Application menu such as Diet-config, Diet-launcher, Diet-xxxxxx. Is this the expected behavior? However, calling these services via the terminal is fine.

Yeah you would require sudo permissions for opening our scripts

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.