0

I'm using Ubuntu16.04 and I need to login desktop environment without password.

I have to do the configuration throught remote shell, meaning that I can't do this by clicking "System Settings --- User Accounts --- Automatic Login".

I just googled my question and found a method: vim /etc/lightdm/lightdm.conf and edit it as below:

[SeatDefaults]
autologin-user=USERNAME

I tried, it works.

However, now when I do something, a window will popup:
enter image description here

This will block what I'm doing unless I enter the password.
How to remove this window?


OR, is it possible to do "clicking System Settings --- User Accounts --- Automatic Login" through remote shell?

I've read this:
How can I stop being prompted to unlock the 'default' keyring on boot?

But what I need is to configure all through remote shell. I can't configure through desktop.

Yves
  • 1,358

1 Answers1

0

After editing lightdm.conf, I just need to disable the keyring through remote shell.

I've found a solution as below:

sudo mv /usr/bin/gnome-keyring-daemon /usr/bin/gnome-keyring-daemon-old
sudo killall gnome-keyring-daemon
Yves
  • 1,358