Hello,
I am in the process of setting up a VirtualBox using Ubuntu Server 12.04.2 32-bit using LXDE. The box is on a password-protected host and does not need its own password-protected login.
There seem to be countless procedures and answers for this question across various forums, but none seem to work for me.
To ensure that there is no confusion let me note the following:
(1) The box is first created and Ubuntu Server 12.04.2 32-bit is installed. I then install LXDE as root using the command: "apt-get install lxde". I have not yet made any other alterations to the box (I keep a snapshot at this point so that I can easily revert failed attempts.)
(2) I am not installing lubuntu (which would be installed using the command: "apt-get install lubuntu-core lubuntu-icon-theme lubuntu-restricted-extras"). I tried a lubuntu box, which is similar, but since I was unable to get that to work after about an hour, I decided to focus back on the default LXDE with lxdm. Should also note that I have tried the lubuntu-specific instructions in LXDE with lxdm and they had no effect. I don't even think the config file was ever read by the system at boot up.
(3) I am not using lightdm. I tried a lightdm box and it isn't what I want.
(4) There is no directory /etc/xdg/lxdm/ and no file /etc/xdg/lxdm/lxdm.conf (this would apply to a different setup anyway.)
(5) I have confirmed that the display manager is lxdm by using the following command: "cat /etc/X11/default-display-manager"
(6) Uncommenting #autologin=USERNAME (and obviously changing the USERNAME) in /etc/lxdm/lxdm.conf (which is linked to /etc/lxdm/default.conf and is confirmed to be updated) renders the box unusable. I've seen many people say that this is all you need to do, but it is not. I can provide screenshots to verify that I have done this precisely and that there are no typos. Furthermore, I have done this immediately after the "apt-get install lxde" command, so there is no chance of anything interfering. This is a clean and completely standard installation on a standard Linux 32-bit VirtualBox.
(7) I have found some discussion that the password needs to be deleted with "passwd -d USERNAME" and files located in /etc/pam.d/ need to be edited. However I have not been able to figure out how these files would need to be altered. My attempts so far have failed. I've only been able to find lxdm-related documentation for PAM files for Archlinux and Red Hat.
Here are the current (unaltered by me) contents of /etc/pam.d/lxdm:%PAM-1.0
auth requisite pam_nologin.so
auth required pam_env.so readenv=1
auth required pam_env.so readenv=1 envfile=/etc/default/locale
auth sufficient pam_succeed_if.so user ingroup nopasswdlogin
@include common-auth
auth optional pam_gnome_keyring.so
@include common-account
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinu$
session required pam_limits.so
@include common-session-noninteractive
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinu$
session optional pam_gnome_keyring.so auto_start
@include common-password
Here are the current (unaltered be me) contents of /etc/pam.d/common-auth:# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the
# traditional Unix authentication mechanisms.
#
# As of pam 1.0.1-6, this file is managed by pam-auth-update by default.
# To take advantage of this, it is recommended that you configure any
# local modules either before or after the default block, and use
# pam-auth-update to manage selection of other modules. See
# pam-auth-update(8) for details.
# here are the per-package modules (the "Primary" block)
auth [success=1 default=ignore] pam_unix.so nullok_secure
# here's the fallback if no module succeeds
auth requisite pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
auth required pam_permit.so
# and here are more per-package modules (the "Additional" block)
auth optional pam_ecryptfs.so unwrap
auth optional pam_cap.so
# end of pam-auth-update config
If someone could help me figure this out, I would be very grateful. I have already spent the better part of a day pouring through forums (including this one) and reading documentation and running every search I can conceive of.
While I've learned quite a bit about the internal workings of Ubuntu and LXDE, and it's all been fascinating... I still can't manage to enable a basic feature which I know can be done because I've seen it done on my precise setup.
(In fact I've had this exact setup with autologin enabled running on my computer for a long time, except that it used Ubuntu Server 12.04.2 64-bit. However I need to be able to port this box to a computer that can only run a 32-bit box.)
Feel free to ask any questions that you may need to help me figure this out. I can provide screen caps and provide any necessary information.
Thank you very much!
Matt
tl;dr: This is NOT lubuntu or lightdm. I need a procedure that works for standard LXDE with lxdm as display manager. Just uncommenting the autologin line and putting my username in /etc/lxdm/lxdm.conf does not work or is insufficient. Overall setup is completely standard and clean up to this point.
Bookmarks