Results 1 to 9 of 9

Thread: Lubuntu auto login

  1. #1
    Join Date
    Jun 2007
    Beans
    56

    Lubuntu auto login

    hello I installed lubuntu-desktop on an old computer for my cousins kids
    from the lucid mini.iso
    can someone help me set up auto login for them?
    Last edited by JUSTINBEAIRD; May 4th, 2010 at 09:00 AM.

  2. #2
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,187

    Re: Lubuntu auto login

    /etc/lxdm/default.conf

    just uncomment to activate it & put your name.

    mine looks like this.
    Last edited by kerry_s; May 21st, 2010 at 03:37 PM.

  3. #3
    Join Date
    Nov 2008
    Beans
    13

    Re: Lubuntu auto login

    thanks, it works for me

  4. #4
    Join Date
    Apr 2007
    Beans
    26

    Re: Lubuntu auto login

    Worked great for me too - if anyone else wants to do this, it's just a few easy steps:

    Open Accessories->LXTerminal

    Type the text below and hit enter

    Code:
    sudo leafpad /etc/lxdm/default.conf
    Type your password when prompted, and hit enter again.

    Add this line to the text beneath the [base] section, substituting your username:

    Code:
    autologin=myusername
    Save the file, and you're done!

    Thanks for the advice
    Last edited by w1zard; May 11th, 2010 at 10:42 AM.

  5. #5
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,187

    Re: Lubuntu auto login

    Quote Originally Posted by w1zard View Post
    Worked great for me too - if anyone else wants to do this, it's just a few easy steps:

    Open Accessories->LXTerminal

    Type the text below and hit enter

    Code:
    sudo leafpad /etc/lxdm/default.conf
    Type your password when prompted, and hit enter again.

    Add this line to the text beneath the [base] section, substituting your username:

    Code:
    autologin=myusername
    Save the file, and you're done!

    Thanks for the advice
    your suppose to use "gksudo" for graphical programs, then you can just use your alt+f2 run command.

    i actually use a script for mine in /usr/local/bin which overides the leafpad command, i have nopasswd set in sudoers for it:
    Code:
    #!/bin/bash
    
    test=`stat -c %U "$@"`
    if [ "$test" == "root" ]; then
    	gksudo /usr/bin/leafpad "$@" &
    else
    	/usr/bin/leafpad "$@" &
    fi
    exit 0
    makes life easy.
    Last edited by kerry_s; May 21st, 2010 at 03:37 PM.

  6. #6
    Join Date
    Apr 2007
    Beans
    26

    Re: Lubuntu auto login

    Thanks for the tips! This certainly makes life easier

  7. #7
    Join Date
    May 2007
    Beans
    85

    Re: Lubuntu auto login

    I got some sort of an error message at reboot saying something about xsession missing and not finding fallback session so I had to remove it again. Someone know what went wrong?

  8. #8
    Join Date
    Dec 2007
    Location
    pacific northwest
    Beans
    245
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Lubuntu auto login

    from http://www.itworld.com/operating-sys...tic-login-mode

    In Ubuntu releases starting with 12.04, however, you need to edit a different file. With the new display manager, lightdm, a different file is used to manage this setting. So, you edit the /etc/lightdm/lightdm.conf file instead.

    lightdm is an X display manager that is fast, extensible and provides the ability to use multiple desktops -- like lubuntu and OpenBox. The lightdm.conf file, after your changes, will look something like this. Note the lack of # signs on the autologin lines:

    [SeatDefaults]
    autologin-user=spongebob
    autologin-user-timeout=0
    user-session=Lubuntu
    greeter-session=lightdm-gtk-greeter
    You can switch back to the using a username and password to log in in by reversing the changes described above. Put the comment markers back in front of the autologin lines and reboot.
    Nothing to see here

  9. #9
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,807
    Distro
    Ubuntu 20.04 Focal Fossa

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •