在root权限下执行:
#!/bin/sh# set sources.listsudo sed -i '/cdrom/d' /etc/apt/sources.list# install programsudo apt-get install python-software-properties software-properties-common -ysudo apt-add-repository ppa:xubuntu-dev/xfce-4.12 -ysudo apt-get update && sudo apt-get dist-upgrade -y# install wlan driversudo apt-get install bcmwl-kernel-source broadcom-sta-common -ysudo apt-get install xorg build-essential xfce4 slim xubuntu-artwork gnome-icon-theme ubuntu-mono pixmap gtk2-engines-murrine gtk2-engines-pixbuf gtk3-engines-unico xfce4-indicator-plugin -y sudo apt-get install wicd firefox firefox-locale-zh-hans xfce4-terminal fcitx-rime language-pack-gnome-zh-hans language-pack-gnome-zh-hans-base fonts-droid qt4-qtconfig -y#sudo apt-get purge network-manager -y# set network#sudo cp /etc/network/interfaces /etc/network/interfaces.bak#sudo sed -i '/usb0/d' /etc/network/interfaces
以adm用户执行:
#!/bin/sh# set ramdiskrm -rf ~/.cacheln -sT /tmp ~/.cache# set pathexport PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin/:/sbin:/bin:/usr/game:$PATH