En:HOWTO: Setting Up Autologin

From Sabayon Wiki
Jump to: navigation, search
i18n: en it tr
Stop.png
Never enable the Login Manager for the root user

This Howto will help you setting up your Autologin, so that you will need no more to authenticate in a login prompt.
Be aware that this is a security risk, since anyone will be able to get access to your computer with no need of any password or authorization, this is intended just for home computers.

By default Sabayon Linux provided LightDM as Login Manager on the most of Sabayon flavours. You can install the Login Manager you prefer like SDDM,SLIM,GDM and so on but keep in mind only one Login Manager can be enabled on your system and you can install more than one.

LightDM

Edit the config file as shown below

File: /etc/lightdm/lightdm.conf
[...]
autologin-user=<your-user>
[,,,]

Or use the sed stream editor:

# sed -i "s/autologin-user=.*/autologin-user=<your-user>/" /etc/lightdm/lightdm.conf
# sed -i "/^#.*autologin-user=/ s/^#//" /etc/lightdm/lightdm.conf

lightdm Service

Starting

# systemctl lightdm start

Stopping

# systemctl lightdm stop

Enabling

# systemctl enable lightdm

Disabling

# systemctl disable lightdm


SDDM

KDE Plasma Login Manager

Edit the config file as shown below

File: /etc/sddm.conf
Relogin=true
User=<your-user>
Session=default

Or use the sed stream editor:

# sed -i "s/Relogin=.*/Relogin=true/" /etc/sddm,conf
# sed -i "s/^User=.*/User=<your-user>/" /etc/sddm.conf
# sed -i "s/^Session=.*/Session=default/" /etc/sddm.conf

sddm Service

Starting

# systemctl start sddm

Stopping

# systemctl stop sddmEnabling
# systemctl enable sddm

Disabling

# systemctl disable sddm


GDM

GNOME Login Manager

Edit the config file as shown below

File: /usr/share/gdm/defaults.conf
[...]
AutomaticLoginEnable=true
AutomaticLogin=<your-user>
TimedLoginEnable=true
TimedLogin=<your-user>
TimedLoginDelay=0
[...]

Or use the sed stream editor:

# sed -i "s/^AutomaticLoginEnable=.*/AutomaticLoginEnable=true/" /usr/share/gdm/defaults.conf
# sed -i "s/^AutomaticLogin=.*/AutomaticLogin=<your-user> /usr/share/gdm/defaults.conf
# sed -i "s/^TimedLoginEnable=.*/TimedLoginEnable=true/" /usr/share/gdm/defaults.conf
# sed -i "s/TimedLogin=.*TimedLogin=<your-user>/" /usr/share/gdm/defaults.conf
# sed -i "s/TimedLoginDelay=.*/TimedLoginDelay=0/" /usr/share/gdm/defaults.conf

gdm Service

Starting

# systemctl start gdm

Stopping

# systemctl stop gdm

Enabling

# systemctl enable gdm

Disabling

# systemctl disable gdm

SLIM

Edit the config file as shown below

File: /etc/slim.conf
auto_login yes
default_user <your-user>

Or use the sed stream editor:

# sed -i "s/auto_login.*/auto_login\ yes/" /etc/slim.conf /etc/lxdm/lxdm.conf
# sed -i "/^#.*auto_login/ s/^#//" /etc/slim.conf
# sed -i "s/default_user.*/default_user\ <your-user>/" /etc/slim.conf
# sed -i "/^#.*default_user/ s/^#//" /etc/slim.conf

slim Service

Starting

# systemctl start slim

Stopping

# systemctl stop slim

Enabling

# systemctl enable slim

Disabling

# systemctl disable slim