8 Comments to “How to Enable Automatic Login in Ubutnu”

  1. Ivan says:

    Automatic login in Ubuntu 8.04 causes that keyboard switching applet stops work.

  2. Guru says:

    I added the following command to Session (System -> Preferences -> Session)
    gnome-screensaver-command --lock

    Why? When I login now:
    * all programs are fully loaded
    * all e-mails are retrieved
    * no waiting time after login to work
    * computer is locked, so nobody but me can use it

  3. jacrider says:

    I like this. I have a headless server that is a pain to reboot. This way, I could have it boot and auto login, then lock the screen saver automatically. This way I can RemoteAccess into the box. Now, I can’t seem to get RemoteAccess until logged in the first time at the console.

  4. uzisuicide says:

    Nice tip, thanks you …

  5. Abhisek says:

    Nice tip indeed. I get irritated sometimes typing in the same username and pass the hundredth time.

  6. Érick says:

    How can I do that on shell?

  7. Steve says:

    Erick,
    Did you figure out how to change the auto login setting via the console. We have a machine which we only have console access to and we would like to enable the remote access to the desktop via vnc. If we knew which file the auto login setting was stored in we could change it via the console and reboot.

  8. Tafadzwa says:

    Steve, You can edit the file /etc/gdm/gdm.conf to setup auto login which will allow you to vnc to the client.

    # Automatic login, if true the first attached screen will automatically logged
    # in as user as set with AutomaticLogin key.
    AutomaticLoginEnable=true //This line to true
    AutomaticLogin=’USERNAME’ // Your username on this line with out the single quote

Leave a Reply