Created
July 25, 2012 12:55
-
-
Save jbfavre/3176040 to your computer and use it in GitHub Desktop.
Ubuntu 12.04 Precise post install on AWS EC2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aptitude -y purge accountsservice acpid apport apport-symptoms apt-transport-https apt-xapian-index at busybox-static byobu cloud-initramfs-growroot cloud-initramfs-rescuevol console-setup curl dbus dmidecode dosfstools ed eject fonts-ubuntu-font-family-console friendly-recovery ftp fuse geoip-database gettext-base gir1.2-glib-2.0 gir1.2-gudev-1.0 grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common hdparm iptables iputils-ping iputils-tracepath irqbalance iw kbd keyboard-configuration krb5-locales landscape-client landscape-common language-selector-common laptop-detect libaccountsservice0 libcap-ng0 libcurl3 libdate-manip-perl libdbus-glib-1-2 libevent-2.0-5 libfreetype6 libfuse2 libgc1c2 libgirepository-1.0-1 libgudev-1.0-0 libiw30 libjs-jquery libnfnetlink0 libparted0debian1 libpcap0.8 libpci3 libpolkit-gobject-1-0 libsasl2-modules libusb-1.0-0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 libyaml-syck-perl logwatch lshw lsof ltrace memtest86+ mlocate nano ntfs-3g os-prober parted patch pciutils plymouth-theme-ubuntu-text popularity-contest postfix powermgmt-base ppp pppconfig pppoeconf python-apport python-chardet python-dbus python-dbus-dev python-debian python-gi python-httplib2 python-keyring python-launchpadlib python-lazr.restfulclient python-lazr.uri python-newt python-openssl python-pam python-pkg-resources python-problem-report python-serial python-simplejson python-twisted-bin python-twisted-core python-twisted-names python-twisted-web python-wadllib python-xapian python-zope.interface sgml-base ssh-import-id strace tasksel tasksel-data tcpd tcpdump telnet time tmux ubuntu-minimal ubuntu-standard ufw update-manager-core update-notifier-common ureadahead usbutils vim-tiny w3m whoopsie wireless-tools wpasupplicant xauth xkb-data xml-core accountsservice acpid apport apt-xapian-index at byobu cloud-initramfs-growroot cloud-initramfs-rescuevol console-setup dbus friendly-recovery fuse grub-common grub-pc hdparm iptables irqbalance kbd keyboard-configuration landscape-client landscape-common language-selector-common libaccountsservice0 libcap-ng0 libcurl3 libdbus-glib-1-2 libevent-2.0-5 libfreetype6 libfuse2 libgc1c2 libgirepository-1.0-1 libgudev-1.0-0 libiw30 libnfnetlink0 libparted0debian1 libpcap0.8 libpci3 libpolkit-gobject-1-0 libusb-1.0-0 libx11-6 libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 logwatch ltrace memtest86+ mlocate nano ntfs-3g pciutils plymouth-theme-ubuntu-text popularity-contest postfix ppp pppconfig pppoeconf python-apport python-gi python-twisted-core sgml-base ssh-import-id tasksel tcpdump telnet tmux ufw update-manager-core update-notifier-common ureadahead vim-tiny w3m whoopsie wireless-tools wpasupplicant xml-core | |
apt-get clean | |
echo 'APT::Install-Recommends "0"; | |
APT::Install-Suggests "0";' > /etc/apt/apt.conf.d/10recommended | |
echo "deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise main universe | |
deb http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates main universe | |
deb http://security.ubuntu.com/ubuntu precise-security main universe" > /etc/apt/sources.list | |
apt-get update | |
dpkg -l | grep ^rc | awk '{print $2}' | xargs aptitude -y purge - | |
rm /etc/init/tty{2,3,4,5,6}.conf | |
rm -r /etc/calendar /etc/dbus-1 /etc/ppp | |
rm /etc/vtrgb /etc/alternatives/vtrgb | |
rm /etc/gai.conf | |
rm -r /var/log/news | |
find /var/log/ -type f -name '*.gz*' -exec rm {} \; | |
rm /var/log/ufw.log | |
rm -rf /etc/sgml | |
rm -rf /var/lib/update-notifier | |
rm -rf /var/lib/update-manager | |
rm -rf /lib/recovery-mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment