/etc/X11/default-display-manager : quelle commande pour la modification ?
Bonjour,
Je veux modifier par script le "display manager" sous
Stretch lors de installation par boot PXE. À installation,
c'est 'gdm3" qui est actif et je veux "lightdm".
J'ai le script de test suivant :
#!/bin/sh
/bin/sh -c "/bin/echo 'gdm3 shared/default-x-display-manager select lightdm' | /usr/bin/debconf-set-selections"
/bin/sh -c "/bin/echo 'lightdm shared/default-x-display-manager select lightdm' | /usr/bin/debconf-set-selections"
/bin/sh -c "/bin/echo 'sddm shared/default-x-display-manager select lidhtdm' | /usr/bin/debconf-set-selections"
/usr/sbin/dpkg-reconfigure -p critical lightdm
Mais le script ne modifie pas le contenu du fichier :
/etc/X11/default-display-manager
Pour le modifier par les outils Debian, il faut exécuter en
interactif 'dpkg-reconfigure lightdm'.
La commande 'dpkg-reconfigure --frontend noninteractive lightgdm'
ne résoud pas le problème.
La modification manuelle par un 'sed -i 's/gdm3/lightdm/' est
possible. Ce que je cherche c'est le faire avec les commandes
Debian.
Quelle est la commande de configuration à utiliser pour
modifier "/etc/X11/default-display-manager" ?
Merci pour votre aide et bonne journée.
Randy11
Reply to: