We have had some problems with getting the latest version of sddm to work properly so I have been investigating lightdm.

I had a bit of trouble getting lightdm to work, but finally figured it out.

I am using:

lightdm-1.24.0:

    ./configure                      \
       --prefix=/usr                 \
       --libexecdir=/usr/lib/lightdm \
       --localstatedir=/var          \
       --sbindir=/usr/bin            \
       --sysconfdir=/etc             \
       --disable-static              \
       --disable-tests               \
       --with-greeter-user=lightdm   \
       --with-greeter-session=lightdm-gtk-greeter &&
    make &&
    sudo make install &&
    sudo cp tests/src/lightdm-session /usr/bin

lightdm-gtk-greeter-2.0.3:

    export CFLAGS="$CFLAGS -Wno-declaration-after-statement" &&

    ./configure                      \
       --prefix=/usr                 \
       --libexecdir=/usr/lib/lightdm \
       --sbindir=/usr/bin            \
       --sysconfdir=/etc             \
       --with-libxklavier            \
       --enable-kill-on-sigterm      \
       --disable-libido              \
       --disable-libindicator        \
       --disable-static              &&

    make &&
    sudo make install

Both build and install without complaint. I had quite a problem figuring out the need for cp tests/src/lightdm-session /usr/bin, but with that the system seems fine.

The configuration is a bit complex.  I basically used the files at Arch:

https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/lightdm

I modified xsession with s:$HOME/.profile:$HOME/.bash_profile: and installed it in /etc/lightdm/

I created /etc/pam.d files lightdm, lightdm-greeter, and lightdm-autologin with:
auth      include     system-auth
password  include     system-password
account   include     system-account
session   include     system-session

where the system-* are the files created in the BLFS pam page.
We may want something else, but I do not know what right now.

I created  the following directories:

/var/lib/lightdm      4770 lightdm lightdm
/var/cache/lightdm    0711 root root
/var/lib/lightdm-data 0755 lightdm lightdm
/var/log/lightdm      0711 lightdm lightdm

the 4770 and0711 permissions seem quite weird to me.  I do not see a
need to use something other than 0770 for any of the above.

I added the lightdm.rules file from arch in /usr/share/polkit-1/rules.d/

I then just ran the lightdm program as root from the command line. The greeter came up and mouse/keyboard were fine.

Customization is another topic. For the most part, google discusses apt-get or yum which do not apply to us, but it appears to be mostly setting up /etc/lightdm/lightdm-gtk-greeter.conf. Also, there is a python based gui to do customization, lightdm-gtk-greeter-settings.

I can try a boot script similar to the sddm version, but have not done that yet.

------

The question is whether we should drop sddm and add lightdm. We still have lxdm and, in the systemd version of the book, gdm.

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to