-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jean-Michel Dault wrote:
> Le lun 10/03/2003 � 09:44, Buchan Milne a �crit :
> Yes, that's what I plan to do eventually, but there are certain things
> we need to modify first.
> - krozat, the screensaver, has hard-coded colors, which is not good if
> the company logo is not Mandrake blue. Same thing with the Gnome
> screensaver (Gdadou?), except that it's an XML file.
Maybe rather choose a different screensaver, xscreensaver with flag?
This would mean though that we need to get at least one more KDE
screensaver in ...
> - kdesktop_links is in kdebase, while it's really a script, and could be
> contained in mandrake_desk or similar package for easy replacement.
Or, rather be made (ala /etc/profile.d, /etc/xinit.d etc) for extension.
> Would you imagine recompiling kdebase just to add an icon on the
> desktop? ;-)
>
> And we have to find out what to do with upgrades, so that new packages
> will not overwrite the user's theme.
With the new KDE kiosk framework, this should not be necessary anymore?
If you want to enforce something, you can, and if you don't, the new KDE
config stuff does not write any configuration entries that have not been
modified (which they did in the past), making this all much easier.
>
>
>>We have an rpm we use for desktop machines, which on %post does a number
>>of operations (add urpmi update source, add NFS mounts to fstab,
>>installs bootsplash theme, and updates many config files). If a company
>>then also had a urpmi repository (marked as update source), they would
>>only need to update the rpm, and have the automagic updates (see urpmi
>>evangelism thread) pull it in the next morning.
>
>
> The Sherbrooke University LUG does basically the same thing.
>
> We only have to find out a clean way to do it, and we'll submit it when
> it's ready.
This the hack we use (needs some work, since it trashes some
customisations at present):
%post
#SD=$(pwd)
for i in etc usr; do
(cd /$i/cae
echo "changed to /$i/cae"
FILES=$(find -type f|sed -e 's/^.\///g'|grep -v ".orig")
for FILE in $FILES; do
if [ -f /$i/$FILE ]; then
echo "moving /$FILE to $FILE.rpmsave_cae"
mv /$i/$FILE /$i/$FILE.rpmsave_cae
fi;
PARENT=`dirname /$i/$FILE`
[ -d $PARENT ] || mkdir -p $PARENT
echo copying "$FILE to /$i/$FILE"
cp -af $FILE /$i/$FILE;
cat $FILE |sed -e 's/RELEASE/mdk'$REL'/g' >
/$i/$FILE
done;
)
done;
#Things to do if we are installing for the first time:
if [ $1 -eq 1 ];then
# In case of cd-rom install
echo "Removing CDROMS from urpmi:"
urpmi.removemedia cdrom1 cdrom2 cdrom3
echo "Adding ftp.cae.co.za to urpmi:"
REL=$(awk '{print $4}' </etc/mandrake-release)
urpmi.addmedia CAE-$REL
ftp://ftp.cae.co.za/pub/linux/mandrake/mandrake/
$REL/i586/Mandrake/RPMS with ../base/hdlist.cz
urpmi.addmedia CAE-$REL-contrib
ftp://ftp.cae.co.za/pub/linux/mandrake/m
andrake/$REL/i586/Mandrake/RPMS2 with ../base/hdlist2.cz
echo "Making home directories"
mkdir -p /home/{users,groups,projects}
#Check to see whether each of nfs mounts is in fstab:
for i in users groups projects;do
grep "/home/$i" /etc/fstab;
if [ $? -ne 0 ];then
cat /etc/cae/fstab.nfs.$i >> /etc/fstab;
fi;
done;
echo "Mounting nfs shares:"
mount -a
# Setup bootsplash:
[ -x /usr/share/bootsplash/scripts/switch-themes ] && \
/usr/share/bootsplash/scripts/switch-themes cae
[ -x /usr/share/bootsplash/scripts/make-boot-splash ] && \
/usr/share/bootsplash/scripts/make-boot-splash
/boot/initrd-`uname -r`.img
if [[ -x /usr/sbin/detectloader ]]; then
LOADER=$(/usr/sbin/detectloader -q)
if [[ $LOADER = "LILO" ]] && [[ -x /sbin/lilo ]];then
/sbin/lilo >/dev/null 2>/dev/null
fi
if [[ $LOADER = "YABOOT" ]] && [[ -x /sbin/ybin ]];then
/sbin/ybin >/dev/null 2>/dev/null
fi
fi
#Install packages from contrib
sleep 30 && urpmi pam_smb &
fi
- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne Mechanical Engineer, Network Manager
Cellphone * Work +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+bKUQrJK6UGDSBKcRArf2AJ4lUdCmA7N2Ugub6KTHThUEaQtf9ACgxNDY
BYJANGxyy/HS/WYHmZWyyds=
=KVeU
-----END PGP SIGNATURE-----