Running this script on 2013-09-25-wheezy-raspbian.img (the latest one) will reduce it to a size of 656 MB.
Some notes should be made. I use nano, as it's lite and does what I need. So to have vim and ed installed makes no sense. I also removed samba, as I have ftpd running and to me, they're the same service.
The order is somewhat important. For instance, not removing the python_games folder, will cause problems for the apt-get autoremove command with 'python*'.
I also used a slightly different remove command for the /opt directory. Removing it like you have done affects some important commands, so I didn't include it.
Also, if you are interested in trying to reduce it further, I found this command to be very helpful and revealing:
# dpkg --get-selections
That command will list all installed software.
Code: Select all
sudo rm -rf /home/pi/python_games
sudo apt-get -y autoremove python*
sudo apt-get -y autoremove omxplayer
sudo apt-get -y autoremove scratch
sudo apt-get -y autoremove midori
sudo apt-get -y autoremove dillo
sudo apt-get -y autoremove lxde-common
sudo apt-get -y autoremove hicolor-icon-theme
sudo apt-get -y autoremove galculator
sudo apt-get -y autoremove xarchiver
sudo apt-get -y autoremove lxde-icon-theme
sudo apt-get -y autoremove libpoppler19
sudo apt-get -y autoremove x11-common
sudo apt-get -y autoremove ed
sudo apt-get -y autoremove vim-common
sudo apt-get -y autoremove lxsession
sudo apt-get -y autoremove lxappearance
sudo apt-get -y autoremove lxpolkit
sudo apt-get -y autoremove lxrandr
sudo apt-get -y autoremove lxsession-edit
sudo apt-get -y autoremove lxshortcut
sudo apt-get -y autoremove lxtask
sudo apt-get -y autoremove lxterminal
sudo apt-get -y autoremove xauth
sudo apt-get -y autoremove debian-reference-common
sudo apt-get -y autoremove samba-common
sudo apt-get -y autoremove fontconfig
sudo apt-get -y autoremove fontconfig-config
sudo apt-get -y autoremove fonts-freefont-ttf
sudo apt-get -y autoremove netsurf-gtk
sudo apt-get -y autoremove netsurf-common
sudo apt-get -y autoremove dbus-x11
sudo apt-get -y autoremove desktop-base
sudo apt-get -y autoremove desktop-file-utils
sudo apt-get -y autoremove libxmuu1
sudo rm -rf /opt/vc/src/*
sudo rm -rf /usr/share/icons/*
sudo rm -rf /usr/share/sounds/
sudo rm -rf /usr/share/squeak/
sudo rm -rf /usr/share/wallpapers
sudo rm -rf /usr/share/themes
sudo rm -rf /usr/share/kde4
sudo rm -rf /usr/share/images/*
sudo apt-get -y autoremove
sudo apt-get -y clean