feat: add GDM customization
disable fingerprint and smartcard login add a banner text and logo on login screen
This commit is contained in:
13
Notes_gdm.md
Normal file
13
Notes_gdm.md
Normal file
@@ -0,0 +1,13 @@
|
||||
Pour désactiver le login avec smartcard, je me suis inspiré de la
|
||||
documentation [GNOME - Disallow login using a fingerprint] propose de
|
||||
créer un profil `user` pour `dconf`, hélas, ça ne fonctionne pas !
|
||||
En revanche, avec un profil `gdm` comme dans [GNOME - Add a greeter logo to
|
||||
the login screen], c'est bon, on observe le comportement attendu, lorsque
|
||||
le dongle PKI est présent dans le port USB, c'est bien un login/password
|
||||
qui est demandé par GDM.
|
||||
Documentation pas à jour ?
|
||||
|
||||
[GNOME - Add a greeter logo to the login screen]: https://help.gnome.org/admin/system-admin-guide/stable/login-logo.html.en
|
||||
[GNOME - Display a text banner on the login screen]: https://help.gnome.org/admin/system-admin-guide/stable/login-banner.html.en
|
||||
[GNOME - Disallow login using a fingerprint]: https://help.gnome.org/admin/system-admin-guide/stable/login-fingerprint.html.en
|
||||
|
||||
2
debian/install
vendored
Normal file
2
debian/install
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
etc
|
||||
usr
|
||||
4
debian/postinst
vendored
4
debian/postinst
vendored
@@ -3,6 +3,10 @@ set -e
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
# enable GDM customization
|
||||
if [ -x /usr/bin/dconf ] ; then
|
||||
dconf update
|
||||
fi
|
||||
# Configure PAM for credential cache
|
||||
apt-mark manual libpam-ccreds >/dev/null || true
|
||||
if [ -e /usr/share/pam-configs/ccreds-check ] ; then
|
||||
|
||||
23
debian/postrm
vendored
Normal file
23
debian/postrm
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
# forget GDM customization
|
||||
if [ -x /usr/bin/dconf ] ; then
|
||||
dconf update
|
||||
fi
|
||||
;;
|
||||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
4
etc/dconf/db/gdm.d/01-banner
Normal file
4
etc/dconf/db/gdm.d/01-banner
Normal file
@@ -0,0 +1,4 @@
|
||||
[org/gnome/login-screen]
|
||||
banner-message-enable=true
|
||||
banner-message-text='Welcome to Yourdev!'
|
||||
|
||||
3
etc/dconf/db/gdm.d/02-logo
Normal file
3
etc/dconf/db/gdm.d/02-logo
Normal file
@@ -0,0 +1,3 @@
|
||||
[org/gnome/login-screen]
|
||||
logo='/usr/share/plymouth/yourdev-logo.png'
|
||||
fallback-logo='/usr/share/plymouth/ubuntu-logo.png'
|
||||
2
etc/dconf/db/gdm.d/03-smartcard
Normal file
2
etc/dconf/db/gdm.d/03-smartcard
Normal file
@@ -0,0 +1,2 @@
|
||||
[org/gnome/login-screen]
|
||||
enable-smartcard-authentication=false
|
||||
3
etc/dconf/profile/gdm
Normal file
3
etc/dconf/profile/gdm
Normal file
@@ -0,0 +1,3 @@
|
||||
user-db:user
|
||||
system-db:gdm
|
||||
file-db:/usr/share/gdm/greeter-dconf-defaults
|
||||
BIN
images/orange-48.png
Normal file
BIN
images/orange-48.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
images/yourdev-logo.xcf
Normal file
BIN
images/yourdev-logo.xcf
Normal file
Binary file not shown.
BIN
usr/share/plymouth/yourdev-logo.png
Normal file
BIN
usr/share/plymouth/yourdev-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.0 KiB |
Reference in New Issue
Block a user