Table of Contents
Automatic Login in Xubuntu
Enable Automatic Login
To configure Xubuntu to automatically log in the user “username” at startup:
Method 1: Terminal Configuration (Recommended)
Create the LightDM configuration directory if it doesn't exist:
sudo mkdir -p /etc/lightdm/lightdm.conf.d/
Create a configuration file for auto-login:
sudo nano /etc/lightdm/lightdm.conf.d/12-autologin.conf
Add the following lines to the file:
[Seat:*] autologin-user=username autologin-session=xubuntu
Save the file (Ctrl+O, then Enter) and exit (Ctrl+X)
Restart the system to apply changes: sudo reboot
Method 2: GUI Method (Partial Solution)
This method disables password requirement but may still require clicking the login button:
Open Settings Manager Navigate to “Users and Groups” Click “Change” next to “Password” Check “Don't ask for password on login” Enter your password to confirm changes
Disable Automatic Login
To revert to the standard login screen:
Troubleshooting
If automatic login doesn't work:
Verify your display manager:
cat /etc/X11/default-display-manager
Ensure LightDM is properly installed:
sudo apt install --reinstall lightdm
Check LightDM status:
systemctl status lightdm