Tuesday, February 3, 2015

Auto-login LightDM to Cinnamon when Boot and Resume from Hibernate on Centos 7

I am setting my home file server and use its monitor to display cctv.


I don't want to enter password every time when boot and hibernate.
I want to only press the power button when turn on and off.

Here is how:

vi /etc/lightdm/lightdm.conf

[SeatDefaults]
autologin-user=<<username>>
autologin-user-timeout=0

Set the power button to hibernate the computer
vi /etc/systemd/logind.conf
HandlePowerKey=hibernate


To avoid login screen when resume from hibernate,
I disable lock screen.

gsettings set org.cinnamon.desktop.lockdown disable-lock-screen true


No comments:

Post a Comment