<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br><div>Hi all,</div><div><br></div><div>I've found the solution just now...</div><div><br></div><div>LightDM wiki shows that LightDM has 2 configuration folders: /etc/lightdm and /usr/share/lightdm, so I investigate these 2 folders in xubuntu. I found this file /etc/lightdm/lightdm.conf.d/10-xubuntu and its content is "user-session=xubuntu", which correspond to /usr/share/xsessions/xubuntu.desktop.</div><div><br></div><div>I make my solution as to xubuntu's:</div><div>1. in rootfs squashfs, create /etc/lightdm/lightdm.conf.d/10-xfce</div><div>2. write to its content as follows:</div><div><div>[SeatDefaults]</div><div>user-session=xfce</div></div><div>where "xfce" corresponds to /usr/share/xsessions/xfce.desktop which is installed by "apt-get install xfce4".</div><div><br></div><div>Now LightDM boots with autologin enabled.</div><div><br></div><br><br><div></div><div id="divNeteaseMailCard"></div><br>At 2014-06-17 01:09:14, "McArthor Lee" <macarthorzhuce@126.com> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi list,</div><div><br></div><div>I'm making a LiveCD based upon ubuntu core, and have some problems.</div><div><br></div><div>Let's see what I've been done before the problems.</div><div>1. download 2 files: xubuntu-14.04-desktop-i386.iso, ubuntu-core-14.04-core-i386.tar.gz.</div><div>2. mount the ISO to some place, and copy its content to some directory, say, /root/custom/livecd/. And then remove <span style="font-family: Arial; line-height: 1.7;">/root/custom/livecd/casper/filesystem.squashfs, which is what I'm going to build from ubuntu core. Note: the vmlinuz and initrd.lz is official stock, except that I customize initrd.lz file "/etc/casper.conf" to modify "USERNAME" to "myuser", and "/scripts/casper-bottom/25adduser" to make password from blank to "mypassword" (encrypted by mkpasswd command).</span></div><div><span style="font-family: Arial; line-height: 1.7;">3. untar/gz </span><span style="font-family: Arial; line-height: 1.7;">ubuntu-core-14.04-core-i386.tar.gz to </span><span style="font-family: Arial; line-height: 1.7;">/root/custom/make_squashfs/</span></div><div><span style="font-family: Arial; line-height: 1.7;">4. chroot </span><span style="font-family: Arial; line-height: 1.7;">/root/custom/make_squashfs/</span></div><div><span style="font-family: Arial; line-height: 1.7;">5. mount -t proc proc /proc && mount -t sysfs sysfs /sys && mount -t devpts devpts /dev/pts/ && export HOME=/root</span></div><div><span style="font-family: Arial; line-height: 1.7;">6. locale-gen en_US.UTF-8</span></div><div><span style="font-family: Arial; line-height: 1.7;">7. apt-get update && apt-get install xxx # includes XFCE4, linux-image-generic, lightdm, lightdm-gtk-greeter casper, user-setup and some other packages.</span></div><div><span style="font-family: Arial; line-height: 1.7;">8. umount /proc && umount /sys && umount /dev/pts && exit</span></div><div><span style="font-family: Arial; line-height: 1.7;">9. mksquashfs . ../livecd/casper/filesystem.squashfs</span></div><div><span style="font-family: Arial; line-height: 1.7;">10. mkisofs xxxxxx</span></div><div><span style="font-family: Arial; line-height: 1.7;"><br></span></div><div><span style="font-family: Arial; line-height: 1.7;">Now the ISO can boot to lightdm login screen, but I cannot automatically login with myuser/mypasswd: the login dialogue shows. I think this user should be auto loginnable.</span></div><div><span style="font-family: Arial; line-height: 1.7;"><br></span></div><div><span style="font-family: Arial; line-height: 1.7;">Take xubuntu LiveCD as an correct example, it has built-in user "xubuntu" defined in "/etc/casper.conf" in initrd.lz, and can auto login to desktop. And, xubuntu initrd.lz "/scripts/casper-bottom/15autologin" writes autologin configurations to /root/etc/lightdm/lightdm.conf, which will become the "/etc/lightdm/lightdm.conf" after switching root to squashfs image. Its content is:</span></div><div>[SeatDefaults]</div><div><span style="font-family: Arial; line-height: 1.7;"><div>allow-guest=false</div><div>autologin-guest=false</div><div>autologin-user=myuser</div><div>autologin-user-timeout=0</div><div>autologin-session=lightdm-autologin</div></span></div><div><span style="font-family: Arial; line-height: 1.7;"><br></span></div><div><span style="font-family: Arial; line-height: 1.7;">So my question is:</span></div><div><span style="line-height: 1.7;">How to auto login "myuser" to desktop? Do I miss any package installation? Or do I missed some configuration?</span></div><div><br></div><div>Any suggestions are appreciated.</div></div></div></blockquote></div>