Correct installation similar to what is done in ArchLinux.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Thu, 2 Oct 2014 15:59:21 +0000 (18:59 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Thu, 2 Oct 2014 15:59:21 +0000 (18:59 +0300)
The ArchLinux is known to have LXDM working well in it.

debian/local/lxdm-environment [new file with mode: 0644]
debian/lxdm.install
debian/lxdm.pam
debian/patches/26_systemd_lxdm_tty.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/local/lxdm-environment b/debian/local/lxdm-environment
new file mode 100644 (file)
index 0000000..2e68c9b
--- /dev/null
@@ -0,0 +1 @@
+GDK_CORE_DEVICE_EVENTS=true
index f32e763..6f8e6f3 100644 (file)
@@ -1 +1,2 @@
 debian/local/lxdm.insserv      /etc/insserv.conf.d/
+debian/local/lxdm-environment  etc/
index ee49dff..23b775e 100644 (file)
@@ -6,6 +6,7 @@ auth    requisite       pam_nologin.so
 # Load environment from /etc/environment and ~/.pam_environment
 auth    required        pam_env.so readenv=1
 auth    required        pam_env.so readenv=1 envfile=/etc/default/locale
+auth    required        pam_env.so readenv=1 envfile=/etc/lxdm-environment
 
 # auth    sufficient      pam_succeed_if.so user ingroup nopasswdlogin
 @include common-auth
@@ -36,4 +37,6 @@ session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux
 
 session optional        pam_gnome_keyring.so auto_start
 
+session optional        pam_systemd.so
+
 @include common-password
diff --git a/debian/patches/26_systemd_lxdm_tty.patch b/debian/patches/26_systemd_lxdm_tty.patch
new file mode 100644 (file)
index 0000000..642869e
--- /dev/null
@@ -0,0 +1,15 @@
+Description: change greeter VT from tty1 to tty7.
+Author: idea came from ArchLinux.
+
+--- a/systemd/lxdm.service
++++ b/systemd/lxdm.service
+@@ -1,7 +1,7 @@
+ [Unit]
+ Description=LXDE Display Manager
+-Conflicts=getty@tty1.service plymouth-quit.service
+-After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service
++Conflicts=getty@tty7.service plymouth-quit.service
++After=systemd-user-sessions.service getty@tty7.service plymouth-quit.service
+ [Service]
+ ExecStart=/usr/sbin/lxdm
index db3e99b..b03d0df 100644 (file)
@@ -1 +1,2 @@
 23_debian-config.patch
+26_systemd_lxdm_tty.patch