Technology Encyclopedia Home >How to enable auto-login in SDDM?

How to enable auto-login in SDDM?

To enable auto-login in SDDM (Simple Desktop Display Manager), you typically need to edit the SDDM configuration file. Here’s how you can do it:

  1. Locate the Configuration File: The SDDM configuration file is usually located at /etc/sddm.conf or /etc/sddm/sddm.conf.

  2. Edit the Configuration File: Use a text editor to open the configuration file. For example, you can use nano or vim:

    sudo nano /etc/sddm.conf
    
  3. Find or Add the [Autologin] Section: Look for the [Autologin] section in the file. If it doesn’t exist, you can add it.

  4. Configure Autologin: Add or modify the following lines in the [Autologin] section:

    [Autologin]
    User=your_username
    Session=your_session_name
    

    Replace your_username with your actual username and your_session_name with the name of the session you want to use (e.g., plasma, gnome, etc.).

  5. Save and Exit: Save the changes and exit the text editor.

  6. Restart SDDM: Restart SDDM to apply the changes:

    sudo systemctl restart sddm
    

Example

If your username is john and you want to use the plasma session, your [Autologin] section should look like this:

[Autologin]
User=john
Session=plasma

Cloud-Related Recommendation

If you are managing multiple servers or need a centralized way to handle configurations, consider using cloud services like Tencent Cloud’s Cloud Management Console. It provides a unified interface for managing various aspects of your cloud infrastructure, including server configurations and automated tasks.

By following these steps, you should be able to enable auto-login in SDDM effectively.