Re: Bug#485655: debian-installer: The KDE images should use sudo too and configure KDE accordingly.
reassign 485655 tasksel 2.74 thanks On Monday 16 June 2008, Joey Hess wrote: It seems easier at the moment to add your code, and include it in the task than it does to change the default or remove the debconf use, and come up with a way to detect which tasks were installed[1]. Sounds good to me. I've committed the change in user-setup. Please close the BR with your tasksel change. Cheers, FJP /me wonders what the [1] was supposed to refer to... signature.asc Description: This is a digitally signed message part.
Re: Bug#485655: debian-installer: The KDE images should use sudo too and configure KDE accordingly.
On Wednesday 11 June 2008, Frans Pop wrote: On Wednesday 11 June 2008, Didier Raboud wrote: One solution for KDE3 is to install the kdesudo package and to dpkg-reconfigure it to accept the usage of the kdesudo as drop-in replacement for kdesu. It will then use sudo. We can do that relatively simply by preseeding that answer to the correct value (if using sudo has been selected and kde is set as the desktop environment to install) and adding kdesudo to the kde-desktop task. I've tested this and it appears to work, although the first time I somehow managed to crash the dcop server. I've tried both administrator mode in Control Center and the kuser user setup application. My proposal would be to: 1) add the kdesudo to the Key packages in kde-desktop task 2) add a hook script in pre-pkgsel.d that does: if db_get passwd/root-login [$RET = false ] \ db_get tasksel/desktop [ $RET = kde ]; then echo kdesudo kdesudo/kdesu boolean true | \ LANG=C chroot /target debconf-set-selections fi This means kdesudo already has the correct debconf setting before it gets installed by tasksel and the diversions get added automatically on installation. Alternatively we could do 2) + an apt-install in a finish-install.d hook script and then only if the desktop task was actually selected, but that would mean having to ensure that kdesudo gets included on images by debian-cd. KDE team: any comments on this plan? Side note: I wonder how we ensure gksu is available on the first CD. It is only recommended by gnome-utils (pulled in by gnome-desktop-environment). It is not listed explicitly in either the gnome-desktop task or debian-cd. Joey: care to comment on this? Cheers, FJP signature.asc Description: This is a digitally signed message part.
Re: Bug#485655: debian-installer: The KDE images should use sudo too and configure KDE accordingly.
Frans Pop wrote: I've tested this and it appears to work, although the first time I somehow managed to crash the dcop server. I've tried both administrator mode in Control Center and the kuser user setup application. My proposal would be to: 1) add the kdesudo to the Key packages in kde-desktop task 2) add a hook script in pre-pkgsel.d that does: if db_get passwd/root-login [$RET = false ] \ db_get tasksel/desktop [ $RET = kde ]; then echo kdesudo kdesudo/kdesu boolean true | \ LANG=C chroot /target debconf-set-selections fi This means kdesudo already has the correct debconf setting before it gets installed by tasksel and the diversions get added automatically on installation. Alternatively we could do 2) + an apt-install in a finish-install.d hook script and then only if the desktop task was actually selected, but that would mean having to ensure that kdesudo gets included on images by debian-cd. Well, I don't really understand why kdesudo asks this question at all. Would there be some reason someone would install the package, and *not* have kdesudo used by default? The only reason I can think of for it to default to not being used is just what you're talking about doing -- including it in the task by default. :-) It seems easier at the moment to add your code, and include it in the task than it does to change the default or remove the debconf use, and come up with a way to detect which tasks were installed[1]. KDE team: any comments on this plan? Side note: I wonder how we ensure gksu is available on the first CD. It is only recommended by gnome-utils (pulled in by gnome-desktop-environment). It is not listed explicitly in either the gnome-desktop task or debian-cd. Joey: care to comment on this? It's pulled in by dependencies in gdm and update-notifier, at least. However, I've explicitly added it now. -- see shy jo [1] tasksel --list-tasks can do it, but hides hidden tasks like .. kde-desktop! signature.asc Description: Digital signature
Re: Bug#485655: debian-installer: The KDE images should use sudo too and configure KDE accordingly.
Le mercredi 11 juin 2008 12:05:01 Frans Pop, vous avez écrit : tags 485655 help reassign 485655 user-setup thanks On Tuesday 10 June 2008, Didier Raboud wrote: I think that the KDE CD images should install and configure sudo as the Gnome images do. KDE images _do_ install and configure sudo exactly the same as the regular CD does if that option is selected in user-setup (as you can see if you use sudo from konsole). Hi, I tried to install the LennyBeta2 KDE CD1 in Qemu and disabled the internet access (said during the install just use the CD) and it did not... But I admit that this it corner-case Additionnally, it should configure KDE to use it correctly. This is probably what is currently lacking: automatically using sudo for KDE administration tasks. This is what the installer does for GNOME (note that it does not directly change any configuration files, which is not allowed by policy): # Configure gksu to use sudo, via an alternative, if it's # installed and the alternative is registered. if $chroot $ROOT update-alternatives --display libgksu-gconf-defaults /dev/null 21; then $log $chroot $ROOT update-alternatives \ --set libgksu-gconf-defaults \ /usr/share/libgksu/debian/gconf-defaults.libgksu-sudo $log $chroot $ROOT update-gconf-defaults fi If something similar is possible for KDE, then please let us know what the correct commands would be. Basically that info has to come from KDE users/developers. One solution for KDE3 is to install the kdesudo package and to dpkg-reconfigure it to accept the usage of the kdesudo as drop-in replacement for kdesu. It will then use sudo. I CC'ed debian-qt-kde to get their piece of advice. Mine (as user) is that if sudo is used, kdesudo is necessary for good user experience. I also suspect this problem may already have been resolved for kubuntu, so if someone could check what is done there and tell us, that could work as well. However, I don't see any change in Ubuntu's version of user-setup-udeb for this. AFAIK, it is what they use. Cheers, FJP Regards, Didier -- Didier Raboud, proud Debian user. CH-1802 Corseaux [EMAIL PROTECTED] signature.asc Description: This is a digitally signed message part.
Re: Bug#485655: debian-installer: The KDE images should use sudo too and configure KDE accordingly.
On Wednesday 11 June 2008, Didier Raboud wrote: On Tuesday 10 June 2008, Didier Raboud wrote: I think that the KDE CD images should install and configure sudo as the Gnome images do. KDE images _do_ install and configure sudo exactly the same as the regular CD does if that option is selected in user-setup (as you can see if you use sudo from konsole). I tried to install the LennyBeta2 KDE CD1 in Qemu and disabled the internet access (said during the install just use the CD) and it did not... But I admit that this it corner-case No, it is not a corner case; that would be a bug. Please send the syslog (gzipped!) of the installation. It can be found under /var/log/installer/ on the installed system. (No need to CC d-qt-kde for that!) If something similar is possible for KDE, then please let us know what the correct commands would be. Basically that info has to come from KDE users/developers. One solution for KDE3 is to install the kdesudo package and to dpkg-reconfigure it to accept the usage of the kdesudo as drop-in replacement for kdesu. It will then use sudo. We can do that relatively simply by preseeding that answer to the correct value (if using sudo has been selected and kde is set as the desktop environment to install) and adding kdesudo to the kde-desktop task. Side note: I wonder how we ensure gksu is available on the first CD. It is only recommended by gnome-utils (pulled in by gnome-desktop-environment). It is not listed explicitly in either the gnome-desktop task or debian-cd. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]