#!/bin/sh set -e echo "debug: Late script is running..." # set LESSPIPE sed -i -e '/^ if \[ "$BASH" ]; then$/a\ . /etc/bash.bashrc' /etc/profile echo "export LESSOPEN=\"|lesspipe '%s'\"" >> /etc/bash.bashrc # Refine sources.list perl -pi -e "s/^deb cdrom/#deb cdrom/" /etc/apt/sources.list perl -pi -e "s/^#deb #/#deb /" /etc/apt/sources.list # Remove legacy packages and unnecessary packages aptitude -y purge gcin ttf-arphic-bkai00mp manpages-zh epiphany-browser epiphany-extensions zhcon kde-i18n-zhtw # Check security updates and upgrage aptitude -y upgrade # Reregister CJKUnifonts defoma-font -t reregister-all /etc/defoma/hints/ttf-arphic-uming.hints defoma-font -t reregister-all /etc/defoma/hints/ttf-arphic-ukai.hints # Fix VCD autoplay gconftool -s /desktop/gnome/volume_manager/autoplay_vcd_command -t string "totem vcd:///dev/cdrom" # Enable utf8 option so that we can use Chinese filename with removable media gconftool -s /system/storage/default_options/vfat/mount_options --list-type=string -t list [shortname=lower,uid=,utf8] # Put all downloads in /tmp cd /tmp # Install xandros drivers dpkg -i *.deb # Install oxford dictionary(Patched with IPA) wget http://people.debian.org.tw/~olv/stardict/oxford-big5-ipa.tar.bz2 tar vfxj oxford-big5-ipa.tar.bz2 -C /usr/share/stardict/dic/ rm oxford-big5-ipa.tar.bz2 # Install IntelĀ® PRO/Wireless 2100 Driver for Linux #wget --referer='http://ipw2100.sourceforge.net/firmware.php?fid=4' 'http://ipw2100.sourceforge.net/firmware.php?i_agree_to_the_license=yes&f=ipw2100-fw-1.3.tgz' #tar vfxz ipw2100-fw-1.3.tgz -C /lib/firmware/ #rm ipw2100-fw-1.3.tgz # Install Desktop Image #wget http://debian.linux.org.tw/d-i/wikimedia.jpg -O /usr/share/images/desktop-base/wikimedia.jpg #update-alternatives --install \ # /usr/share/images/desktop-base/desktop-background desktop-background \ # /usr/share/images/desktop-base/wikimedia.jpg 99 # Clean up apt-get clean echo "debug: late script ended successfully"