I'm not too familiar with debian, and our servers
(my only debian experience) are all headless ...
I'd suggest going with the lilo-approach, though,
because wasting precious 3 MB of RAM on KDM
just for the chooser menu is a fat waste ;)
Try a
locate rc\.local
If it exists you're half-way there :}
As for the lilo and variable stuff... all you need to do is
to duplicate your working lilo-kernel entry, add
label = flux
append="USE_WM=flux"
label = KDE
append="USE_WM=KDE"
Run lilo ...
Edit rc.local
add something like
Code:
if [ "$USE_WM" == "KDE" ]; then
su -c "cp ~/.xsession.kde ~/.xsession <username>
else
su -c "cp ~/.xsession.flux ~/.xsession <username>
fi
Obviously you'll need two .xsession files in your
users home, which will then be copied around
accordingly.
Of course that only makes sense if your user is
the only one who wants to use this feature.
Cheers,
Tink