<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>