From af86d611c5d338409e21581b54cb529c5a775bb8 Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Fri, 31 May 2013 13:53:25 -0400 Subject: [PATCH] Add default lightdm setup and make sure that system user is not shown by bumping system UID_MIN --- live-build/ubuntu-touch/hooks/01-setup_user.chroot | 3 +++ .../ubuntu-touch/includes.chroot/etc/lightdm/lightdm.conf | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 live-build/ubuntu-touch/includes.chroot/etc/lightdm/lightdm.conf diff --git a/live-build/ubuntu-touch/hooks/01-setup_user.chroot b/live-build/ubuntu-touch/hooks/01-setup_user.chroot index dbf56e95..4541b6e4 100755 --- a/live-build/ubuntu-touch/hooks/01-setup_user.chroot +++ b/live-build/ubuntu-touch/hooks/01-setup_user.chroot @@ -11,6 +11,9 @@ echo "$USER:$USER" | chpasswd adduser --gecos system --no-create-home --disabled-login --disabled-password system --uid 1000 +# Prevent the system user from being presented in the greeter by bumping MIN_UID +sed -i 's/^\(UID_MIN\s\+\).*/\11001/g' /etc/login.defs + mkdir -p /home/$USER/Music mkdir -p /home/$USER/Pictures mkdir -p /home/$USER/Videos diff --git a/live-build/ubuntu-touch/includes.chroot/etc/lightdm/lightdm.conf b/live-build/ubuntu-touch/includes.chroot/etc/lightdm/lightdm.conf new file mode 100644 index 00000000..962900ed --- /dev/null +++ b/live-build/ubuntu-touch/includes.chroot/etc/lightdm/lightdm.conf @@ -0,0 +1,5 @@ +[SeatDefaults] +user-session=ubuntu-touch +greeter-session=qml-phone-greeter +autologin-user=phablet +autologin-in-background=true