3

I am trying to enable automatic log-in on a linux PC that starts a QT application on startup. There is only one user account on the machine, and I have Automatic Login "ON" in the user settings. Screen Lock is "OFF" in Privacy settings.

However, when the computer is started, a lock screen still appears where I select the user, which brings up the password entry screen. Once the password is entered, my QT application starts up.

I want to disable the login screen so that when the computer is started, the QT application comes up immediately. The monitor is a touch screen, so by disabling the password entry screen, there will be no need for a keyboard. Any help is appreciated, and please let me know if I can provide more information. Thank you!

drifter
  • 31

1 Answers1

1

Edit /etc/lightdm/lightdm.conf and add the following:

[SeatDefaults]
autologin-user=<YOUR USER>
autologin-user-timeout=0
user-session=ubuntu
# Uncomment the following, if running Unity
#greeter-session=unity-greeter

Suggested here

You could also check if with switching to gdm3 autologin works:

sudo apt install gdm3
sudo dpkg-reconfigure gdm3
Gryu
  • 8,002
  • 9
  • 37
  • 53