raspberry PI系统精简wheezy-raspbian
删除python_games目录服务器用不到
rm -rf python_games
删除桌面,浏览器,python等...
sudo apt-get purge x11-common midori lxde lxde-common lxde-core lxde-icon-theme lxinput lxpanel lxpolkit lxrandr lxsession-edit lxshortcut lxtask lxterminal xinit xserver-xorg xserver-xorg-video-fbdev desktop-base desktop-file-utils gnome-icon-theme gnome-themes-standard leafpad menu-xdg scratch xarchiver zenity leafpad dillo netsurf python3 python3-minimal
删除opt目录下的示范代码
sudo rm -rf opt
删除pyton...
sudo apt-get purge `sudo dpkg --get-selections | grep -v "deinstall" | grep python | sed s/install//`
清除剩余的x11组件
sudo apt-get purge `sudo dpkg --get-selections | grep -v "deinstall" | grep x11 | sed s/install//`
服务器也不需要音频组件
sudo apt-get purge `sudo dpkg --get-selections | grep -v "deinstall" | grep sound | sed s/install//`
接下来删除build-essential库
sudo apt-get purge gcc-4.4-base:armhf gcc-4.5-base:armhf gcc-4.6-base:armhf
删除不需要的键盘支持字体等...
sudo apt-get purge ca-certificates libraspberrypi-doc xkb-data fonts-freefont-ttf locales manpages
执行清洁
sudo apt-get autoremove
sudo apt-get clean
删除所有日志
cd /var/log/
sudo rm `find . -type f`