2011-12-07 22:59:34 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2012-05-08 01:27:53 +00:00
|
|
|
if [ $UID -ne 0 ]; then
|
2011-12-07 22:59:34 +00:00
|
|
|
sudo $0
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2012-01-30 16:39:18 +00:00
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
export PAGER=cat
|
|
|
|
|
2012-05-09 16:56:25 +00:00
|
|
|
echo "deb http://backports.debian.org/debian-backports squeeze-backports main" > /etc/apt/sources.list.d/debian-backports.list
|
|
|
|
|
2012-01-30 16:39:18 +00:00
|
|
|
apt-get --force-yes update
|
2012-04-25 22:14:41 +00:00
|
|
|
apt-get --force-yes -y remove x11-common xserver-xorg-video-all xserver-xorg-core xserver-xorg-video-radeon libgl1-mesa-dri mutt libdrm-intel1 libdrm-radeon1
|
|
|
|
apt-get --force-yes -y install deborphan
|
|
|
|
apt-get --force-yes -y remove `deborphan`
|
2012-01-30 16:39:18 +00:00
|
|
|
apt-get --force-yes -y dist-upgrade
|
2012-04-25 22:14:41 +00:00
|
|
|
apt-get --force-yes -y upgrade
|
2012-01-30 16:39:18 +00:00
|
|
|
apt-get install --force-yes -y rubygems1.8 puppet
|
|
|
|
apt-get remove --force-yes -y puppet facter
|
|
|
|
|
2011-12-07 22:59:34 +00:00
|
|
|
gem install puppet --no-ri --no-rdoc
|
2012-01-30 16:39:18 +00:00
|
|
|
|
2011-12-07 22:59:34 +00:00
|
|
|
./apply
|
2012-01-30 16:39:18 +00:00
|
|
|
|
2011-12-07 22:59:34 +00:00
|
|
|
shutdown -r now
|
|
|
|
|