so I am working on a project which will be a Lubuntu install without touching anything during the install process (except after a few seconds of quick input), and I want to uninstall lightdm and install SLiM (thanks to reasons of default session, lighterweight, and more) - however I do not want to have to run sudo dpkg-reconfigure lightdm unless I can do so in a way that does not require input. I tried to be clever and run sudo apt-get remove lightdm and then sudo apt-get install slim and I thought that would work. But when I booted into Lubuntu, it only showed wmaker, blackbox, and icewm as options for sessions. Please help!
Asked
Active
Viewed 1,950 times
0
Crutchcorn
- 333
1 Answers
2
You can try preseeding a debconf selection and then use a non-interactive frontend for dpkg-reconfigure. First find the correct key for preseeding:
$ debconf-get-selections | grep lightdm
# Choices: gdm, lightdm
gdm shared/default-x-display-manager select lightdm
lightdm shared/default-x-display-manager select lightdm
So set, perhaps:
sudo debconf-set-selections <<EOF
slim shared/default-x-display-manager select slim
lightdm shared/default-x-display-manager select slim
EOF
Then either of, depending on whether you already have slim installed:
DEBIAN_FRONTEND="noninteractive" dpkg-reconfigure lightdm
DEBIAN_FRONTEND="noninteractive" apt-get install slim
muru
- 207,228